Giving status effect based on movement

Started by JJ_007 on

Topic category: Help with Minecraft modding (Java Edition)

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?

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.