Started by bamboux on Sat, 12/30/2023 - 15:24 Topic category: Help with Minecraft modding (Java Edition) hello I would like to create boots that give a speed effect when walking on sand Jump to top Create your armour set, and go into the Triggers section of your armour. Then, go into its "Boots tick event", then build the following code: if ((Get block at x (y - 1) z) = (sand)) do ( Add potion (Speed) with level (whatever level of speed you want) for (2) ticks ambient (false) particles (false) to Event/target entity ) else do ( Remove specific potion effect (Speed) from Event/target entity ) Jump to top Permalink Log in or register to post comments thank you very much it doesn't work so I modified it a little and thanks to you I managed to make it work. Jump to top Permalink Log in or register to post comments
Create your armour set, and go into the Triggers section of your armour. Then, go into its "Boots tick event", then build the following code: if ((Get block at x (y - 1) z) = (sand)) do ( Add potion (Speed) with level (whatever level of speed you want) for (2) ticks ambient (false) particles (false) to Event/target entity ) else do ( Remove specific potion effect (Speed) from Event/target entity ) Jump to top Permalink Log in or register to post comments
thank you very much it doesn't work so I modified it a little and thanks to you I managed to make it work. Jump to top Permalink Log in or register to post comments
Create your armour set, and go into the Triggers section of your armour.
Then, go into its "Boots tick event", then build the following code:
if ((Get block at x (y - 1) z) = (sand))
do ( Add potion (Speed) with level (whatever level of speed you want) for (2) ticks ambient (false) particles (false) to Event/target entity )
else
do ( Remove specific potion effect (Speed) from Event/target entity )