So I'm trying to make a mod with some custom weapons and tools (original, I know), but I wanted to add a particle effect to some of the tools/weapons. Like when you hold it in your hand there'll be like a fire particle effect burning around the sword or something. I have this .json file under resources > assets > mod_id > models > item, which sets the texture:
I'm just assuming that this is where I'd write the effect, but I'm kind of new to this. Does anyone have any experience with modding Minecraft and knows how to do this (if it's even possible)? Any answer is much appreciated
A way you can do this is using events. LivingUpdateEvent should work. Just check if the entity is holding the item and then create particles at the correct location.
So I'm trying to make a mod with some custom weapons and tools (original, I know), but I wanted to add a particle effect to some of the tools/weapons. Like when you hold it in your hand there'll be like a fire particle effect burning around the sword or something. I have this .json file under resources > assets > mod_id > models > item, which sets the texture:
I'm just assuming that this is where I'd write the effect, but I'm kind of new to this. Does anyone have any experience with modding Minecraft and knows how to do this (if it's even possible)? Any answer is much appreciated
A way you can do this is using events. LivingUpdateEvent should work. Just check if the entity is holding the item and then create particles at the correct location.
Uncrafting Table (1.15.2): https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/wip-mods/3032965-uncrafting-table
Ruins of Humanity (mod, no longer being developed): https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/wip-mods/2898701-1-12-2-wip-early-alpha-ruins-of-humanity