Looking for a plugin ASAP

Discussion in 'Archived: Plugin Requests' started by PerezHD, Nov 8, 2014.

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

    PerezHD

    Hey guys PerezHD here, I was wondering if there is a plugin or a way to make it so mobs don't disappear if a player isn't around?
     
  2. Offline

    Apple_

    wut
     
    VG.Developments and Skionz like this.
  3. Offline

    _Filip

    Apple_ Maybe you should read his post?

    I'm pretty sure there are, I don't see why they wouldn't exist.
     
  4. Offline

    VG.Developments

    Follow the format please. This is quite hard to understand... PerezHD
     
  5. Offline

    PerezHD

    I am not really asking for someone to create me a plugin, I am asking if anyone knows a plugin for mobs not to disappear if there are not players around the entity/mob? Cause I am experiencing this on my server, and its hard to fix.
     
  6. PerezHD So you want mobs to stay forever and also continue spawning? Not see a flaw in that?
     
    VG.Developments likes this.
  7. Offline

    DamnHippo

    I'm pretty sure there is a plugin that does this. I will look for it.
     
  8. Offline

    PerezHD

    I have it so mobs do not spawn with the minecraft gamerules, but I have my bartender, which I spawn, it stays but when players leave the chunk, it disappears. I need it to stay!
     
  9. Offline

    Apple_

    Maybe you should tag the 2 other individuals who liked my post. ;)
     
  10. Offline

    Geekxboy

    PerezHD
    This should do the trick: Download Link
    I also don't recommend doing this as a large amount of entities will be loaded in the world


    For anyone who wants to know how its done:
    Whenever an entity spawns just set it to not remove when players move far away
    Code:java
    1. public void onCreateSpawn(CreatureSpawnEvent event) {
    2. LivingEntity entity = event.getEntity();
    3. entity.setRemoveWhenFarAway(false);
    4. }
     
    PerezHD and trenton_jeffro like this.
  11. Offline

    PerezHD

    Eh, I knew it was entity.setRemoveWhenFarAway(false);
    I've typed that before, just forgot, thanks for locking that in my head!
     
Thread Status:
Not open for further replies.

Share This Page