Development Assistance Mob Control

Discussion in 'Plugin Help/Development/Requests' started by MrFrozen, Jun 4, 2015.

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

    MrFrozen

    Hey Bukkit,

    Is there right now any up-to-date API or snippet that will let you control a spawned entity like villagers,mobs,animals so you can freeze them give custom names etc without using potions etc cause it is possible but all those APIS are outdated
     
  2. Examples being?
     
  3. Offline

    Zombie_Striker

    @MrFrozen
    Code:
    for(Entity e : World#getEntities){
    //apply potions
    }
     
  4. Offline

    MrFrozen

    LoL xD Exmaples if I do not know how to do it...
    And if you mean APIS dont say "Examples being?" anyways it is like
    Controllable Mobs & Better Remote Entties

    Also "so you can freeze them give custom names etc without using potions" Alse stuff like
    Controllable Mobs & Better Remote Entties
     
  5. My apologies, I thought the fact I quoted your line would give context enough :)

    Remote Entities claims to work for 1.7, did you try it? Also, did you try this which is up to 1.7.10?
     
  6. Offline

    MrFrozen

    But I run 1.8.3 ;) Causse else no one will play on your server cause they need to up grade MC and then Downgrade MC so that is just the point I need a 1.8.3 thing
     
  7. Offline

    timtower Administrator Administrator Moderator

    Moved to Bukkit alternatives.
     
  8. Offline

    Zombie_Striker

    @MrFrozen
    Sorry, didn't realize you said 'without'. Here's the way to do this then:
    Code:
    for(Entity e : World#getEntitiies()){
    e.setCustomDisplayName(Name);
    e.setCustomDisplayNameVisable(true);
    e.setMaxHealth();
    
    LivingEntitiy ee = (LivingEntity)e;
    ee.setBaby(true);
    ee.getArmor().setBoots(boots);
    ect.
    }
     
  9. Offline

    MrFrozen

    But how to freeze it?
     
  10. Offline

    Zombie_Striker

    @MrFrozen
    Use Schedulers
    Code:
    getServer().getScheduler().scheduleASyncRepeatingTask(the main class, new Runnable(){
    public void run(){
        for(Entity e : ...){
             if(the Entity should be frozen){
                e.setVelocity(new Vector(0,0,0));
                 e.setLocation(pastLocation);
                }
            }
        }
    }
    ,0,seconds*20L (the quickest you can set it is 2L, which fires 5 times a second));
    
    }
     
  11. Offline

    MrFrozen

    Thanks I just find out citizens is still alive and also working on 1.8.3, I will create frozen mobs with that hope I can check there names on right click. Thanks anyways it will be a good alternative this or I use this for the custom mobs that I cannot create with Citizens
     
Thread Status:
Not open for further replies.

Share This Page