1.7及以下版本:输入/give1371可以获得一个命令方块
1.8及以上:/givecommand_block1可以获得一个命令方块
在命令方块中输入以下代码:
/summonFallingSand~~1~2{Time:1,Block:minecraft:redstone_block,Passengers:[{id:FallingSand,Time:1,Block:minecraft:activator_rail,Passengers:[{id:MinecartCommandBlock,Command:/gamerulecommandBlockOutputfalse},{id:MinecartCommandBlock,Command:/scoreboardobjectivesaddtimerdummy},{id:MinecartCommandBlock,Command:/scoreboardobjectivesaddxptimerdummy},{id:MinecartCommandBlock,Command:/title@atitle[{text:经验瓶手榴弹安装成功,color:red}]},{id:MinecartCommandBlock,Command:/title@asubtitle[{text:码蚁工作室_天际制作Minecraftid:Freerr,color:aqua}]},{id:MinecartCommandBlock,Command:/setblock~~-1~-2minecraft:air},{id:MinecartCommandBlock,Command:/replaceitementity@aslot.hotbar.4minecraft:experience_bottle640{display:{Name:手榴弹}}},{id:MinecartCommandBlock,Command:setblock~0~2~0repeating_command_block5replace{auto:1b,Command:/testfor@e[type=ThrownExpBottle,tag=true]}},{id:MinecartCommandBlock,Command:setblock~1~2~0repeating_command_block13replace{auto:1b,Command:/scoreboardplayersadd@atimer1}},{id:MinecartCommandBlock,Command:setblock~2~2~0repeating_command_block5replace{auto:1b,Command:/scoreboardplayerstest@atimer3}},{id:MinecartCommandBlock,Command:setblock~3~2~0chain_command_block13replace{auto:1b,Command:/execute@e[type=XPOrb,score_xptimer=5]~~~summonPrimedTnt}},{id:MinecartCommandBlock,Command:setblock~4~2~0repeating_command_block3replace{auto:1b,Command:/scoreboardplayersadd@e[type=XPOrb]xptimer1}},{id:MinecartCommandBlock,Command:setblock~4~2~1chain_command_block4replace{auto:1b,Command:/execute@e[type=PrimedTnt]~~~scoreboardplayersset@atimer0}},{id:MinecartCommandBlock,Command:setblock~3~2~1chain_command_block4replace{auto:1b,Command:/testfor@a{SelectedItem:{id:minecraft:experience_bottle,tag:{display:{Name:手榴弹}}}}}},{id:MinecartCommandBlock,Command:setblock~2~2~1chain_command_block12replace{auto:1b,Command:/scoreboardplayerstag@e[type=ThrownExpBottle]addtrue}},{id:MinecartCommandBlock,Command:setblock~1~2~1repeating_command_block4replace{auto:1b,Command:/kill@e[score_xptimer_min=800]}},{id:MinecartCommandBlock,Command:fill~-1~1~-1~5~3~2stained_glass3outline},{id:MinecartCommandBlock,Command:fill~-1~1~-1~5~1~2stained_hardened_clay3},{id:MinecartCommandBlock,Command:fill~-1~3~-1~5~3~2stained_hardened_clay3},{id:MinecartCommandBlock,Command:setblock~2~2~-2wall_sign8replace{Text3:{text:[点我移除模组],color:dark_red,clickEvent:{action:run_command,value:fill~-3~-1~~3~1~4air0}}}},{id:MinecartCommandBlock,Command:/setblock~~-1~minecraft:lava15},{id:MinecartCommandBlock,Command:setblock~~~air0}]}]}
之后保存再用红石激活命令方块,经验瓶就可以变成炸弹