First all, nice to be here and greetings everyone
My name is Federico, TheGoldSun on Minecraft. I'm a programmer and I recently decided to explore Forge to develop something interesting. My favourite mod is IndustrialCraft2, and actually I'm playing the experimental version, great even with bugs and unfinished mechanics. However, let me ask something to more expert modders as you are!
I wonder, how can I make an item or a block similar to buckets? I mean... Using a bucket in a recipe, the result is a new item but it returns also empty buckets. Now, of course a filled bucket (water/milk/lava ecc) has is own id, and empty bucket has another one.. So, it's there some arguments to add - may be - tu GameRegistry.addRecipe () to give player back some ItemStack? Searching in bucket classes and in Blocks and Items classes gave me no hints about it. I thought another way could be create an event handler that give player an ItemStack on the crafting of something else, but again.. no hints about that. I even thought that could be a property of item but nothing, it seems there is not anything like that in the properties or methods of Item or Block. Even possible I missed it, of course.
So, can anybody help me and reaveal the trick?
Thanks in advance, and sorry if I made some mistake explaining my question, my english is not so good..
Bye!