Solved Recipie: Skull custom name and owner

Discussion in 'Plugin Development' started by mcrazmouze, Aug 28, 2016.

Thread Status:
Not open for further replies.
  1. I wanna make a Crafting Recipe that uses PlayerSkulls and a name.
    But when i make the recipe i just can't figure out how to make sure it's the right head and the right name.

    Code:
            // Recipe
            ItemStack skull = new ItemStack(Material.TNT);
          
            ShapedRecipe TNTBlock = new ShapedRecipe(skull);
            
            TNTBlock.shape("BB","BB");
            
            TNTBlock.setIngredient('B', Material.SKULL_ITEM );
            
            getServer().addRecipe(TNTBlock);
    
    - Keep in might i'm new to Java please.
     
Thread Status:
Not open for further replies.

Share This Page