is there any way to detect if player stops riding entity?

Started by XavierHOsinov on

Topic category: Help with modding (Java Edition)

Last seen on 14:01, 27. Aug 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is there any way to detect if player stops riding entity?

is there any way to detect if player stops riding entity?

Last seen on 01:32, 27. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
...Never tried this, but I…
Sun, 07/31/2022 - 13:40

...Never tried this, but I would imagine you could either try to detect when the player pushes the Shift-Key while riding an entity; Or, (and I think this would probably work better), make a procedure that executes every player tick, and checks if the player is riding an entity. (You should be able to find the 'Is riding entity' block in the entity data tab.)