【mc指令】原版纯指令滑铲,枪战地图必备,撞击敌人有伤害!

指令楼
获得命令方块/give @s command_block
使用前需要聊天栏输入/scoreboard objectives add 滑铲 dummy
蹲下可以将命令方块连起来
滑铲指令
【主体】
execute @e [type=ender_pearl] ~~~ tag @p add 滑铲
execute @a [tag=滑铲] ~~~ detect ~~~ air 0 tp @s ^^^0.6
scoreboard players add @a [tag=滑铲] 滑铲 1
scoreboard players set @a [scores={滑铲=11..}] 滑铲 0
tag @a [scores={滑铲=10..}] remove 滑铲
execute @a [tag=滑铲] ~~-1~ detect ~~~ air 0 tp @s ~~-0.4~
execute @a [tag=滑铲] ~~~ damage @e [r=1.5,rm=0.1] 5 fly_into_wall entity @s
execute @a [tag=滑铲] ~~~ particle minecraft:explosion_particle
playanimation @a [tag=滑铲] animation.player.sleeping move 1
/kill @e [type=ender_pearl]
【防卡墙】
tag @a [tag=滑铲] add 空气
execute @e [tag=滑铲] ~~~ detect ~~~ air 0 tag @s reovme 空气
/execute @e [tag=空气] ~~~ tp @s ~~0.5~
tag @e remove 空气
丢魔影珍珠使用