How can I get a player head that can only be placed on a specific block? [duplicate]
//ads -- adsterra.com -- native banner
?>
So I Have a adventure map and I want to know how to get a head that can only be placed on a certain block. I know how to make blocks that can only be placed on certain blocks, but I want a head that can be placed on a certain block and I want the head to be a TNT head, like so:
/give Angel_Scarz minecraft:skull 1 3 {SkullOwner:"MHF_Tnt"}
How can I make it so that this head can only be placed on a certain block?
Best Answer
try this:
/give <player> minecraft:skull 1 3 {SkullOwner:"MHF_Tnt",CanPlaceOn:["minecraft:<block_id>","minecraft:<block_id2>]}
replacing the values inside the <>
with what you want
Pictures about "How can I get a player head that can only be placed on a specific block? [duplicate]"
How do you make it so an item can only be placed on a certain block?
How to Get Someone Else's Head in MinecraftHow do you get a custom head in Minecraft with command blocks?
The command to give the player a head with the skin of another player is /give @s minecraft:player_head{SkullOwner:"<PlayerName>"} . Commonly, this kind of head is called a custom head.How To Get People's Heads In Minecraft
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Dazzle Jam, cottonbro, Nicola Barts, Anna Shvets