Checking if a player is riding an entity

Started by blackcatplus on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Checking if a player is riding an entity

How do I check whether a player is riding a specific entity? if you cant do that directly, is there some roundabout way to check it?

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if [[Get entity (entity) is…
Sun, 03/01/2026 - 13:46

if [[Get entity (entity) is riding] is the same entity as (entity)]

do xy (do this in a procedure, but i think you k that)

Joined Feb 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you, this worked
Sun, 03/01/2026 - 14:17

Thank you, this worked