Get Entity player is riding

Started by Leptromasster on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Jun 2022
Points:
412

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Get Entity player is riding

I'm making a mod for 1.16.5 and I need some help on trying to get the entity the player is riding I have no idea what procedure block to use so I really need some help.

Active 2 years ago
Joined Nov 2019
Points:
658

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Entity data -> Get entity …
Tue, 07/05/2022 - 22:42

Entity data -> Get entity [Event/target entity] is riding

Active 3 years ago
Joined Jun 2022
Points:
412

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Thank you
Wed, 07/06/2022 - 19:19

Thank you

Active 2 years ago
Joined Apr 2021
Points:
569

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
Could you show an example? …
Fri, 08/05/2022 - 22:37

Could you show an example?  I've never used the light blue procedures before with getting entities, I'm wanting to make a strider gain a potion effect if its being ridden on.  Thanks!

Active 2 years ago
Joined Feb 2022
Points:
629

User statistics:

  • Modifications: 0
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 158
Light blue blocks are logic…
Fri, 08/05/2022 - 22:58

Light blue blocks are logic blocks. If you hook it up to an if statement, you're basically checking if something's true or false. So attach the block to an if statement(in flow control tab). Then add a potion effect through the procedure block(search potion in the search bar.)