Get Entity player is riding

Started by Leptromasster on Tue, 07/05/2022 - 13:33

Topic category: Help with modding (Java Edition)

Last seen on 23:33, 18. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Get Entity player is riding
Tue, 07/05/2022 - 13:33

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.

Last seen on 01:50, 17. Jul 2022
Joined Nov 2019
Points:

User statistics:

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

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

Last seen on 23:33, 18. Jul 2022
Joined Jun 2022
Points:

User statistics:

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

Thank you

Last seen on 12:42, 7. Aug 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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!

Last seen on 22:08, 9. Aug 2022
Joined Feb 2022
Points:

User statistics:

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