【问题标题】:Execute command doesn't work - Minecraft 1.16.3执行命令不起作用 - Minecraft 1.16.3
【发布时间】:2021-08-11 17:57:07
【问题描述】:

我正在制作一张地图,我希望每次玩家在橙色陶土块上行走时,玩家都会获得 1 秒的悬浮效果。问题是当我运行命令时,游戏什么也不做,即使 /gamerule commandBlockOutput true 也没有输出。

execute as @a at @s if block ~ ~ ~ minecraft:orange_terracotta run effect give @s minecraft:levitation 1 40 true

这是我正在使用的命令,我已经把它放在一个具有重复模式的命令块中,无条件并且需要红石。

【问题讨论】:

    标签: minecraft execute


    【解决方案1】:

    尝试做〜〜-1〜或类似的东西。你说的是玩家所在的特定街区。如果你做execute as @a at @s if block ~ ~-1 ~ minecraft:orange_terracotta run effect give @s minecraft:levitation 1 40 true,它会在播放器下做块

    【讨论】:

    • 我已经检查过了,这确实有效。如果你现在有世界下载,我很想看看你的地图:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多