How To Add Slot for Smithing Template in Smithing Tables

Started by housefly888_ on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How To Add Slot for Smithing Template in Smithing Tables

How exactly would I edit the code inside my smithing table recipe to include a smithing template?

My current code is as so:

{
"type": "minecraft:smithing_transform",
"template": [],
"base": {
"item": "minecraft:iron_helmet"
},
"addition": {
"item": "minecraft:nether_quartz"
},
"[1]": {
"item": "mod:cosmo_armor_trim"
}
"result": {
"item": "mod:cosmo_armor_helmet"
}
}

What do I replace the [1] with?

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey thank you very much for…
Thu, 10/12/2023 - 01:54

Hey thank you very much for your post you helped me figure out the answer for myself, so you have it completely right just in the wrong spot, move everything inside your { } to replace where it says [ ] next to template, if you need me to I can show a picture of my code to explain better.

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where it says "template" you…
Mon, 10/23/2023 - 03:23

Where it says "template" you want to move the following line to those brackets:

 

"[1]": {

"item": "mod:cosmo_armor_trim"

},

 

You will not need the "[1]": as the template will be the slot. All you will be copying is:

 

{

"item": "mod:cosmo_armor_trim"

},

 

you will also need to delete the brackets in front of the template. Here's what my code looks like:

 

{
"type": "minecraft:smithing_transform",
"template": {
"item": "ancients:lamp_blueprint"
},
"base": {
"item": "minecraft:redstone_lamp"
},
"addition": {
"item": "minecraft:echo_shard"
},
"result": {
"item": "ancients:sculk_lamp"

}
}

Hope this helps!