Started by
GamesOfLife
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to give the player an item the first time they join a world. I have a PLAYER_PERSISTENT boolean variable(called JoinedWorld) with an initial false value.
I have a procedure triggered on player tick update that checks if the variable is false. If so, it gives them the item and sets it to true.
It seemed to work perfectly but I noticed the item is also given every time the player returns to the Overworld from The End.
You can use the "Player Joins World" global trigger instead as the "On player tick" can be laggy. If it keeps giving the player the item that means the variable isn't saving correctly. Are you sure it's PLAYER_PERSISTENT and that you are correctly checking if it's only false and then setting it to true?