Jump to content

Get custom Player_Head (skull) with custom name as ItemStack (1.12.2)


Recommended Posts

I found an old thread from WARDOGSK93 on how to give a custom player_head skull as an ItemStack but thread got locked because it was so old. Just wanted to share the method I made (updated to be 1.12.2 compatible) for this (I added giving it a custom name too). 

    // REFERENCE: http://www.minecraftforge.net/forum/topic/24228-solved-1710-player-skulls/    	
    private ItemStack GetCustomHead(String playerName, String headName) {	    	
    	ItemStack customHead = new ItemStack(Items.field_151144_bL, 1, 3);    
    	customHead.setTag(new NBTTagCompound()); 
    	customHead.getTag().setTag("SkullOwner", new NBTTagString(playerName));      	
    	return customHead;    	    


@WARDOGSK93 - Thank you again if you're still out there!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.