Detect if an entity is moving / walking 2024.1

Started by rextir on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect if an entity is moving / walking 2024.1

Hello, as the title says, I want to detect when my mob is moving, this could be done in the event of when it is alive (by updating ticks).
The idea is that if it is moving it does not do "x" thing.
Before I think there was the possibility of detecting with a block if the entity moved, but in version 2024.1 (neoforge) no longer.

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Store the xyz values of theā€¦
Thu, 05/23/2024 - 12:34

Store the xyz values of the entity incustom variables --> wait 1-2 ticks on server side check new position of entity with old one if its equal entity aint moving