Topic category: Help with Minecraft 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?
Also are entity tick update also for player? Cause if so it would help me out a lot.
After some thinking, brainstorming and testing I found out the answer to the second question so no need to answer that. But I didn't find an answer yet for my first and last question.
Yeah okay I was wrong I did not find at all the solution to my second question, but more like a half solution? Like it just not what I'm trying to find + doesn't really work.