Started by
Smth_idk32
on
Topic category: Help with Minecraft modding (Java Edition)
So basically ive been trying to make an enchantment for my Minecraft mod that is strong against bosses (Wither, Ender dragon, Elder Guardian, etc etc) but whatever im doing isnt working so I need help figuring out what to do.
PS: I'm kind of new at modding so I may be a tad slow.
Oh yeah id also like to add that im running 2024.4 MCreator.
Show us what you have tried so far. Also consider updating MCreator
Hopefully this Works
https://imgur.com/a/cxCsaPC
Okay at least the link works
How do you trigger it?
Basically, its supposed to trigger when an entity is attacked, but only functions if you have Titansbane and if the entity attacked has the "bosses" tag (Ive tried changing the tag to "minecraft:bosses" and it also doesnt work incase you were wondering).
I recommend adding debug markers and checking if and what parts of your procedure run: https://mcreator.net/wiki/how-use-debugger
You can make a procedure, set its trigger to when entity is hurt, then use if has item in main hand of source entity enchantment (your enchantment). Then if true, you deal additional damage to event/target entity. To make it deal damage depending on the level of the enchantment you can use (Additional damage for level 1 of the enchantment) * the level of enchantment(get level of enchantment (your enchantment) of item in main hand). To find these blocks easier, you just use search procedure blocks. The deal damage block is in Entity procedures - Actions. This might not work on older mcreator versions and I dont know when enchantment blocks were added anyway