Started by
yuri.carniti@g…
on
Topic category: Help with Minecraft modding (Java Edition)
I need help to make a procedure like the new 1.16 Smithing Table that upgrades the armors with some new gems added in my mod.
(ex: from diamond to nether star)
Edited by yuri.carniti@gmail.com on Sat, 07/03/2021 - 18:46
This procedure is like a crafting table with 2 input slots (0 and 1) and 1 output slot (2).
It puts obsidian in the output slot only if there is lava bucket in slot 0 and water bucket in slot 1.
The second part of the code makes sure the player put the buckets to have the obsidian in the output slot without removing the buckets after the obsidian appears.
This procedure is to link to the smithing table update tick.
BUT there is also something else you must do.
You need to make a procedure that removes 1 item from slot 0 and 1 item from slot 1.
This other procedure is to link to the slot 2 of your GUI "When item taken from slot".
If in the future i want to add 2 or more gems for armor upgrade, what should i change?
because all the pieces of the base armor can be upgraded, and it is the same for the tools (pickaxe, axe, showel, sword and hoe)
Just duplicate what you did.
ok thanks, because i'm not expert for the momento with custom crafting procedure, i can add effect to armor and trigger for achievment.
but for the gui?
because i want to make a gui like the 1.16 smithing table
Yes you can trigger for achievements : inside your procedure that's triggered "When item taken from slot" of slot 2 of your GUI, you already have "remove one item from slot 0" and "remove one item from slot 1". You just need to add what you want.
You just need to find the block that triggers advancements.
And for the GUI of the smithing table, idk sorry.
Hey, I'm also making a smithing table-type block, and I don't know how to make the procedure Max094 described in his first comment: "You need to make a procedure that removes 1 item from slot 0 and 1 item from slot 1.
This other procedure is to link to the slot 2 of your GUI "When item taken from slot"."
Help?
I think MCreator got updated without me realising, because I can't find the "Get item from slot ? at X Y Z if it has in inventory" And the AND block have changed, too.
Actually, they right-clicked the AND block and pressed "external inputs". It's just a different way of using the block.
YOu can do it like a normal Crafting Station. i don´t know the code for this but when you craft something you always see what you gonna get. LIke if slot #0 = Diamond Chestplate and slot #1 Obsidian then output slot Obsidian chestplate.
I hope you all know what i mean with this.
Is there any way to kepp enchantments from the previous armor set