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
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
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.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !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: 2980
Joined: Sun Sep 09, 2012 17:31

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: 1665
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: WisdomFire or philipbenr

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
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
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: 2980
Joined: Sun Sep 09, 2012 17:31

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
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
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

Re: Uncrafting Table Question

by golthem » Tue May 20, 2014 09:40

Well thanks anyways! :)
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 6 guests

cron