Minecraft spawneggs CanPlaceOn
I am trying to give myself a wolf spawn egg named Bradley (or a different name) that can be placed on grass.
I have tried:
/give @p minecraft:spawn_egg 1 0 {Entitytag:{id:"Wolf",CustomName:"Bradley"CanPlaceOn:["minecraft:grass"]}}
Can someone please help me?
The correct command for 1.12 is:
/give @p spawn_egg 1 0 {EntityTag:{id:"minecraft:wolf",CustomName:"Bradley"},CanPlaceOn:["minecraft:grass"]}
Here is a command with the proper hideflag to hide the CanPlaceOn data:
/give @p spawn_egg 1 0 {EntityTag:{id:"minecraft:wolf",CustomName:"Bradley"},CanPlaceOn:["minecraft:grass"],HideFlags:16}