一回だけシフトを感知する機構

投稿者:ダー/Dar
投稿日:2024/7/27
ジャンル:技術・機構構文一覧
環境:通常
情報番号:14

構文
execute as @a[tag=shift2] at @s if entity @s[y=~1.4,dx=0] unless entity @s[y=~1.5,dx=0] run tag @s add shift

execute as @a at @s if entity @s[y=~1.4,dx=0] unless entity @s[y=~1.5,dx=0] run tag @s add shift2

execute as @a at @s if entity @s[y=~1.5,dx=0] run tag @s remove shift2

execute as @a at @s if entity @s[y=~1.5,dx=0] run tag @s remove shift

補足
tagコマンドで遅延を発生させてから、シフトタグをつけているので、他のコマンドを繋げなくても大丈夫です
最終更新:2024年12月25日 15:24
|新しいページ |検索 |ページ一覧 |RSS |@ウィキご利用ガイド |管理者にお問合せ
|ログイン|