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

Started by XavierHOsinov on Sun, 07/31/2022 - 11:41

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
is there any way to detect if player stops riding entity?
Sun, 07/31/2022 - 11:41

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

Last seen on 20:08, 25. Sep 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.)