Started by StanchVirus011 on Fri, 02/03/2023 - 08:58
Topic category: Help with modding (Java Edition)
I am trying to update my existing mod 'Alchemic Armoury'.
To keep it short, this mod allows you to add potion effects to armour pieces through crafting.
I have made these armour pieces in a very unefficient way by creating an individual recipe for every armour piece and potion effect. This has ultimately led to me needing to create over 200 recipes which is quite time consuming.
I am just wondering if anyone knows of a way to create recipes that will automatically work for all armour pieces, this would make it so the mod can work with leather, both dyed and undyed, and possibly other peoples mods. Thank you.
Below is an example of how I have created the mod;
Edited by StanchVirus011 on Fri, 02/03/2023 - 12:59
Images won't load
Images are fixed now
Are these Armors only one Item with different Attributes?
What you could do is to make a custom Block where you can craft Armors with the Potions and then check inside the GUI for the specific Potion and add to the Armor a NBT Boolean or an NBT Number that specifies which potion effect it is applied.
If you played Minecraft on the very old Versions you can see the NBT Number Method as a Potion Effect ID that you can check.
Is there any tutorials that show you how to do anything similar? Just so I can get an idea of what I'm doing.