【Minecraft】Tutoriel de commande pour lancer des TNT
Ying Nai Wind·2/21/2026
Obtenir la boule de neige explosive
Commande :
/give @p snowball 1 1145 {"minecraft:can_destroy":{"blocks":["tnt"]}}
Commandes principales
Les commandes suivantes doivent être configurées et activées dans des blocs de commande.
Boucle (inconditionnel)
execute as @e[type=snowball,tag=!tnt,tag=boule_de_neige_explosive] at @s run summon tnt ~~1~
Chaînage (inconditionnel)
execute as @e[type=snowball,tag=boule_de_neige_explosive] at @s if block ~~1~ air run tp @e[c=1,type=tnt] ~~1~
Chaînage (inconditionnel)
execute as @e[type=snowball,tag=boule_de_neige_explosive] at @s if entity @e[r=1.5,type=tnt] run tag @s add tnt
Chaînage (inconditionnel)
playanimation @e[tag=boule_de_neige_explosive] animation.creeper.swelling move 1000
Chaînage (inconditionnel)
execute as @e[type=tnt] at @s if entity @e[tag=boule_de_neige_explosive,r=2] run particle minecraft:redstone_wire_dust_particle
Chaînage (inconditionnel)
execute as @a[hasitem={item=snowball,location=slot.weapon.mainhand,data=1145}] at @s run tag @s add addtnt
Chaînage (inconditionnel)
execute as @a[tag=addtnt] at @s run tag @e[type=snowball,r=2.5,c=1] add boule_de_neige_explosive
Chaînage (conditionnel)
execute as @a[hasitem={item=snowball,location=slot.weapon.mainhand,data=1145,quantity=0}] at @s run tag @s remove addtnt
Chaînage (inconditionnel, délai>20)
execute as @a[hasitem={item=snowball,location=slot.weapon.mainhand,data=1145,quantity=0}] at @s run tag @s remove addtnt