方块的繁殖:
/summon FallingSand ~ ~1 ~ {Time:1,Block:redstone_block,Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:fill ~1 ~1 ~ ~ ~-9 ~ air},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:give @a experience_bottle 1 0},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:setblock ~-2 ~-2 ~ redstone_block},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:setblock ~-2 ~ ~ command_block 0 {} {Command:setblock ~ ~-1 ~ redstone_block}},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:setblock ~-1 ~ ~ command_block 0 {} {Command:execute @e[type=XPOrb] ~ ~ ~ setblock ~ ~ ~ diamond_block}},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:setblock ~-2 ~ ~ command_block 0 {} {Command:setblock ~ ~1 ~ air}},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:gamerule doTileDrops false},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:fill ~1 ~1 ~ ~1 ~6 ~ redstone_block},Riding:{id:FallingSand,Time:1,Block:redstone_block}}}}}}}}}}
【说明:方块ID可以自己修改】
原理:当命令方块探测到有经验球的时候,会在经验球所在的位置放一个方块,方块会把经验球挤出来,又在另一个地方放置方块。
以此类推,如果经验球不消失,指令将会永远执行下去。
方块的腐蚀:
/summon FallingSand ~ ~1 ~ {Time:1,Block:redstone_block,Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:fill ~1 ~1 ~ ~ ~-9 ~ air},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:give @a experience_bottle 1 0},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:setblock ~-2 ~-2 ~ redstone_block},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:setblock ~-2 ~ ~ command_block 0 {} {Command:setblock ~ ~-1 ~ redstone_block}},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:setblock ~-1 ~ ~ command_block 0 {} {Command:execute @e[type=XPOrb] ~ ~ ~ setblock ~ ~-1 ~ air 0 destroy }},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:setblock ~-2 ~ ~ command_block 0 {} {Command:setblock ~ ~1 ~ air}},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:gamerule doTileDrops false},Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:fill ~1 ~1 ~ ~1 ~6 ~ redstone_block},Riding:{id:FallingSand,Time:1,Block:redstone_block}}}}}}}}}}
原理:当命令方块探测到有经验球的时候,会在经验球所在的位置的下面放一个空气方块,经验球弹来弹去,又在另一个地方的下面放一个空气方块。
以此类推,如果经验球不消失,指令将会永远执行下去。
【由于旧方块的处理方式为destroy,所以会听到方块被破坏的声音】
【说明:还可以把它们改成fill,这样可能更爽,不过这条指令有点卡,改成fill就更卡了】
事实上,两个指令都差不多,只不过第二条指令就是把“setblock ~ ~ ~ diamond_block”改为“setblock ~ ~-1 ~ air 0 destroy”而已