Posted October 7, 20205 yr I've created some npc entities that I'd like to have spawn only once in the world. They can't die (unless you break bedrock and make them fall into the void) so they don't need to have any special respawn mechanics. How can I achieve this? Is there a way I can save whether an NPC has been spawned to the world?
October 7, 20205 yr Author An idea I've just had: When a player first spawns into a world (checked via a value set in player capabilities), set a radius in the XZ direction, and find an appropriate y level to spawn the entity in. Would this work? If an entity is spawned where chunks haven't been loaded yet, what happens?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.