Started by
TheSmallNinja
on
Topic category: Help with Minecraft modding (Java Edition)
So im making a Mod about kirby, and when you wear the fire hat, i want to make it so if you right click the ground with it on, it lights a fire, anyone know how to do it?
To do that you need to create a procedure element with global trigger of "Player Right-clicked block".
Then you need to check if armor slot 3 (for helmet) is equal to your fire hat. If it's true, then spawn a block based on the direction of which side you right clicked.
Screenshot:
https://imgur.com/a/C8wYNjr
You could make a tag called "Fire Hat" then you could just check if the item in that slot is in the tag so you could make even more of these.