【10cb】可投擲TNT炸彈 手持長按屏幕檢測 多人可用

可投擲TNT(視頻中命令方塊分段放置可以不用,直接一個循環(huán)后面鏈一串就行了,開保持開啟)
/execute @a[hasitem={item=tnt,location=slot.weapon.mainhand},tag=!投擲] ~~~ summon armor_stand tnt
/tag @a[hasitem={item=tnt,location=slot.weapon.mainhand},tag=!投擲] add 投擲
/execute @a[hasitem={item=tnt,location=slot.weapon.mainhand}] ~~~ tp @e[type=armor_stand,name=tnt,c=1] ^^^-0.1 facing ^^^3
/execute @a[hasitem={item=tnt,quantity=0,location=slot.weapon.mainhand},tag=投擲] ~~~ kill @e[type=armor_stand,name=tnt,c=1]
/tag @a[hasitem={item=tnt,quantity=0,location=slot.weapon.mainhand},tag=投擲] remove 投擲
/effect @e[type=armor_stand,name=tnt] invisibility 1 0 true
/execute @e[type=armor_stand,name=tnt,hasitem={item=tnt,location=slot.weapon.mainhand}] ~~~ summon tnt
/execute @e[type=armor_stand,name=tnt,hasitem={item=tnt,location=slot.weapon.mainhand}] ~~~ tp @e[type=tnt,c=1] ^^1.5^2 facing ^^^5
/replaceitem entity @e[type=armor_stand,name=tnt,hasitem={item=tnt,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 air
/execute @e[type=tnt] ~~~ detect ^^^0.5 air 0 execute @s ~~~ detect ^^^0.5 air 0 tp ^^-0.1^0.5