Started by Some troll guy on Tue, 02/14/2023 - 02:41
Topic category: Help with modding (Java Edition)
I am trying to make it so when you are riding a specific entity for 10 seconds a gui will appear.
Edited by Some troll guy on Thu, 02/16/2023 - 05:50
When is this procedure called ?
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.
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.
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.