您好!
比如我要给予自己一个石头,可以破坏刷怪笼,可以放置在闪长岩上,
则指令为
1.12以下:/give @s minecraft:stone 1 0 {CanDestroy:["minecraft:mob_spawner"],CanPlaceOn:["minecraft:stone"]}
1.13:/give @s minecraft:stone{CanDestroy:["minecraft:spawner"],CanPlaceOn:["minecraft:diorite"]} 1
1.14:/give @s minecraft:stone{CanDestroy:["minecraft:spawner"],CanPlaceOn:["minecraft:diorite"]} 1
BedRock:/give @s stone 1 0 {minecraft:can_destroy:{blocks:["mob_spawner"]},minecraft:can_place_on:{blocks:["stone"]}}
注意!版本为1.12.2以下以及BedRock版本的石头变种(石头,闪长岩,花岗岩,安山岩)ID均为"stone"!并且各个版本的指令格式都不同!
如果我的回答对您有帮助,请采纳我!
如果我的回答有错误,请谅解!
温馨提示:答案为网友推荐,仅供参考