Started by
GLuxes09
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make a enchantment where when you hit a mob, it will strike lightning on them and I need help,
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make a enchantment where when you hit a mob, it will strike lightning on them and I need help,
you could run a procedure with the global trigger "before entity is hurt" or "entity attacked", and check if the source entity has an item with the enchantment in their main hand, then if it does use the "strike lightning at..." procedure block and replace the x,y,z of the lightning strike with "x position of event/target entity", "y position of event/target entity" and "z position of event/target entity". Or something along those lines