1.5 Api

Discussion in 'Bukkit Discussion' started by Burnsalan18, Mar 16, 2013.

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

    Burnsalan18

    So 1.5 is probably my most favorite minecraft release so far. And Ive already got a pretty good idea of how the renamable mobs thing will work. sorta like this:

    Code:
    Zombie z = (Zombie) event.getentity()
     
    If(z.getdisplayname().contains("bob")){
    z.getinventory().sethelmet(Material.DIAMOND_HELMET)
    }
    Or it could use the meta data like recipes and colored leather. idk anyone got any thoughts on this?
     
  2. Offline

    stuntguy3000

    Ahem...

    "z.getinventory()."
    They do not (I hope not) have inventories

    You are basing your guesses on the way Player's are dealt with. Entity are completely different, and i am thinking mobs will need there own one due to new properties.
     
  3. Offline

    Burnsalan18

    stuntguy3000 Thats what I was thinking, but there must be some way of getting a specific way of getting a mob by its name and equipping it with armor and potion effects in a much easier way than the older api does it.
     
Thread Status:
Not open for further replies.

Share This Page