新版MC基岩版命令,飞行检测自动封禁,基本零误判,服务器可用

发布于 2023-02-01  416 次阅读


视频演示

具体命令

首先手动创建一个记分板

/scoreboard objectives add 飞行 dummy 飞行

然后放置以下命令方块
以下所有命令方块全部为无条件始终活动循环命令方块

防飞行核心 0(这个0是执行延迟)

execute as @a[tag=!有鞘翅] at @s run execute if block ~ ~ ~ air run execute if block ~ ~-1 ~ air run execute if block ~ ~-3 ~ air run execute if block ~-1 ~-1 ~-1 air run execute if block ~1 ~-1 ~1 air run execute if block ~1 ~-1 ~ air run execute if block ~ ~-1 ~1 air run execute if block ~-1 ~-1 ~ air run execute if block ~ ~-1 ~-1 air run execute if block ~-1 ~-1 ~1 air run execute if block ~1 ~-1 ~-1 air run execute if block ~ ~1 ~ air run execute if block ~-1 ~1 ~-1 air run execute if block ~1 ~1 ~1 air run execute if block ~1 ~1 ~ air run execute if block ~ ~1 ~1 air run execute if block ~-1 ~1 ~ air run execute if block ~ ~1 ~-1 air run execute if block ~-1 ~1 ~1 air run execute if block ~1 ~1 ~-1 air run execute if block ~-1 ~ ~-1 air run execute if block ~1 ~ ~1 air run execute if block ~1 ~ ~ air run execute if block ~ ~ ~1 air run execute if block ~-1 ~ ~ air run execute if block ~ ~ ~-1 air run execute if block ~-1 ~ ~1 air run execute if block ~1 ~ ~-1 air run execute if block ~-1 ~2 ~-1 air run execute if block ~1 ~2 ~1 air run execute if block ~1 ~2 ~ air run execute if block ~ ~2 ~1 air run execute if block ~-1 ~2 ~ air run execute if block ~ ~2 ~-1 air run execute if block ~-1 ~2 ~1 air run execute if block ~1 ~2 ~-1 air run execute if block ~ ~2 ~ air run scoreboard players add @s 飞行 1

鞘翅检测 0

tag @a[hasitem={item=elytra,location=slot.armor.chest}] add 有鞘翅

翘翅检测重置 4

tag @a remove 有鞘翅

在地面的时候归零 0

execute as @a at @s unless block ~ ~-1 ~ air run scoreboard players set @s 飞行 0

排除烟花推进 0

execute as @e[type=fireworks_rocket] at @s run scoreboard players set @p[r=10] 飞行 0

排除潜影贝导弹造成的漂浮 0

execute as @e[type=minecraft:shulker_bullet] at @s run scoreboard players set @p[r=2] 飞行 -200

达到阈值重置飞行 0

scoreboard players set @a[scores={飞行=250}] 飞行 0

自动清除缓降效果 0

effect @a[scores={飞行=50}] slow_falling 0 0 true

对疑似飞行者执行警告一 0

title @a[scores={飞行=80}] actionbar §c检测到您可能违法飞行,请马上降落在方块表面~

警告二 0

title @a[scores={飞行=120}] actionbar §4请立马回到方块表面,否则进行封禁~

进行封禁 0

tag @a[scores={飞行=240}] add 封禁
届ける言葉を今は育ててる
最后更新于 2023-02-01