Giving status effect based on movement

Started by JJ_007 on

Topic category: Help with modding (Java Edition)

Last seen on 04:49, 30. Jul 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Giving status effect based on movement

After creating a pair of leggings, in the leggingsTickEvent I wanted them to provide the player with invisibility when they're not moving

Here's what I've got;

Though it doesn't work? Any ideas?

And if possible, can I expand upon this so the player must be still for a specific amount of time before the effect is applied?

Last seen on 12:42, 28. May 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
image doesn't work. And if…
Sat, 12/11/2021 - 03:47

image doesn't work.

And if possible, can I expand upon this so the player must be still for a specific amount of time before the effect is applied?

use player-lifetime/persistent number global variables and the "wait on server-side for X ticks" procedure block.