Help me with my mod please - Riding entity

Started by Some troll guy on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help me with my mod please - Riding entity
Thu, 02/16/2023 - 05:50 (edited)

I am trying to make it so when you are riding a specific entity for 10 seconds a gui will appear.  

 


[img]https://i.imgur.com/nNHUsqN.png[/img]

 

Edited by Some troll guy on Thu, 02/16/2023 - 05:50
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When is this procedure…
Wed, 02/15/2023 - 16:19

When is this procedure called ?

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think that was the first…
Thu, 02/16/2023 - 05:44

I think that was the first problem. I changed it to be called when the player right clicks an entity but it still did not work.

It is supposed to check if the player is riding an entity and if it is the custom entity it will open a gui after 10 seconds.

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Test this without the wait…
Thu, 02/16/2023 - 21:39

Test this without the wait thing (for test purpose).

Then, the procedure check if the player is riding, but whe the player click the hot thub, it isn't ridind it for now, that could be the problem.

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for the idea! It…
Fri, 02/17/2023 - 03:18

Thank you for the idea! It is working now.

What I did was move the Wait to immediately after the player clicks an entity, that way the player would have time to begin riding the hot tub entity before it would check if the player is riding or not.