Topic category: Help with modding (Java Edition)
Hey I just wanna know, if in a procedure I call another procedure, will it get the source entity/target entity from the procedure in the code or will it not transfer, thanks.
Also another question, for my entity it targets the nearest player, but he doesn't do so if the nearest player is in creative or invisible. How can I make like a get nearest player that is not in creative or invisible cause now if there is a spectator or creative mode player nearer to the entity it won't target any player unless the player use the default mechanic of the entity seeing the player.
And another last question, my entity spawn on a certain day but I want it to only spawn on ONE person only, but it is run in player tick update so all player will have my entity spawned on them, how can I make my mod choose one random player?