Uncrafting Table Question

golthem
Member
 
Posts: 43
Joined: Tue Jan 21, 2014 20:22
In-game: Golthem

Uncrafting Table Question

by golthem » Fri May 16, 2014 19:05

Hello everyone! I'm trying to make an uncrafting table mod and got stuck so I'm wondering if any of you would be able to help me.

I was going to make lots and lots of crafting recipes but realized some problems with that.
a. It would take forever!
b. It might conflict with some other recipes

I was looking at the unified inventory mod and was noticing how the crafting recipe show up when you click whatever your trying to craft. Would this be the best place to start?
 

User avatar
Krock
Developer
 
Posts: 4106
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: Uncrafting Table Question

by Krock » Fri May 16, 2014 20:22

Hello,

The unified inventory is a good place to start, yes.
But you'll have problems finding the correct uncrafting recipe - as already said- there are multiple possible.
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

golthem
Member
 
Posts: 43
Joined: Tue Jan 21, 2014 20:22
In-game: Golthem

Re: Uncrafting Table Question

by golthem » Fri May 16, 2014 20:26

Thank you very much! :)

I'll look over the code and see what I can do.

I might see about making it choose the first recipe or maybe I could do something with the unified inventory alternate button.

Thanks again!
 

Sokomine
Member
 
Posts: 3616
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: Uncrafting Table Question

by Sokomine » Sat May 17, 2014 02:46

Recycling nodes by "uncrafting" them back to their basic materials would be very helpful in certain situations. It could fit very well into the technic mod. Apart from alternate receipes, receipes which take e.g. group:wood might also constitute a problem.
 

User avatar
philipbenr
Member
 
Posts: 1688
Joined: Fri Jun 14, 2013 01:56
Location: United States
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi

Re: Uncrafting Table Question

by philipbenr » Sat May 17, 2014 02:49

It is a great idea, and I applaud you on it. I hope you get somewhere with it. I unfortunately am trying to develop a python/pygame game on my own, so I can't really offer help. But I can offer you luck. ;)
 

User avatar
kaeza
Moderator
 
Posts: 2158
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: Uncrafting Table Question

by kaeza » Sat May 17, 2014 06:37

Just an idea: you could use register_on_craft, and store the recipe used into the item stack's metadata, and use the metadata on the uncrafting table to retrieve the original recipe. Of course, this is a no go with items using the metadata for other purposes (for example, there's a mod that allows to write on books which uses metadata to store the text, and most technic tools use it for various purposes).
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

Sokomine
Member
 
Posts: 3616
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: Uncrafting Table Question

by Sokomine » Sat May 17, 2014 17:23

Hm, doesn't really work. What if items crafted through diffrent receipes are stacked?
 

User avatar
kaeza
Moderator
 
Posts: 2158
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: Uncrafting Table Question

by kaeza » Sat May 17, 2014 17:56

Sokomine wrote:Hm, doesn't really work. What if items crafted through diffrent receipes are stacked?

Hmm... good point. Ignore the idea :P
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

golthem
Member
 
Posts: 43
Joined: Tue Jan 21, 2014 20:22
In-game: Golthem
 

User avatar
csirolli
Member
 
Posts: 129
Joined: Mon Jan 15, 2018 21:46
Location: Florida, USA
GitHub: ChristianSirolli
IRC: CSirolli
In-game: CSirolli

Re: Uncrafting Table Question

by csirolli » Fri Apr 20, 2018 21:17

Is it possible to get the recipe from the mods, and in the case of groups, use a default material. Like group:wood could have be defaulted to default:wood.
Jesus is the only Way to heaven, the only saving Truth, and the only Life that is worth living.
 

User avatar
RSLRedstonier
Member
 
Posts: 439
Joined: Wed May 10, 2017 21:00
Location: some were in middle earth
GitHub: RSL-Redstonier
In-game: RSLRedstonier

Re: Uncrafting Table Question

by RSLRedstonier » Tue Apr 24, 2018 15:34

basic machines does a pretty good job of this in the recycler
uses fuel, if several items are crafted then you need several to uncraft, conflict avoidance by being able to select which method to uncraft, only gives around 70% of items back so its not to op.

of course, this is EXTREMELY op
here is an example
you want to uncraft a dirt block for whatever reason
perhaps it can be crafted in 2 different ways
the first way involves 1 piece of gravel
the second involves a grass block and lawn scissors(normally you would get the scissors back)

this is broken because you could just mine a dirt block, uncraft it, place/break the grass block and repeat. you now have an unlimited suply of lawn scissors which could be uncrafted into 3 iron each
"A programmer is just a tool which converts caffeine into code"

try out my skytest mod always being updated!
https://forum.minetest.net/viewtopic.php?f=9&t=17568
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 5 guests