Custom entities & natural spawning.

Discussion in 'Plugin Development' started by IHS1200, Jan 2, 2019.

Thread Status:
Not open for further replies.
  1. Does anyone have a way of registering a custom entity, and having it spawn naturally?

    I'm really stuck with the code I have, I can register the custom entity fine, just not able to naturally spawn it.
     
  2. @IHS1200

    You could use the Bukkit scheduler to register a repeating task and use that task to spawn your entity.
    You could also listener for the EntitySpawnEvent, cancel the event and spawn your entity instead. (If you go for this approach, make sure that you don't do anything if your custom entity is being spawned and you should only do it a portion of all entity spawn events that are fired.)
    There is probably a way to do this with NMS, but I don't know how to.
     
Thread Status:
Not open for further replies.

Share This Page