Posted May 8, 20196 yr comment_341639 Hello, I have made a Meteorite Entity and I would like it to spawn naturally in the overworld, how could I make that happen ? The Method addSpawn does not work with my entity as it is not "living"/extending EntityLiving. Thank you for your help! Edited May 8, 20196 yr by GloriousAlpaca
May 8, 20196 yr comment_341642 You would need to spawn it manually with World#spawnEntity. Probably have a server tick handler, check the spawn conditions at a random block + the amount of entities in the world + additional conditions, if everything is good spawn the entity. Or you could extend EntityLiving and just block all interactions/features you don't need by providing a NOOP implementation Edited May 8, 20196 yr by V0idWa1k3r
May 8, 20196 yr Author comment_341643 First of all thank you very much for your help! I thought about using a EventHandler to check for spawning conditions on the world tick, but I was concerned about the performance. Thank you
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.