effect on a block with specific equipment

Started by bamboux on

Topic category: Help with modding (Java Edition)

Last seen on 13:17, 28. Jun 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
effect on a block with specific equipment


hello I would like to create boots that give a speed effect when walking on sand

Last seen on 00:06, 23. Jul 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create your armour set, and…
Sun, 12/31/2023 - 00:15

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 )

Last seen on 13:17, 28. Jun 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you very much it doesn…
Mon, 01/01/2024 - 19:56
thank you very much it doesn't work so I modified it a little and thanks to you I managed to make it work.