Started by
TiQuon_
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to create an overlay that is shown to each player every time they enter the server for a certain amount of time, and I've tried several things and with messages I checked that the code is running as I thought but for some reason the overlay is not shown. I have created the overlay and three procedures for this management which are the ones shown in the image:
Thanks
Edited by TiQuon_ on Fri, 03/07/2025 - 18:41
To solve this, you just have to change the nbt tags to PLAYER_PERSISTANT variables, both the logical nbt tag and the timer one. I don't understand why it is necessary to change the timer nbt as well because the code runs the same if it is left as nbt tag but the overlay will not be displayed.
This solution was provided to me by Stella_Sunset on reddit
We also found that by using all global variables you can use the wait instruction and the on player tick update procedure would no longer be necessary.