コマンド関連

/execute as @a[hasitem={手に持つアイテム名,location=slot.weapon.mainhand}] at @s run fill ~x~y~z~x~y~z 設置したいブロック名 [] keep
(リピート・遅延0)
keepを消すと元々設置されていたブロックも置き換えて設置する
例:/execute as @a[hasitem={item=iron_axe,location=slot.weapon.mainhand}] at @s run fill ~-0~-2~-0~0~-1~0 sand [] keep
(鉄斧持った時、足の下に2マスの砂を設置)

/effect  @s  効果名  効果時間(無限可)  効果レベル(255まで)  エフェクトを消す
代表例
speed スピード (クリエで飛んでると効果無し)
night_vision 暗視 (1~255まで同じ)

モヤモヤを消すは
trueで消す、falseで消さない。(true推奨)


/effect @a night_vision infinite 255 true

暗視レベル1を自分に10億秒付与、モヤモヤ無し