This is a puzzler.

Discussion in 'Plugin Development' started by user_43347, Jun 4, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    user_43347

    Jnorr44 Given the importance of the plugin, I have to do what I have to do. How would I set the world to static?
     
  2. Offline

    Jnorr44

    NMSEntity.isStatic = true;
     
  3. Offline

    user_43347

    Thanks.
     
  4. Offline

    Jnorr44

    nkrecklow
    Whoops, its actually NMSEntity.world.isStatic = true;
    And make sure it's always static, it may change when you leave the world.
     
  5. Offline

    user_43347

    Jnorr44 Eh, now the entities are all frozen and refuse to remove like before :p
     
  6. Offline

    Jnorr44

    I thought you wanted some to stay and some to be removed? Remove the ones you want, then turn the world static before leaving it. All you would need then is a PlayerTeleportEvent. If you are not changing worlds, then if you are moving and don't want certain mobs to die, keep their chunks loaded.
     
  7. Offline

    cMan_

    There is an entitydespawnevent I believe. If that helps.
     
  8. Offline

    user_43347

    Nope, only ItemDespawnEvent :(

    Well, until I track down the cause I found I could teleport the entities, so I did what every developer would do and teleport them to a lava pit. It works, also it throws warnings related to the entity being the in the world chunk if that helps.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
Thread Status:
Not open for further replies.

Share This Page