Custom Mobs with skins?

Discussion in 'Plugin Development' started by chimechongas, Mar 11, 2014.

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

    chimechongas

    I was looking over at Dungeon Realms, and read some pages on Bukkit. I know you cannot create "truly" custom mobs with Bukkit without Client Mods, but how did DR do it? They custom skins?( ) It seems that they used a normal skeleton and somehow put a skin onto it. Are there hidden files in Minecraft or something?
     
  2. Offline

    Garris0n

    Resource packs...
     
  3. Offline

    97WaterPolo

    I didn't watch the video, butit is possible to create a skeleton skin and have a player equip it, spawn in an NPC and set the name of the character to that of the real MC account with the skeleton skin. That might be the closest you can get skin and texture wise through server side. Besides resource packs.
     
  4. Offline

    chimechongas

    [​IMG]
    This is what they look like without a resource pack.
     
  5. Offline

    Norbu10

    chimechongas
    Easy as pie :p :
    Code:java
    1. ItemStack skull = new ItemStack(Material.SKULL_ITEM, 1, (short) SkullType.PLAYER.ordinal());
    2. SkullMeta meta = (SkullMeta) skull.getItemMeta();
    3. meta.setOwner("thisistheplayernamethattheheadhastobe/or skull");
    4. skull.setItemMeta(meta);
    5. final Skeleton z = p.getWorld().spawn(p.getLocation(), Skeleton.class);
    6. z.setSkeletonType(SkeletonType.WITHER);
    7. z.getEquipment().setHelmet(skull);
    8. z.setCustomName(ChatColor.LIGHT_PURPLE+""+ChatColor.BOLD+"Clumsy Poison Bandit");
    9. z.setCustomNameVisible(true);

    It uses player skulls -.- and setSkeletonType is the skeleton type and i set it to wither
    I also set the name (I didnt set the armor because that is waste of my time) "thisistheplayernamethattheheadhastobe/or skull" Is the players name! so if you set it to a players name it will get their head :D
     
    Garris0n likes this.
  6. Offline

    Garris0n

    That is just a renamed wither skeleton with armor and a player head.
     
  7. Its just a mob with a player head. was a builder at the server and helped with an alt for the head skin.
     
Thread Status:
Not open for further replies.

Share This Page