Started by
Lemmy824
on
Topic category: Help with Minecraft modding (Java Edition)
I'm currently trying to apply an enchantment to an item as soon as it is crafted, but it won't work. I might be doing it wrong, but I don't think so. Any suggestions?
Here's what i have right now:
When event trigger: item is crafted
if (is item (provided item stack) of item type (Armor) )
{Add enchantment (Protection) with level (1) to (Provided Item stack)}
Im putting it in text because i cant be bothered to make it an image if that explains why its not an image
so go make a new element called tag, name it whatever, you gonna change it in registryname
replace yourtagname with whatever name you want
replace yourmodid with your mod id, if you dunno, load your game in creative, type in /give @p look start with first letter of your mod, it should appear. copy it up until the : or remember it
go back and type in say your mod is called, test, it would be,
test
items to control list.
add in armor you want affected.
go save tag.
go to your procedure for crafting.
do my first image
replace yourmodid:yourtagname with whatever you named that tag in registry
example: test:yourtagname
example2: test:armortag
then save. and try it out.
It still didn't work.......
I really have no clue what the problem is here