MC Modding
Please register and join the community!

[Answered] Tut on smelting

View previous topic View next topic Go down

[Answered] Tut on smelting

Post by filip151 on Sat Oct 22, 2011 2:46 pm

Can somebody please make a tut on how to smelt a custom ore into a custom ingot? I have really big troubles with that.

filip151
Member

Posts : 11
Join date : 2011-10-21
Age : 19
Location : Norway, Oslo Poland, Swiecie

View user profile

Back to top Go down

Re: [Answered] Tut on smelting

Post by proshitness on Sat Oct 22, 2011 2:54 pm

you do it like this:
Code:

ModLoader.AddSmelting(BronzeOre.blockID, new ItemStack(BronzeIngot.shiftedIndex, 1));
i believe, if i am mistaken then please correct me.

proshitness
Member

Posts : 4
Join date : 2011-10-20

View user profile

Back to top Go down

Re: [Answered] Tut on smelting

Post by filip151 on Sat Oct 22, 2011 3:39 pm

Sorry, didn't work, maybe I need to do something else, like putting the bronzeingot together with the bronzeore or something, and one more thing.. How the **** did you know that I was making it with like bronzeore and bronzeingot?? Did you know it or did you guess? Cause that freaked me out a bit ;-)

filip151
Member

Posts : 11
Join date : 2011-10-21
Age : 19
Location : Norway, Oslo Poland, Swiecie

View user profile

Back to top Go down

Re: [Answered] Tut on smelting

Post by proshitness on Sat Oct 22, 2011 5:30 pm

i just guessed XD
try to add the mod name before the ingot like so:
Code:
 new ItemStack(mod_***.BronzeIngot.shiftedIndex, 1));

proshitness
Member

Posts : 4
Join date : 2011-10-20

View user profile

Back to top Go down

Re: [Answered] Tut on smelting

Post by filip151 on Sat Oct 22, 2011 9:31 pm

Thx!! Now I know what the error was! The error what that I took the mod_*** in front of the bronzeore! THX A LOT!! That really means a lot to me Wink

Edit: Wait, it didn't actully work...

Edit: Oh, I forgot to put the picture of the ingot to the minecraft.jar, I gonna do that later..

filip151
Member

Posts : 11
Join date : 2011-10-21
Age : 19
Location : Norway, Oslo Poland, Swiecie

View user profile

Back to top Go down

Re: [Answered] Tut on smelting

Post by proshitness on Sun Oct 23, 2011 9:34 am

no problem

proshitness
Member

Posts : 4
Join date : 2011-10-20

View user profile

Back to top Go down

Re: [Answered] Tut on smelting

Post by filip151 on Sun Oct 23, 2011 12:48 pm

Oh well, in fact I didn't need your help (not trying to be offensive) I had something wrong in the ingot section, so I rewrited it and then it worked! But anyway, I wouldn't do it without you! So thx a lot anyway! One more thing, I had to remove the shiftedindex for it to work. But thx anyway Very Happy

filip151
Member

Posts : 11
Join date : 2011-10-21
Age : 19
Location : Norway, Oslo Poland, Swiecie

View user profile

Back to top Go down

Re: [Answered] Tut on smelting

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum