前回の動画ではたくさんのリクエストありがとうございました。
ほぼ、五条さん続きで領域展開 無量空処を作る流れでしたが、実際にプレイしているコンテンツの方が作りやすいなと思ったので、あえて原神の再現をしてみました。無量空処はアニメとか一周してから作りたいです。
構文です
~下準備~
/gamerule commandblockoutput false
/scoreboard objectives add Huhun dummy
/scoreboard objectives add Habikori dummy
~構文~
/execute as @a[hasitem={item=spyglass,location=slot.weapon.mainhand}] at @s unless entity @s[y=~1.8,dx=0] if entity @s[y=~1.4,dx=0] run tag @s add Nahi
/effect @a[tag=Nahi] slowness 1 2 true
/effect @a[tag=!Nahi] slowness 0 0
/execute as @a[tag=Nahi] at @s positioned ~ ~1.65 ~ positioned ^ ^ ^1 run tag @e[tag=!Nahi,r=1.5] add Marumie
/execute as @a[tag=Nahi] at @s positioned ~ ~1.65 ~ positioned ^ ^ ^4 run tag @e[tag=!Nahi,r=2.5] add Marumie
/execute as @a[tag=Nahi] at @s positioned ~ ~1.65 ~ positioned ^ ^ ^9 run tag @e[tag=!Nahi,r=3.5] add Marumie
/execute as @a[tag=Nahi] at @s positioned ~ ~1.65 ~ positioned ^ ^ ^16 run tag @e[tag=!Nahi,r=4.5] add Marumie
/execute as @e[tag=Marumie] at @s run particle minecraft:dragon_destroy_block ~ ~1 ~
/execute as @e[tag=Marumie] at @s unless entity @a[tag=Nahi] run scoreboard players set @s Huhun 0
/execute as @e[tag=Marumie] at @s unless entity @a[tag=Nahi] run scoreboard players set @s Habikori 0
/execute as @e[tag=Marumie] at @s unless entity @a[tag=Nahi] run tag @s remove Marumie
/scoreboard players add @e[scores={Huhun=0..500}] Huhun 1
/scoreboard players add @e[scores={Habikori=1..50}] Habikori -1
/execute as @e[scores={Huhun=0..500,Habikori=0}] at @s unless entity @s[hasitem={item=turtle_helmet,location=slot.armor.head}] run particle minecraft:knockback_roar_particle ~ ~1 ~
/execute as @e[scores={Huhun=0..500,Habikori=0}] at @s unless entity @s[hasitem={item=turtle_helmet,location=slot.armor.head}] run particle minecraft:crop_growth_emitter ~ ~1 ~
/execute as @e[scores={Huhun=0..500,Habikori=0}] at @s unless entity @s[hasitem={item=turtle_helmet,location=slot.armor.head}] run playsound mob.slime.hurt @a ~ ~ ~ 1 1
/execute as @e[scores={Huhun=0..500,Habikori=0}] at @s unless entity @s[hasitem={item=turtle_helmet,location=slot.armor.head}] run scoreboard players set @s Habikori 50
/execute as @e[scores={Huhun=0..500}] at @s run replaceitem entity @s slot.armor.head 0 turtle_helmet 1 999{"minecraft:keep_on_death":{},"minecraft:item_lock":{"mode":"lock_in_slot"}}
/execute as @e[scores={Huhun=0..500,Habikori=50}] at @s as @e[r=8] if entity @s[hasitem={item=turtle_helmet,location=slot.armor.head},scores={Huhun=0..500,Habikori=0}] run replaceitem entity @s slot.armor.head 0 air
/execute as @e[scores={Huhun=0..500,Habikori=50}] at @s run damage @s 6 suicide entity @s
/execute as @e[scores={Huhun=500}] at @s run replaceitem entity @s slot.armor.head 0 air
/tag @a remove Nahi