entity.setTarget() makes no attempt to set target!

Discussion in 'Plugin Help/Development/Requests' started by ice374, Dec 6, 2014.

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

    ice374

    ok, whats the deal, what should i be aware of that i arent / what am i doing wrong with 1.8?

    previously (1.7.x) my plugin ran fine, the giant tracked the player, and would move around and stuff,
    now on 1.8.x, the giant stands still, on the spot, doing nothing (except for shooting arrows, but they are controlled by his head, so they are all ending up in one pile on the ground).


    Code:java
    1. final Giant g = (Giant)w.spawnEntity(bLoc, EntityType.GIANT);
    2. g.setCanPickupItems(false);
    3. g.setCustomName(ChatColor.GREEN + "The Grinch!");
    4. g.setRemoveWhenFarAway(false);
    5. g.setMaxHealth(200.0);
    6. g.setHealth(200.0);
    7. g.setTarget((LivingEntity)p);
    8. g.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 1000000, 1000000));


    ive also tried commenting out each of the "g." lines of code one at a time and as a whole, the giant just does the same thing :/

    [​IMG]
     
  2. ice374 According to MinecraftWiki, the giants' AI was removed.
     
  3. Offline

    ice374

    looking for the bit where it says that the AI was removed, call me blind DJSkepter
     
  4. Offline

    timtower Moderator Moderator

    Moved to bukkit alternatives
     
Thread Status:
Not open for further replies.

Share This Page