我的世界

【我的世界】抛射TNT指令教学

Ying Nai Wind·2/21/2026

获得炸弹雪球

指令:

/give @p snowball 1 1145 {"minecraft:can_destroy":{"blocks":["tnt"]}}

主体指令

以下指令需在命令方块中设置并激活。

循环(无条件)

execute as @e[type=snowball,tag=!tnt,tag=炸弹雪球] at @s run summon tnt ~~1~

连锁(无条件)

execute as @e[type=snowball,tag=炸弹雪球] at @s if block ~~1~ air run tp @e[c=1,type=tnt] ~~1~

连锁(无条件)

execute as @e[type=snowball,tag=炸弹雪球] at @s if entity @e[r=1.5,type=tnt] run tag @s add tnt

连锁(无条件)

playanimation @e[tag=炸弹雪球] animation.creeper.swelling move 1000

连锁(无条件)

execute as @e[type=tnt] at @s if entity @e[tag=炸弹雪球,r=2] run particle minecraft:redstone_wire_dust_particle

连锁(无条件)

execute as @a[hasitem={item=snowball,location=slot.weapon.mainhand,data=1145}] at @s run tag @s add addtnt

连锁(无条件)

execute as @a[tag=addtnt] at @s run tag @e[type=snowball,r=2.5,c=1] add 炸弹雪球

连锁(有条件)

execute as @a[hasitem={item=snowball,location=slot.weapon.mainhand,data=1145,quantity=0}] at @s run tag @s remove addtnt

连锁(无条件,延迟>20)

execute as @a[hasitem={item=snowball,location=slot.weapon.mainhand,data=1145,quantity=0}] at @s run tag @s remove addtnt