Item display names

Discussion in 'Bukkit Help' started by Fadmad, Jan 19, 2013.

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

    Fadmad

    I've set up a very simple plugin in which when a player dies, they drop rotten flesh. I want the dropped rotten flesh to change its name into "Human Flesh"? I know, this is a very nubby question =p
    Code:
    @EventHandler
        public void onDeath (PlayerDeathEvent event){
            final ItemStack rotten = new ItemStack(Material.ROTTEN_FLESH, 1);
            final ItemMeta im = rotten.getItemMeta();
            im.setDisplayName("Human Flesh");
            rotten.getItemMeta().setDisplayName("Human Flesh");   
            event.getDrops().add(rotten);
           
           
           
        }
     
  2. Offline

    JWhy

    And... doesn't it work?
     
  3. Offline

    Fadmad

    Yeah, the item dropped is called "Rotten Flesh".
     
  4. Offline

    ifly6

    you can't change the minecraft-hard-coded names
     
  5. Offline

    Fadmad

    So, it doesn't work... Isn't there any way around that?
     
  6. Offline

    JWhy

  7. Offline

    Fadmad

    And doesn't work -___-
    Nevermind, close this thread please.
     
  8. Offline

    JWhy

Thread Status:
Not open for further replies.

Share This Page