Armor-smelting furnace recipe doesn't work. (solved)

Need help with your script? Want to know how to do something? Want to post an example? Post it here!

Armor-smelting furnace recipe doesn't work. (solved)

Postby CaerMaster » Mon Apr 20, 2015 12:06 pm

I want to add recipes to allow smelting undamaged metal armor and tools back to their component metal. Does anyone know any reason why the following would not work?

: [Select all] [/] [] ()
furnace.addRecipe(<minecraft:golden_helmet>, <minecraft:gold_ingot> * 5);
furnace.addRecipe(<minecraft:golden_chestplate>, <minecraft:gold_ingot> * 8);
furnace.addRecipe(<minecraft:golden_leggings>, <minecraft:gold_ingot> * 7);
furnace.addRecipe(<minecraft:golden_boots>, <minecraft:gold_ingot> * 4);
furnace.addRecipe(<minecraft:iron_helmet>, <minecraft:iron_ingot> * 5);
furnace.addRecipe(<minecraft:iron_chestplate>, <minecraft:iron_ingot> * 8);
furnace.addRecipe(<minecraft:iron_leggings>, <minecraft:iron_ingot> * 7);
furnace.addRecipe(<minecraft:iron_boots>, <minecraft:iron_ingot> * 4);
GeSHi © Codebox Plus


These recipes appear to load without error, but don't seem to actually do anything. I put a gold helmet, for example, into a furnace and absolutely nothing happens. No error, but no smelting either.

(My eventual plan is to have a varying number of ingots or nuggets returned depending on how damaged the item is.)
Last edited by CaerMaster on Tue Apr 21, 2015 4:48 pm, edited 1 time in total.
CaerMaster
 
Posts: 8
Joined: Tue Apr 14, 2015 5:51 pm

Re: Armor-smelting furnace recipe doesn't work. Any tips?

Postby Stan » Tue Apr 21, 2015 6:18 am

The format is furnace.addRecipe(output, input) - they are reversed in your script.
User avatar
Stan
Site Admin
 
Posts: 258
Joined: Fri Jul 11, 2014 9:04 pm

Re: Armor-smelting furnace recipe doesn't work. Any tips?

Postby CaerMaster » Tue Apr 21, 2015 2:56 pm

Stan wrote:The format is furnace.addRecipe(output, input) - they are reversed in your script.


Doh!!!!!

Well, that's an easy fix. :)
CaerMaster
 
Posts: 8
Joined: Tue Apr 14, 2015 5:51 pm

Re: Armor-smelting furnace recipe doesn't work. (solved)

Postby AlanWyselaskie » Thu Jan 16, 2020 11:37 am

thanks for this
There are servers of some sites that can be seen through the perfect ways. According to some main topics, you have to review from assignment help that is the best source in presenting the vast areas of knowing subjects.
AlanWyselaskie
 
Posts: 1
Joined: Thu Jan 16, 2020 11:36 am


Return to Scripting Help

Who is online

Users browsing this forum: No registered users and 18 guests

cron