マイクラ用の魔法コマンドです コマンドブロックに入力して実行してください 対応する染料を持ってシフトをすれば一定時間後魔法が発動します。 続き https://scratch.mit.edu/projects/1055121480/ 魔法の説明↓ 炎弾 消費MP22 炎の球を飛ばす 雷鳴 消費MP50 半径30マスに雷を落とす 地撃 消費MP30 地面に足をつけている生物にダメージを与える。プレイヤーには画面も揺らす 瞬間移動 消費MP30 10マス先にテレポートする 衝撃 消費MP30 防御無視の衝撃波を飛ばす
最初に打つコマンド /scoreboard objectives add chanting dummy /scoreboard objectives add mp dummy /scoreboard objectives add time dummy 詠唱 反復 無条件 常にアクティブ execute as @a at @s unless entity @s[y=~1.8,dx=0] run tag @s add aquat チェーン 無条件 常にアクティブ scoreboard players add @a[tag=aquat] chanting 1 チェーン 無条件 常にアクティブ scoreboard players set @a[tag=!aquat] chanting 0 チェーン 無条件 常にアクティブ scoreboard players add @a[tag=!aquat,scores={mp=..99}] mp 1 チェーン 無条件 常にアクティブ tag @a remove aquat チェーン 無条件 常にアクティブ execute as @a run titleraw @s actionbar{"rawtext":[{"text":"MP:"},{"score":{"name":"@s","objective":"mp"}},{"text":"詠唱:"},{"score":{"name":"@s","objective":"chanting"}}]]} 炎弾 赤の染料 反復 無条件 常にアクティブ execute at @a[scores={chanting=22..,mp=22..}, hasitem={item=red_dye,location=slot.weapon.mainhand}] run summon armor_stand Flame ~~~ チェーン 無条件 常にアクティブ execute as [c=1,scores={chanting=22..,mp=22..}, hasitem={item=red_dye,location=slot.weapon.mainhand}] at run tp [name=Flame,tag=!flame] ~~1~ facing ^^^5 チェーン 無条件 常にアクティブ tag [scores={chanting=22..,mp=22..}, hasitem={item=red_dye,location=slot.weapon.mainhand}] add bullet チェーン 無条件 常にアクティブ scoreboard players remove [tag=bullet] mp 22 チェーン 無条件 常にアクティブ scoreboard players remove [tag=bullet] chanting 22 チェーン 無条件 常にアクティブ execute as [tag=bullet] run tell [r=5] 炎弾 チェーン 無条件 常にアクティブ tag remove bullet チェーン 無条件 常にアクティブ tag [name=Flame] add flame チェーン 無条件 常にアクティブ effect [name=Flame,tag=flame] invisibility true チェーン 無条件 常にアクティブ execute as [name=Flame,tag=flame] run particle minecraft:mobflame_single チェーン 無条件 常にアクティブ execute as [name=Flame,tag=flame] run damage [r=2,tag=!flame] 3 fire チェーン 無条件 常にアクティブ scoreboard players add [name=Flame,tag=flame] time 1 チェーン 無条件 常にアクティブ execute as [name=Flame,tag=flame] run tp ^^^1 true チェーン 無条件 常にアクティブ kill [name=Flame,tag=flame,scores={time=20..}] 雷鳴 黄色の染料 反復 無条件 常にアクティブ tag [scores={chanting=50..,mp=49..}, hasitem={item=yellow_dye,location=slot.weapon.mainhand}] add lightning チェーン 無条件 常にアクティブ execute as [tag=lightning] at run damage [r=30,tag=!lightning] 10 lightning チェーン 無条件 常にアクティブ execute as [tag=lightning] at run execute as [r=30,tag=!lightning] at run summon lightning_bolt チェーン 無条件 常にアクティブ scoreboard players remove [tag=lightning] mp 50 チェーン 無条件 常にアクティブ scoreboard players remove [tag=lightning] chanting 50 チェーン 無条件 常にアクティブ execute as [tag=lightning] at run tell [r=5] 雷鳴 チェーン 無条件 常にアクティブ tag remove lightning 地撃 茶色の染料 反復 無条件 常にアクティブ tag [scores={chanting=1000..,mp=30..}, hasitem={item=brown_dye,location=slot.weapon.mainhand}] add earthquake チェーン 無条件 常にアクティブ execute as [tag=earthquake] run execute as [tag=!earthquake] run execute if block ~ ~-1 ~ air run tag add avoidance チェーン 無条件 常にアクティブ camerashale add 4 1 チェーン 無条件 常にアクティブ damage [tag=avoidance] 10 fall チェーン 無条件 常にアクティブ scoreboard players remove [tag=earthquake] mp 99 チェーン 無条件 常にアクティブ scoreboard players remove [tag=earthquake] chanting 1000 チェーン 無条件 常にアクティブ execute as [tag=earthquake] at run tell [r=5] 地撃 チェーン 無条件 常にアクティブ tag remove earthquake チェーン 無条件 常にアクティブ tag remove avoidance 瞬間移動 青緑の染料 反復 無条件 常にアクティブ tag [scores={chanting=30..,mp=30..}, hasitem={item=cyan_dye,location=slot.weapon.mainhand}] add teleportation チェーン 無条件 常にアクティブ tp [tag=teleportation] ^^^10 true チェーン 無条件 常にアクティブ scoreboard players remove [tag=teleportation] mp 20 チェーン 無条件 常にアクティブ scoreboard players remove [tag=teleportation] chanting 30 チェーン 無条件 常にアクティブ execute as [tag=teleportation] at run tell [r=5] 瞬間移動 チェーン 無条件 常にアクティブ tag remove teleportation 衝撃 青の染料 反復 無条件 常にアクティブ execute at [scores={chanting=30..,mp=30..}, hasitem={item=blue_dye,location=slot.weapon.mainhand}] run summon armor_stand wave ~~~ チェーン 無条件 常にアクティブ execute as [c=1,scores={chanting=30..,mp=30..}, hasitem={item=blue_dye,location=slot.weapon.mainhand}] at run tp [name=wave,tag=!flame] ~~1~ facing ^^^5 チェーン 無条件 常にアクティブ tag [scores={chanting=30..,mp=30..}, hasitem={item=blue_dye,location=slot.weapon.mainhand}] add impact チェーン 無条件 常にアクティブ scoreboard players remove [tag=impact] mp35 チェーン 無条件 常にアクティブ scoreboard players remove [tag=impact] chanting 30 チェーン 無条件 常にアクティブ execute as [tag=impact] run tell [r=5] 衝撃 チェーン 無条件 常にアクティブ tag remove impact チェーン 無条件 常にアクティブ tag [name=wave] add destruction チェーン 無条件 常にアクティブ effect [name=wave,tag=destruction] invisibility true チェーン 無条件 常にアクティブ execute as [name=wave,tag=destruction] run particle minecraft:sonic_boom チェーン 無条件 常にアクティブ execute as [name=wave,tag=destruction] run damage [r=2,tag=!destruction] 5 self_sestruct チェーン 無条件 常にアクティブ scoreboard players add [name=wave,tag=destruction] time 1 チェーン 無条件 常にアクティブ execute as [name=wave,tag=destruction] run tp ^^^1 true チェーン 無条件 常にアクティブ kill [name=wave,tag=destruction,scores={time=25..}]