最佳答案:首先用/give 玩家名 minecraft:command_block这个指令给自己一个命令方块这是刷猪的刷怪笼/setblock ~ ~1 ~ minecraft:mob_spawner 0 re