Custom Mob Heads Concept

Discussion in 'Plugin Development' started by BlueMustache, Jul 9, 2014.

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

    BlueMustache

    Hey Guys,
    I saw this video a while back, and wanted to know if this is currently possible to implement with the bukkit api.
    I have been gone for a while, and did not catch up about the new bug with 1.7.9 mob heads, and how to fix this.
    Any ideas?
    Sorry for the video being in code, Youtube is weird here.
    Thanks.
    -Blue

    PHP:
    http://youtu.be/J0ulXBtxQvo
    Bump.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  2. Offline

    indyetoile

    BlueMustache
    The person in the video does it using command blocks.
    Please take a look at this PasteBin file: http://pastebin.com/gkincZxU

    From there you could implement this in your Bukkit plugins.
     
  3. Offline

    BlueMustache

    indyetoile
    I know that, but you need to use NBT which isn't in the bukkit api.
    Are their any bukkit api methods I could use?
     
  4. Offline

    indyetoile

    BlueMustache
    There's no actual way of doing it without NBT (if this is even possible within Bukkit), I believe.
    You could use a Player head instead:
    Code:java
    1. ItemStack skull =new ItemStack(Material.SKULL_ITEM, 1, (short) SkullType.PLAYER.ordinal());
    2. SkullMeta meta =(SkullMeta) skull.getItemMeta();
    3. meta.setOwner("Player name here");
    4. skull.setItemMeta(meta);
     
  5. Offline

    BlueMustache

    Bump.

    indyetoile
    Ill see if that works.
    But the question is, does anyone have experience with nbt?

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

Share This Page