text:
#> asset:mob/0158.sin/summon/2.summon
#
# Mobの召喚時の処理
#
# @within function asset:mob/0158.sin/summon/1.trigger

# 元となるMobを召喚する
    summon area_effect_cloud ~ ~ ~ {Tags:["MobInit"],Particle:"block air",Duration:20}
# ID (int)
    data modify storage asset:mob ID set value 158
# Type (string) Wikiを参照
    data modify storage asset:mob Type set value "Object"
# 干渉可能か否か (boolean)
    data modify storage asset:mob Interferable set value false
# 名前 (TextComponentString) (オプション)
    data modify storage asset:mob Name set value '{"text":"罪"}'
# 武器
    # メインハンド (Compound(Item)) (オプション)
        # data modify storage asset:mob Weapon.Mainhand set value
    # オフハンド (Compound(Item)) (オプション)
        # data modify storage asset:mob Weapon.Offhand set value
# 武器ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob WeaponDropChances set value
# 防具
    # 頭 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Head set value
    # 胴 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Chest set value
    # 脚 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Legs set value
    # 足 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Feet set value
# 防具ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob ArmorDropChances set value
# 体力 (double) (オプション)
    # data modify storage asset:mob Health set value
# 攻撃力 (double) (オプション)
    # data modify storage asset:mob AttackDamage set value
# 防御力 (double) (オプション) // 被ダメージがある程度大きい場合1ptにつき0.8%カット、小さい場合1ptにつき約4%カット 20pt以上は頭打ち
    # data modify storage asset:mob Defense set value
# 特殊防御力 (double) (オプション) // 4pointにつきダメージを大きく減らす
    # data modify storage asset:mob SpecialDefense set value
# 移動速度 (double) (オプション)
    # data modify storage asset:mob Speed set value
# 索敵範囲 (double) (オプション)
    # data modify storage asset:mob FollowRange set value
# ノックバック耐性 (double) (オプション)
    # data modify storage asset:mob KnockBackResist set value
# 属性倍率 // 1.0fで100% 最低でも25%は軽減されずに入る
    # 物理倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Physical set value
    # 魔法倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Magic set value
    # 火倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Fire set value
    # 水倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Water set value
    # 雷倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Thunder set value

# MobInitタグ持ちを対象にして召喚関数呼び出し
    execute as @e[type=area_effect_cloud,tag=MobInit,distance=..0.01] run function asset:mob/common/summon


text:
#> asset:mob/0158.sin/summon/1.trigger
#
# Mob召喚処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:mob/summon

execute if data storage asset:context {id:158} run function asset:mob/0158.sin/summon/2.summon

repo_name: ProjectTSB/TheSkyBlessing

repo_language: mcfunction

mime_type: text/plain


text:
#> asset:mob/0158.sin/tick/2.tick
#
# Mobのtick時の処理
#
# @within function asset:mob/0158.sin/tick/1.trigger

# 演出
    particle witch ~ ~ ~ 1 0 1 1 4 normal
    particle dust 0.137 0.027 0.275 3 ~ ~ ~ 1 0 1 1 10

# 効果
    effect give @a[distance=..3] slowness 1 2
    effect give @a[distance=..3] blindness 2 0
    effect give @a[distance=..3] mining_fatigue 2 0
    effect give @a[distance=..3] nausea 2 2


text:
#> asset:mob/0158.sin/tick/1.trigger
#
# Mobが生きている間毎tick実行されるfunction
#
# @within tag/function asset:mob/tick

execute if data storage asset:context {id:158} run function asset:mob/0158.sin/tick/2.tick


text:
#> asset:mob/0022.red_knight/0.load
#
# MOBに利用するスコアボード等の初期化処理
#
# @within tag/function asset:mob/load

#> 定義類はここに
# @within function asset:mob/0022.red_knight/**
    scoreboard objectives add M.Tick dummy


text:
#> asset:mob/0022.red_knight/_index.d
# @private

#> tag
# @within function
#   asset:mob/0022.red_knight/**
    #declare tag SpreadMarker
    #declare tag Landing
    #declare tag LandingTarget
    #declare tag M.ArmorStand
    #declare tag M.ArmorStandThis
    #declare tag M.ArmorStandDeath
    #declare tag M.ArmorStandDeathSword
    #declare tag M.Angel
    #declare tag M.SkillSword
    #declare tag M.SkillSlash
    #declare tag M.SkillBeam
    #declare tag M.SkillTpSlash
    #declare score_holder $Count
    #declare score_holder $Random


text:
#> asset:mob/0022.red_knight/death/2.death
#
# Mobの死亡時の処理
#
# @within function asset:mob/0022.red_knight/death/1.trigger

# もともといるアマスタには死んでもらう(複数召喚されてる場合、もし巻き込まれても大丈夫)
    kill @e[type=armor_stand,tag=M.ArmorStand]

# 演出
    particle portal ~ ~ ~ 0 0 0 2 250 force @a
    particle effect ~ ~ ~ 0 10 0 0.1 250 force @a
    particle cloud ~ ~ ~ 1 1 1 0.1 100
    playsound minecraft:entity.puffer_fish.death hostile @a ~ ~ ~ 1 0

# ボスドロ
    data modify storage api: Argument.ID set value 364
    data modify storage api: Argument.Important set value true
    function api:artifact/spawn/from_id


text:
#> asset:mob/0022.red_knight/death/1.trigger
#
# Mobの死亡時に実行されるfunction
#
# @within tag/function asset:mob/death

execute if data storage asset:context {id:22} run function asset:mob/0022.red_knight/death/2.death


text:
#> asset:mob/0022.red_knight/summon/2.summon
#
# Mobの召喚時の処理
#
# @within function asset:mob/0022.red_knight/summon/1.trigger
# 元となるMobを召喚する
    summon zombie ~ ~ ~ {Tags:["MobInit","AlwaysInvisible","M.Angel"],PersistenceRequired:1b,Silent:1b,NoAI:1b,DeathLootTable:"asset:mob/death/0022.red_knight"}
# ID (int)
    data modify storage asset:mob ID set value 22
# Type (string) Wikiを参照
    data modify storage asset:mob Type set value "Enemy.Boss"
# 干渉可能か否か (boolean)
    data modify storage asset:mob Interferable set value true
# 名前 (TextComponentString) (オプション)
    data modify storage asset:mob Name set value '{"text":"赤い騎士","color":"dark_red"}'
# 武器
    # メインハンド (Compound(Item)) (オプション)
        # data modify storage asset:mob Weapon.Mainhand set value
    # オフハンド (Compound(Item)) (オプション)
        # data modify storage asset:mob Weapon.Offhand set value
# 武器ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob WeaponDropChances set value
# 防具
    # 頭 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Head set value {id:"minecraft:stone",Count:1b,tag:{CustomModelData:20019}}
    # 胴 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Chest set value
    # 脚 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Legs set value
    # 足 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Feet set value
# 防具ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob ArmorDropChances set value
# 体力 (double) (オプション)
    data modify storage asset:mob Health set value 65700
# 攻撃力 (double) (オプション)
    # data modify storage asset:mob AttackDamage set value
# 防御力 (double) (オプション) // 被ダメージがある程度大きい場合1ptにつき0.8%カット、小さい場合1ptにつき約4%カット 20pt以上は頭打ち
    #data modify storage asset:mob Defense set value
# 特殊防御力 (double) (オプション) // 4pointにつきダメージを大きく減らす
    #data modify storage asset:mob SpecialDefense set value
# 移動速度 (double) (オプション)
    # data modify storage asset:mob Speed set value
# 索敵範囲 (double) (オプション)
    # data modify storage asset:mob FollowRange set value
# ノックバック耐性 (double) (オプション)
    # data modify storage asset:mob KnockBackResist set value
# 属性倍率 // 1.0fで100% 最低でも25%は軽減されずに入る
    # 物理倍率 (float) (オプション)
        data modify storage asset:mob Resist.Physical set value 0.9
    # 魔法倍率 (float) (オプション)
        data modify storage asset:mob Resist.Magic set value 1
    # 火倍率 (float) (オプション)
        data modify storage asset:mob Resist.Fire set value 1
    # 水倍率 (float) (オプション)
        data modify storage asset:mob Resist.Water set value 1
    # 雷倍率 (float) (オプション)
        data modify storage asset:mob Resist.Thunder set value 1

# 見た目用のアマスタを召喚
    summon armor_stand ~ ~ ~ {ShowArms:1b,Marker:1b,Invisible:1b,Tags:["M.ArmorStand","M.ArmorStandThis","Object","Uninterferable"],Pose:{LeftArm:[0f,14f,0f],RightArm:[0f,346f,0f],LeftLeg:[10f,314f,0f],RightLeg:[22f,0f,342f],Head:[32f,0f,0f]},HandItems:[{id:"minecraft:stick",Count:1b,tag:{CustomModelData:364}},{}],ArmorItems:[{id:"minecraft:leather_boots",Count:1b,tag:{display:{color:6356992}}},{id:"minecraft:leather_leggings",Count:1b,tag:{display:{color:6356992}}},{id:"minecraft:leather_chestplate",Count:1b,tag:{display:{color:6356992}}},{id:"minecraft:player_head",Count:1b,tag:{SkullOwner:{Id:[I;-104173839,-119059828,-1176408581,-1181112487],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzJiNzIwZDFkODUzNjRhZThhNDZlZGFhNzQ5YTE1NGUyN2VhZWQ3YjE4N2U0MmMwZmU1ZGIwNmI3MGVlY2U5YiJ9fX0="}]}}}}]}
# 位置をあわせる
    execute as @e[type=zombie,tag=MobInit,distance=..0.01] at @s run tp @e[type=armor_stand,tag=M.ArmorStandThis,distance=..0.01] @s
# タグを消す
    tag @e[type=armor_stand,tag=M.ArmorStandThis,distance=..0.01] remove M.ArmorStandThis
# スコアを設定する
    scoreboard players set @e[type=zombie,tag=MobInit,distance=..0.01] M.Tick -15

# MobInitタグ持ちを対象にして召喚関数呼び出し
    execute as @e[type=zombie,tag=MobInit,distance=..0.01] run function asset:mob/common/summon


text:
#> asset:mob/0022.red_knight/summon/1.trigger
#
# Mob召喚処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:mob/summon

execute if data storage asset:context {id:22} run function asset:mob/0022.red_knight/summon/2.summon


text:
#> asset:mob/0022.red_knight/hurt/2.hurt
#
# Mobの被ダメージ時の処理
#
# @within function asset:mob/0022.red_knight/hurt/1.trigger

# 演出
    playsound minecraft:entity.zoglin.hurt hostile @a ~ ~ ~ 1 0.8


text:
#> asset:mob/0022.red_knight/hurt/1.trigger
#
# Mobの被ダメージに実行されるfunction
#
# @within tag/function asset:mob/hurt

execute if data storage asset:context {id:22} run function asset:mob/0022.red_knight/hurt/2.hurt


text:
#> asset:mob/0022.red_knight/remove/2.remove
#
#
#
# @within function asset:mob/0022.red_knight/remove/1.trigger

# アマスタ削除
    kill @e[type=armor_stand,tag=M.ArmorStand]


text:
#> asset:mob/0022.red_knight/remove/1.trigger
#
#
#
# @within tag/function asset:mob/remove

execute if data storage asset:context {id:22} run function asset:mob/0022.red_knight/remove/2.remove


text:
#> asset:mob/0022.red_knight/tick/armorstand_respawn
#
#
#
# @within function asset:mob/0022.red_knight/tick/2.tick

# どっかいったアマスタを殺す
    execute as @e[type=armor_stand,tag=M.ArmorStand] at @s unless entity @e[type=zombie,tag=M.Angel,distance=0] run kill @s
# 見た目用のアマスタを召喚
    summon armor_stand ~ ~ ~ {ShowArms:1b,Marker:1b,Invisible:1b,Tags:["M.ArmorStand","M.ArmorStandThis","Object","Uninterferable"],Pose:{LeftArm:[0f,14f,0f],RightArm:[0f,346f,0f],LeftLeg:[10f,314f,0f],RightLeg:[22f,0f,342f],Head:[32f,0f,0f]},HandItems:[{id:"minecraft:stick",Count:1b,tag:{CustomModelData:364}},{}],ArmorItems:[{id:"minecraft:leather_boots",Count:1b,tag:{display:{color:6356992}}},{id:"minecraft:leather_leggings",Count:1b,tag:{display:{color:6356992}}},{id:"minecraft:leather_chestplate",Count:1b,tag:{display:{color:6356992}}},{id:"minecraft:player_head",Count:1b,tag:{SkullOwner:{Id:[I;-104173839,-119059828,-1176408581,-1181112487],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzJiNzIwZDFkODUzNjRhZThhNDZlZGFhNzQ5YTE1NGUyN2VhZWQ3YjE4N2U0MmMwZmU1ZGIwNmI3MGVlY2U5YiJ9fX0="}]}}}}]}
# 位置をあわせる
    tp @e[type=armor_stand,tag=M.ArmorStandThis,distance=..0.01] @s
# タグを消す
    tag @e[type=armor_stand,tag=M.ArmorStandThis,distance=..0.01] remove M.ArmorStandThis
# スコアも一応戻す
    scoreboard players set @s M.Tick -1

# スキル発動中に移動した場合困るので消す
    tag @s remove M.SkillSword
    tag @s remove M.SkillSlash
    tag @s remove M.SkillBeam
    tag @s remove M.SkillTpSlash

# 強制的にテレポする
    function asset:mob/0022.red_knight/tick/2.1.teleport


text:
#> asset:mob/0022.red_knight/tick/particle_3
#
# 横に薙ぎ払う
#
# @within function asset:mob/0022.red_knight/tick/**
# 外4
particle dust 0.894 0.196 0.196 1.3 ^1.96457 ^0 ^0.12107 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.90211 ^0 ^0.30353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.80965 ^0 ^0.47867 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.68866 ^0 ^0.64374 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.54103 ^0 ^0.79614 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.36909 ^0 ^0.93345 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.17557 ^0 ^1.05353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0.96351 ^0 ^1.15446 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0.73625 ^0 ^1.23466 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0.49738 ^0 ^1.29287 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0.25067 ^0 ^1.32817 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^0 ^1.34 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-0.25067 ^0 ^1.32817 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-0.49738 ^0 ^1.29287 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-0.73625 ^0 ^1.23466 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-0.96351 ^0 ^1.15446 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.17557 ^0 ^1.05353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.36909 ^0 ^0.93345 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.54103 ^0 ^0.79614 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.68866 ^0 ^0.64374 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.80965 ^0 ^0.47867 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.90211 ^0 ^0.30353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.96457 ^0 ^0.12107 0 0 0 0 1
# 最外
particle dust 0.522 0.035 0.035 1.3 ^2 ^0 ^0 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.98904 ^0 ^0.20906 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.9563 ^0 ^0.41582 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.90211 ^0 ^0.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.82709 ^0 ^0.81347 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.73205 ^0 ^1 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.61803 ^0 ^1.17557 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.48629 ^0 ^1.33826 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.33826 ^0 ^1.48629 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.17557 ^0 ^1.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1 ^0 ^1.73205 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0.81347 ^0 ^1.82709 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0.61803 ^0 ^1.90211 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0.41582 ^0 ^1.9563 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0.20906 ^0 ^1.98904 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^0 ^2 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-0.20906 ^0 ^1.98904 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-0.41582 ^0 ^1.9563 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-0.61803 ^0 ^1.90211 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-0.81347 ^0 ^1.82709 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1 ^0 ^1.73205 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.17557 ^0 ^1.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.33826 ^0 ^1.48629 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.48629 ^0 ^1.33826 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.61803 ^0 ^1.17557 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.73205 ^0 ^1 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.82709 ^0 ^0.81347 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.90211 ^0 ^0.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.9563 ^0 ^0.41582 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.98904 ^0 ^0.20906 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-2 ^0 ^0 0 0 0 0 1
# 最内
particle dust 1 0.161 0.161 1.3 ^1.87964 ^0 ^0.053 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.77049 ^0 ^0.25297 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.6329 ^0 ^0.43457 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.47224 ^0 ^0.59614 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.29222 ^0 ^0.7359 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.09734 ^0 ^0.85406 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0.89058 ^0 ^0.95 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0.67527 ^0 ^1.02484 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0.45344 ^0 ^1.07737 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0.2277 ^0 ^1.10904 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^0 ^1.12 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-0.2277 ^0 ^1.10904 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-0.45344 ^0 ^1.07737 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-0.67527 ^0 ^1.02484 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-0.89058 ^0 ^0.95 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.09734 ^0 ^0.85406 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.29222 ^0 ^0.7359 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.47224 ^0 ^0.59614 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.6329 ^0 ^0.43457 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.77049 ^0 ^0.25297 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.87964 ^0 ^0.053 0 0 0 0 1
# 外2
particle dust 0.871 0.192 0.192 1.3 ^1.96457 ^0 ^0.23228 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.90211 ^0 ^0.46095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.80965 ^0 ^0.68047 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.68866 ^0 ^0.88735 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.54103 ^0 ^1.07836 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.36909 ^0 ^1.25046 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.17557 ^0 ^1.40095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0.96351 ^0 ^1.52746 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0.73625 ^0 ^1.62798 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0.49738 ^0 ^1.70094 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0.25067 ^0 ^1.74518 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^0 ^1.76 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-0.25067 ^0 ^1.74518 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-0.49738 ^0 ^1.70094 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-0.73625 ^0 ^1.62798 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-0.96351 ^0 ^1.52746 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.17557 ^0 ^1.40095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.36909 ^0 ^1.25046 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.54103 ^0 ^1.07836 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.68866 ^0 ^0.88735 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.80965 ^0 ^0.68047 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.90211 ^0 ^0.46095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.96457 ^0 ^0.23228 0 0 0 0 1
# 外3
particle dust 0.675 0.133 0.133 1.3 ^1.96457 ^0 ^0.1923 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.90211 ^0 ^0.40151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.80965 ^0 ^0.60234 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.68866 ^0 ^0.79162 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.54103 ^0 ^0.96637 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.36909 ^0 ^1.12383 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.17557 ^0 ^1.26151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0.96351 ^0 ^1.37725 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0.73625 ^0 ^1.46922 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0.49738 ^0 ^1.53596 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0.25067 ^0 ^1.57644 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^0 ^1.59 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-0.25067 ^0 ^1.57644 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-0.49738 ^0 ^1.53596 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-0.73625 ^0 ^1.46922 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-0.96351 ^0 ^1.37725 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.17557 ^0 ^1.26151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.36909 ^0 ^1.12383 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.54103 ^0 ^0.96637 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.68866 ^0 ^0.79162 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.80965 ^0 ^0.60234 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.90211 ^0 ^0.40151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.96457 ^0 ^0.1923 0 0 0 0 1


text:
#> asset:mob/0022.red_knight/tick/2.tick
#
# Mobのtick時の処理
#
# @within function asset:mob/0022.red_knight/tick/1.trigger

# スコアを増やす
    scoreboard players add @s M.Tick 1

# たまにプレイヤーが周囲にいたらテレポート
    execute if score @s M.Tick matches -15 if predicate lib:random_pass_per/20 if entity @p[distance=..100] run function asset:mob/0022.red_knight/tick/2.1.teleport

# プレイヤーが周囲にいたらテレポート
    execute if score @s M.Tick matches -5 if entity @p[distance=..100] run function asset:mob/0022.red_knight/tick/2.1.teleport

# その後発動するスキル
# プレイヤーが周囲にいたら
    execute if score @s M.Tick matches 0 if entity @p[distance=..100] run function asset:mob/0022.red_knight/tick/2.2.skill_select

# プレイヤーが周囲にいないのに時間が着てしまった場合。スコアを戻す
    execute if score @s M.Tick matches 0 unless entity @p[distance=..100] run scoreboard players set @s M.Tick -30

# 発動中
    execute if score @s M.Tick matches 0.. run function asset:mob/0022.red_knight/tick/2.3.skill_active

# 以下エラー時の処理
# もし同一座標に2体存在した場合瞬時にteleportする
    # 数のカウント
        execute store result score $Count Temporary if entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01]
    # もしいたらテレポ
        execute if score $Count Temporary matches 2.. run function asset:mob/0022.red_knight/tick/2.1.teleport
    # スコアも一応戻す
        execute if score $Count Temporary matches 2.. run scoreboard players set @s M.Tick -10
    # リセット
        scoreboard players reset $Count

# もしアマスタがどっかいってしまったら(tpの関係でatが無いと死ぬ)
    execute at @s unless entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01] run function asset:mob/0022.red_knight/tick/armorstand_respawn


text:
#> asset:mob/0022.red_knight/tick/2.2.skill_select
#
# スキル選ぶぞ
#
# @within function asset:mob/0022.red_knight/tick/2.tick

# 疑似乱数取得
    execute store result score $Random Temporary run function lib:random/
# ほしい範囲に剰余算
    scoreboard players operation $Random Temporary %= $4 Const
# デバッグのコマンド
    #scoreboard players set $Random Temporary 3
# スキル選択
    execute if score $Random Temporary matches 0 run tag @s add M.SkillSword
    execute if score $Random Temporary matches 1 run tag @s add M.SkillSlash
    execute if score $Random Temporary matches 2 run tag @s add M.SkillBeam
    execute if score $Random Temporary matches 3 run tag @s add M.SkillTpSlash
# リセット
    scoreboard players reset $Random Temporary


text:
#> asset:mob/0022.red_knight/tick/particle_1
#
# 右上から薙ぎ払う
#
# @within function asset:mob/0022.red_knight/tick/**

# 外4
particle dust 0.894 0.196 0.196 1.3 ^1.96457 ^-1.96457 ^0.12107 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.90211 ^-1.90211 ^0.30353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.80965 ^-1.80965 ^0.47867 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.68866 ^-1.68866 ^0.64374 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.54103 ^-1.54103 ^0.79614 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.36909 ^-1.36909 ^0.93345 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.17557 ^-1.17557 ^1.05353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0.96351 ^-0.96351 ^1.15446 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0.73625 ^-0.73625 ^1.23466 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0.49738 ^-0.49738 ^1.29287 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0.25067 ^-0.25067 ^1.32817 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^0 ^1.34 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-0.25067 ^0.25067 ^1.32817 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-0.49738 ^0.49738 ^1.29287 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-0.73625 ^0.73625 ^1.23466 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-0.96351 ^0.96351 ^1.15446 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.17557 ^1.17557 ^1.05353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.36909 ^1.36909 ^0.93345 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.54103 ^1.54103 ^0.79614 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.68866 ^1.68866 ^0.64374 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.80965 ^1.80965 ^0.47867 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.90211 ^1.90211 ^0.30353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.96457 ^1.96457 ^0.12107 0 0 0 0 1
# 最外
particle dust 0.522 0.035 0.035 1.3 ^2 ^-2 ^0 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.98904 ^-1.98904 ^0.20906 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.9563 ^-1.9563 ^0.41582 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.90211 ^-1.90211 ^0.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.82709 ^-1.82709 ^0.81347 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.73205 ^-1.73205 ^1 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.61803 ^-1.61803 ^1.17557 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.48629 ^-1.48629 ^1.33826 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.33826 ^-1.33826 ^1.48629 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.17557 ^-1.17557 ^1.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1 ^-1 ^1.73205 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0.81347 ^-0.81347 ^1.82709 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0.61803 ^-0.61803 ^1.90211 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0.41582 ^-0.41582 ^1.9563 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0.20906 ^-0.20906 ^1.98904 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^0 ^2 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-0.20906 ^0.20906 ^1.98904 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-0.41582 ^0.41582 ^1.9563 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-0.61803 ^0.61803 ^1.90211 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-0.81347 ^0.81347 ^1.82709 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1 ^1 ^1.73205 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.17557 ^1.17557 ^1.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.33826 ^1.33826 ^1.48629 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.48629 ^1.48629 ^1.33826 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.61803 ^1.61803 ^1.17557 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.73205 ^1.73205 ^1 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.82709 ^1.82709 ^0.81347 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.90211 ^1.90211 ^0.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.9563 ^1.9563 ^0.41582 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.98904 ^1.98904 ^0.20906 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-2 ^2 ^0 0 0 0 0 1
# 最内
particle dust 1 0.161 0.161 1.3 ^1.87964 ^-1.87964 ^0.053 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.77049 ^-1.77049 ^0.25297 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.6329 ^-1.6329 ^0.43457 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.47224 ^-1.47224 ^0.59614 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.29222 ^-1.29222 ^0.7359 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.09734 ^-1.09734 ^0.85406 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0.89058 ^-0.89058 ^0.95 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0.67527 ^-0.67527 ^1.02484 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0.45344 ^-0.45344 ^1.07737 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0.2277 ^-0.2277 ^1.10904 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^0 ^1.12 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-0.2277 ^0.2277 ^1.10904 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-0.45344 ^0.45344 ^1.07737 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-0.67527 ^0.67527 ^1.02484 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-0.89058 ^0.89058 ^0.95 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.09734 ^1.09734 ^0.85406 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.29222 ^1.29222 ^0.7359 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.47224 ^1.47224 ^0.59614 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.6329 ^1.6329 ^0.43457 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.77049 ^1.77049 ^0.25297 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.87964 ^1.87964 ^0.053 0 0 0 0 1
# 外2
particle dust 0.871 0.192 0.192 1.3 ^1.96457 ^-1.96457 ^0.23228 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.90211 ^-1.90211 ^0.46095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.80965 ^-1.80965 ^0.68047 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.68866 ^-1.68866 ^0.88735 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.54103 ^-1.54103 ^1.07836 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.36909 ^-1.36909 ^1.25046 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.17557 ^-1.17557 ^1.40095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0.96351 ^-0.96351 ^1.52746 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0.73625 ^-0.73625 ^1.62798 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0.49738 ^-0.49738 ^1.70094 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0.25067 ^-0.25067 ^1.74518 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^0 ^1.76 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-0.25067 ^0.25067 ^1.74518 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-0.49738 ^0.49738 ^1.70094 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-0.73625 ^0.73625 ^1.62798 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-0.96351 ^0.96351 ^1.52746 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.17557 ^1.17557 ^1.40095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.36909 ^1.36909 ^1.25046 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.54103 ^1.54103 ^1.07836 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.68866 ^1.68866 ^0.88735 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.80965 ^1.80965 ^0.68047 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.90211 ^1.90211 ^0.46095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.96457 ^1.96457 ^0.23228 0 0 0 0 1
# 外3
particle dust 0.675 0.133 0.133 1.3 ^1.96457 ^-1.96457 ^0.1923 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.90211 ^-1.90211 ^0.40151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.80965 ^-1.80965 ^0.60234 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.68866 ^-1.68866 ^0.79162 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.54103 ^-1.54103 ^0.96637 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.36909 ^-1.36909 ^1.12383 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.17557 ^-1.17557 ^1.26151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0.96351 ^-0.96351 ^1.37725 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0.73625 ^-0.73625 ^1.46922 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0.49738 ^-0.49738 ^1.53596 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0.25067 ^-0.25067 ^1.57644 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^0 ^1.59 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-0.25067 ^0.25067 ^1.57644 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-0.49738 ^0.49738 ^1.53596 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-0.73625 ^0.73625 ^1.46922 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-0.96351 ^0.96351 ^1.37725 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.17557 ^1.17557 ^1.26151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.36909 ^1.36909 ^1.12383 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.54103 ^1.54103 ^0.96637 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.68866 ^1.68866 ^0.79162 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.80965 ^1.80965 ^0.60234 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.90211 ^1.90211 ^0.40151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.96457 ^1.96457 ^0.1923 0 0 0 0 1


text:
#> asset:mob/0022.red_knight/tick/particle_4
#
# 縦に薙ぎ払う
#
# @within function asset:mob/0022.red_knight/tick/**

# 外4
particle dust 0.894 0.196 0.196 1.3 ^0 ^1.96457 ^0.12107 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^1.90211 ^0.30353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^1.80965 ^0.47867 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^1.68866 ^0.64374 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^1.54103 ^0.79614 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^1.36909 ^0.93345 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^1.17557 ^1.05353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^0.96351 ^1.15446 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^0.73625 ^1.23466 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^0.49738 ^1.29287 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^0.25067 ^1.32817 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^0 ^1.34 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^-0.25067 ^1.32817 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^-0.49738 ^1.29287 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^-0.73625 ^1.23466 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^-0.96351 ^1.15446 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^-1.17557 ^1.05353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^-1.36909 ^0.93345 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^-1.54103 ^0.79614 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^-1.68866 ^0.64374 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^-1.80965 ^0.47867 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^-1.90211 ^0.30353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^-1.96457 ^0.12107 0 0 0 0 1
# 最外
particle dust 0.522 0.035 0.035 1.3 ^0 ^2 ^0 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^1.98904 ^0.20906 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^1.9563 ^0.41582 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^1.90211 ^0.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^1.82709 ^0.81347 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^1.73205 ^1 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^1.61803 ^1.17557 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^1.48629 ^1.33826 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^1.33826 ^1.48629 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^1.17557 ^1.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^1 ^1.73205 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^0.81347 ^1.82709 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^0.61803 ^1.90211 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^0.41582 ^1.9563 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^0.20906 ^1.98904 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^0 ^2 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-0.20906 ^1.98904 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-0.41582 ^1.9563 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-0.61803 ^1.90211 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-0.81347 ^1.82709 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-1 ^1.73205 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-1.17557 ^1.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-1.33826 ^1.48629 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-1.48629 ^1.33826 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-1.61803 ^1.17557 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-1.73205 ^1 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-1.82709 ^0.81347 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-1.90211 ^0.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-1.9563 ^0.41582 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-1.98904 ^0.20906 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^-2 ^0 0 0 0 0 1
# 最内
particle dust 1 0.161 0.161 1.3 ^0 ^1.87964 ^0.053 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^1.77049 ^0.25297 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^1.6329 ^0.43457 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^1.47224 ^0.59614 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^1.29222 ^0.7359 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^1.09734 ^0.85406 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^0.89058 ^0.95 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^0.67527 ^1.02484 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^0.45344 ^1.07737 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^0.2277 ^1.10904 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^0 ^1.12 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^-0.2277 ^1.10904 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^-0.45344 ^1.07737 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^-0.67527 ^1.02484 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^-0.89058 ^0.95 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^-1.09734 ^0.85406 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^-1.29222 ^0.7359 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^-1.47224 ^0.59614 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^-1.6329 ^0.43457 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^-1.77049 ^0.25297 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^-1.87964 ^0.053 0 0 0 0 1
# 外2
particle dust 0.871 0.192 0.192 1.3 ^0 ^1.96457 ^0.23228 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^1.90211 ^0.46095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^1.80965 ^0.68047 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^1.68866 ^0.88735 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^1.54103 ^1.07836 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^1.36909 ^1.25046 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^1.17557 ^1.40095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^0.96351 ^1.52746 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^0.73625 ^1.62798 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^0.49738 ^1.70094 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^0.25067 ^1.74518 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^0 ^1.76 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^-0.25067 ^1.74518 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^-0.49738 ^1.70094 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^-0.73625 ^1.62798 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^-0.96351 ^1.52746 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^-1.17557 ^1.40095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^-1.36909 ^1.25046 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^-1.54103 ^1.07836 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^-1.68866 ^0.88735 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^-1.80965 ^0.68047 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^-1.90211 ^0.46095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^-1.96457 ^0.23228 0 0 0 0 1
# 外3
particle dust 0.675 0.133 0.133 1.3 ^0 ^1.96457 ^0.1923 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^1.90211 ^0.40151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^1.80965 ^0.60234 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^1.68866 ^0.79162 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^1.54103 ^0.96637 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^1.36909 ^1.12383 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^1.17557 ^1.26151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^0.96351 ^1.37725 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^0.73625 ^1.46922 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^0.49738 ^1.53596 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^0.25067 ^1.57644 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^0 ^1.59 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^-0.25067 ^1.57644 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^-0.49738 ^1.53596 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^-0.73625 ^1.46922 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^-0.96351 ^1.37725 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^-1.17557 ^1.26151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^-1.36909 ^1.12383 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^-1.54103 ^0.96637 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^-1.68866 ^0.79162 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^-1.80965 ^0.60234 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^-1.90211 ^0.40151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^-1.96457 ^0.1923 0 0 0 0 1


text:
#> asset:mob/0022.red_knight/tick/particle_2
#
# 左上から薙ぎ払う
#
# @within function asset:mob/0022.red_knight/tick/**

## 外4
particle dust 0.894 0.196 0.196 1.3 ^1.96457 ^1.96457 ^0.12107 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.90211 ^1.90211 ^0.30353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.80965 ^1.80965 ^0.47867 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.68866 ^1.68866 ^0.64374 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.54103 ^1.54103 ^0.79614 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.36909 ^1.36909 ^0.93345 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^1.17557 ^1.17557 ^1.05353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0.96351 ^0.96351 ^1.15446 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0.73625 ^0.73625 ^1.23466 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0.49738 ^0.49738 ^1.29287 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0.25067 ^0.25067 ^1.32817 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^0 ^0 ^1.34 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-0.25067 ^-0.25067 ^1.32817 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-0.49738 ^-0.49738 ^1.29287 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-0.73625 ^-0.73625 ^1.23466 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-0.96351 ^-0.96351 ^1.15446 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.17557 ^-1.17557 ^1.05353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.36909 ^-1.36909 ^0.93345 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.54103 ^-1.54103 ^0.79614 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.68866 ^-1.68866 ^0.64374 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.80965 ^-1.80965 ^0.47867 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.90211 ^-1.90211 ^0.30353 0 0 0 0 1
particle dust 0.894 0.196 0.196 1.3 ^-1.96457 ^-1.96457 ^0.12107 0 0 0 0 1
# 最外
particle dust 0.522 0.035 0.035 1.3 ^2 ^2 ^0 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.98904 ^1.98904 ^0.20906 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.9563 ^1.9563 ^0.41582 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.90211 ^1.90211 ^0.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.82709 ^1.82709 ^0.81347 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.73205 ^1.73205 ^1 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.61803 ^1.61803 ^1.17557 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.48629 ^1.48629 ^1.33826 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.33826 ^1.33826 ^1.48629 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1.17557 ^1.17557 ^1.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^1 ^1 ^1.73205 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0.81347 ^0.81347 ^1.82709 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0.61803 ^0.61803 ^1.90211 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0.41582 ^0.41582 ^1.9563 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0.20906 ^0.20906 ^1.98904 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^0 ^0 ^2 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-0.20906 ^-0.20906 ^1.98904 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-0.41582 ^-0.41582 ^1.9563 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-0.61803 ^-0.61803 ^1.90211 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-0.81347 ^-0.81347 ^1.82709 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1 ^-1 ^1.73205 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.17557 ^-1.17557 ^1.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.33826 ^-1.33826 ^1.48629 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.48629 ^-1.48629 ^1.33826 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.61803 ^-1.61803 ^1.17557 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.73205 ^-1.73205 ^1 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.82709 ^-1.82709 ^0.81347 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.90211 ^-1.90211 ^0.61803 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.9563 ^-1.9563 ^0.41582 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-1.98904 ^-1.98904 ^0.20906 0 0 0 0 1
particle dust 0.522 0.035 0.035 1.3 ^-2 ^-2 ^0 0 0 0 0 1
# 最内
particle dust 1 0.161 0.161 1.3 ^1.87964 ^1.87964 ^0.053 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.77049 ^1.77049 ^0.25297 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.6329 ^1.6329 ^0.43457 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.47224 ^1.47224 ^0.59614 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.29222 ^1.29222 ^0.7359 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^1.09734 ^1.09734 ^0.85406 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0.89058 ^0.89058 ^0.95 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0.67527 ^0.67527 ^1.02484 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0.45344 ^0.45344 ^1.07737 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0.2277 ^0.2277 ^1.10904 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^0 ^0 ^1.12 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-0.2277 ^-0.2277 ^1.10904 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-0.45344 ^-0.45344 ^1.07737 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-0.67527 ^-0.67527 ^1.02484 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-0.89058 ^-0.89058 ^0.95 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.09734 ^-1.09734 ^0.85406 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.29222 ^-1.29222 ^0.7359 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.47224 ^-1.47224 ^0.59614 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.6329 ^-1.6329 ^0.43457 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.77049 ^-1.77049 ^0.25297 0 0 0 0 1
particle dust 1 0.161 0.161 1.3 ^-1.87964 ^-1.87964 ^0.053 0 0 0 0 1
# 外2
particle dust 0.871 0.192 0.192 1.3 ^1.96457 ^1.96457 ^0.23228 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.90211 ^1.90211 ^0.46095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.80965 ^1.80965 ^0.68047 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.68866 ^1.68866 ^0.88735 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.54103 ^1.54103 ^1.07836 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.36909 ^1.36909 ^1.25046 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^1.17557 ^1.17557 ^1.40095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0.96351 ^0.96351 ^1.52746 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0.73625 ^0.73625 ^1.62798 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0.49738 ^0.49738 ^1.70094 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0.25067 ^0.25067 ^1.74518 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^0 ^0 ^1.76 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-0.25067 ^-0.25067 ^1.74518 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-0.49738 ^-0.49738 ^1.70094 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-0.73625 ^-0.73625 ^1.62798 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-0.96351 ^-0.96351 ^1.52746 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.17557 ^-1.17557 ^1.40095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.36909 ^-1.36909 ^1.25046 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.54103 ^-1.54103 ^1.07836 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.68866 ^-1.68866 ^0.88735 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.80965 ^-1.80965 ^0.68047 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.90211 ^-1.90211 ^0.46095 0 0 0 0 1
particle dust 0.871 0.192 0.192 1.3 ^-1.96457 ^-1.96457 ^0.23228 0 0 0 0 1
# 外3
particle dust 0.675 0.133 0.133 1.3 ^1.96457 ^1.96457 ^0.1923 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.90211 ^1.90211 ^0.40151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.80965 ^1.80965 ^0.60234 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.68866 ^1.68866 ^0.79162 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.54103 ^1.54103 ^0.96637 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.36909 ^1.36909 ^1.12383 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^1.17557 ^1.17557 ^1.26151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0.96351 ^0.96351 ^1.37725 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0.73625 ^0.73625 ^1.46922 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0.49738 ^0.49738 ^1.53596 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0.25067 ^0.25067 ^1.57644 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^0 ^0 ^1.59 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-0.25067 ^-0.25067 ^1.57644 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-0.49738 ^-0.49738 ^1.53596 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-0.73625 ^-0.73625 ^1.46922 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-0.96351 ^-0.96351 ^1.37725 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.17557 ^-1.17557 ^1.26151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.36909 ^-1.36909 ^1.12383 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.54103 ^-1.54103 ^0.96637 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.68866 ^-1.68866 ^0.79162 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.80965 ^-1.80965 ^0.60234 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.90211 ^-1.90211 ^0.40151 0 0 0 0 1
particle dust 0.675 0.133 0.133 1.3 ^-1.96457 ^-1.96457 ^0.1923 0 0 0 0 1


text:
#> asset:mob/0022.red_knight/tick/1.trigger
#
# Mobが生きている間毎tick実行されるfunction
#
# @within tag/function asset:mob/tick

execute if data storage asset:context {id:22} run function asset:mob/0022.red_knight/tick/2.tick


text:
#> asset:mob/0022.red_knight/tick/particle_6
#
# キラキラ2
#
# @within function asset:mob/0022.red_knight/tick/**

# [ImportKey]: NobwRALgngDgpmAXGANgSwHYIDRgK55oAmSYADAGYCccFAzAMYDsAtGQIZMAsLXArGTosAHAEYmDFuwBGANgBMdCmVnDpNMLgzsAtgmSAt3wAEozWBjsATroDOScAwD2eDBCTy+uCpcc77YADd2FDx9cAAPJBZ5XCgkMgBfBNwIR38gkLCwSMQYsDjEROSwRwoKGzg3QtxpOAAvNDhLJFlcNBsAIXrGywBRAEc8YJQoAGULBjgSRAhLUKSAXSA_3
# 線 1
particle wax_off ^-2 ^ ^0 0 0 0 0 1
particle wax_off ^-1.89834 ^ ^-0.2971 0 0 0 0 1
particle wax_off ^-1.79161 ^ ^-0.59243 0 0 0 0 1
particle wax_off ^-1.67901 ^ ^-0.88555 0 0 0 0 1
particle wax_off ^-1.55949 ^ ^-1.17593 0 0 0 0 1
particle wax_off ^-1.43163 ^ ^-1.46272 0 0 0 0 1
particle wax_off ^-1.29361 ^ ^-1.74476 0 0 0 0 1
particle wax_off ^-1.14288 ^ ^-2.02019 0 0 0 0 1
particle wax_off ^-0.97568 ^ ^-2.28591 0 0 0 0 1
particle wax_off ^-0.78598 ^ ^-2.53596 0 0 0 0 1
particle wax_off ^-0.56602 ^ ^-2.75956 0 0 0 0 1
particle wax_off ^-0.30377 ^ ^-2.93044 0 0 0 0 1
particle wax_off ^0 ^ ^-3 0 0 0 0 1
particle wax_off ^0.30377 ^ ^-2.93044 0 0 0 0 1
particle wax_off ^0.56602 ^ ^-2.75956 0 0 0 0 1
particle wax_off ^0.78598 ^ ^-2.53596 0 0 0 0 1
particle wax_off ^0.97568 ^ ^-2.28591 0 0 0 0 1
particle wax_off ^1.14288 ^ ^-2.02019 0 0 0 0 1
particle wax_off ^1.29361 ^ ^-1.74476 0 0 0 0 1
particle wax_off ^1.43163 ^ ^-1.46272 0 0 0 0 1
particle wax_off ^1.55949 ^ ^-1.17593 0 0 0 0 1
particle wax_off ^1.67901 ^ ^-0.88555 0 0 0 0 1
particle wax_off ^1.79161 ^ ^-0.59243 0 0 0 0 1
particle wax_off ^1.89834 ^ ^-0.2971 0 0 0 0 1
particle wax_off ^2 ^ ^0 0 0 0 0 1


text:
#> asset:mob/0022.red_knight/tick/2.3.skill_active
#
# スキル発動すれ
#
# @within function asset:mob/0022.red_knight/tick/2.tick

# 剣スキル
    execute if entity @s[tag=M.SkillSword] run function asset:mob/0022.red_knight/tick/skill_sword/1.skill_sword

# 乱切りスキル
    execute if entity @s[tag=M.SkillSlash] run function asset:mob/0022.red_knight/tick/skill_slash/1.skill_slash

# 剣ビームスキル
    execute if entity @s[tag=M.SkillBeam] run function asset:mob/0022.red_knight/tick/skill_beam/1.skill_beam

# teleportしてきて目の前でぶっ殺してくるスキル
    execute if entity @s[tag=M.SkillTpSlash] run function asset:mob/0022.red_knight/tick/skill_tp_slash/1.skill_tp_slash


text:
#> asset:mob/0022.red_knight/tick/particle_5
#
# きらきら
#
# @within function asset:mob/0022.red_knight/tick/**

# 最外
particle wax_off ^2 ^0 ^0 0 0 0 0 1
particle wax_off ^1.98904 ^0 ^0.20906 0 0 0 0 1
particle wax_off ^1.9563 ^0 ^0.41582 0 0 0 0 1
particle wax_off ^1.90211 ^0 ^0.61803 0 0 0 0 1
particle wax_off ^1.82709 ^0 ^0.81347 0 0 0 0 1
particle wax_off ^1.73205 ^0 ^1 0 0 0 0 1
particle wax_off ^1.61803 ^0 ^1.17557 0 0 0 0 1
particle wax_off ^1.48629 ^0 ^1.33826 0 0 0 0 1
particle wax_off ^1.33826 ^0 ^1.48629 0 0 0 0 1
particle wax_off ^1.17557 ^0 ^1.61803 0 0 0 0 1
particle wax_off ^1 ^0 ^1.73205 0 0 0 0 1
particle wax_off ^0.81347 ^0 ^1.82709 0 0 0 0 1
particle wax_off ^0.61803 ^0 ^1.90211 0 0 0 0 1
particle wax_off ^0.41582 ^0 ^1.9563 0 0 0 0 1
particle wax_off ^0.20906 ^0 ^1.98904 0 0 0 0 1
particle wax_off ^0 ^0 ^2 0 0 0 0 1
particle wax_off ^-0.20906 ^0 ^1.98904 0 0 0 0 1
particle wax_off ^-0.41582 ^0 ^1.9563 0 0 0 0 1
particle wax_off ^-0.61803 ^0 ^1.90211 0 0 0 0 1
particle wax_off ^-0.81347 ^0 ^1.82709 0 0 0 0 1
particle wax_off ^-1 ^0 ^1.73205 0 0 0 0 1
particle wax_off ^-1.17557 ^0 ^1.61803 0 0 0 0 1
particle wax_off ^-1.33826 ^0 ^1.48629 0 0 0 0 1
particle wax_off ^-1.48629 ^0 ^1.33826 0 0 0 0 1
particle wax_off ^-1.61803 ^0 ^1.17557 0 0 0 0 1
particle wax_off ^-1.73205 ^0 ^1 0 0 0 0 1
particle wax_off ^-1.82709 ^0 ^0.81347 0 0 0 0 1
particle wax_off ^-1.90211 ^0 ^0.61803 0 0 0 0 1
particle wax_off ^-1.9563 ^0 ^0.41582 0 0 0 0 1
particle wax_off ^-1.98904 ^0 ^0.20906 0 0 0 0 1
particle wax_off ^-2 ^0 ^0 0 0 0 0 1


text:
#> asset:mob/0022.red_knight/tick/2.1.teleport
#
#
#
# @within function
#   asset:mob/0022.red_knight/tick/**

# 演出
   particle dragon_breath ~ ~1 ~ 0.5 0.5 0.5 0 10 normal @a
   playsound minecraft:entity.enderman.teleport hostile @a ~ ~ ~ 0.7 0.9 0

# ワープ準備
    execute at @p[distance=..100] run summon marker ~ ~40 ~ {Tags:["SpreadMarker"]}
    data modify storage lib: Argument.Distance set value 4
    data modify storage lib: Argument.Spread set value 2d
    execute as @e[type=marker,tag=SpreadMarker,limit=1] at @p[distance=..100] positioned ~ ~40 ~ rotated ~ 90 run function lib:forward_spreader/circle

# アマスタにタグを付与
    tag @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] add M.ArmorStandThis

# ワープ
    execute at @p[distance=..100] positioned ~ ~40 ~ facing entity @e[type=marker,tag=SpreadMarker,limit=1] feet positioned ^ ^ ^40 if block ~ ~ ~ #lib:no_collision_without_fluid run tp @s ~ ~ ~ facing entity @p[distance=..100]

# アマスタを持ってきてタグを消す
    tp @e[type=armor_stand,tag=M.ArmorStandThis,sort=nearest,limit=1] @s
    tag @e[type=armor_stand,tag=M.ArmorStandThis,sort=nearest,limit=1] remove M.ArmorStandThis

# リセット
    kill @e[type=marker,tag=SpreadMarker]


text:
#> asset:mob/0022.red_knight/tick/reset
#
# 挙動のリセットをします
#
# @within function asset:mob/0022.red_knight/tick/**

# ポーズのリセット
    data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.LeftArm set value [0f,14f,0f]
    data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [0f,346f,0f]
    data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.LeftLeg set value [10f,314f,0f]
    data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightLeg set value [22f,0f,342f]
    data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.Head set value [32f,0f,0f]

# タグのリセット
    tag @s remove M.SkillSword
    tag @s remove M.SkillSlash
    tag @s remove M.SkillBeam
    tag @s remove M.SkillTpSlash

# スコアのリセット
    scoreboard players set @s M.Tick -50

# テレポート
    execute if entity @p[distance=..100] run function asset:mob/0022.red_knight/tick/2.1.teleport


text:
#> asset:mob/0022.red_knight/tick/skill_tp_slash/2.skill_tp_slash_damage
#
#
#
# @within function asset:mob/0022.red_knight/tick/skill_tp_slash/1.skill_tp_slash

# ダメージ設定
    # 与えるダメージ
        data modify storage lib: Argument.Damage set value 40.0f
    # 魔法属性
        data modify storage lib: Argument.AttackType set value "Physical"
    # 無属性
        data modify storage lib: Argument.ElementType set value "None"
    # ダメージ
        function lib:damage/modifier
        execute as @a[tag=!PlayerShouldInvulnerable,distance=..1] at @s run function lib:damage/
# リセット
    function lib:damage/reset

# 移動速度を落とす
    effect give @a[tag=!PlayerShouldInvulnerable,distance=..1] slowness 1 9 true
# 演出
    execute if entity @a[tag=!PlayerShouldInvulnerable,distance=..1] at @a[tag=!PlayerShouldInvulnerable,distance=..1] run playsound entity.lightning_bolt.thunder hostile @a ~ ~ ~ 1 2

# もし不発だったらスコアを勧めちゃって終わり
    execute unless entity @a[tag=!PlayerShouldInvulnerable,distance=..1] run scoreboard players set @s M.Tick 45


text:
#> asset:mob/0022.red_knight/tick/skill_tp_slash/1.skill_tp_slash
#
#
#
# @within function asset:mob/0022.red_knight/tick/2.3.skill_active

# アマスタにタグを付与
    execute if score @s M.Tick matches 4 run tag @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] add M.ArmorStandThis
# プレイヤーの顔面TP
    execute if score @s M.Tick matches 4 run tp @s @p[gamemode=!spectator,distance=..100]
    execute if score @s M.Tick matches 4 at @s rotated ~ 0 if entity @a[distance=..100] run tp @s ^ ^ ^1.8 facing entity @p[gamemode=!spectator,distance=..100]
# アマスタを持ってきてタグを消す
    execute if score @s M.Tick matches 4 run tp @e[type=armor_stand,tag=M.ArmorStandThis,sort=nearest,limit=1] @s
    execute if score @s M.Tick matches 4 run tag @e[type=armor_stand,tag=M.ArmorStandThis,sort=nearest,limit=1] remove M.ArmorStandThis

# ポーズ
    execute if score @s M.Tick matches 5 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [0f,213f,135f]
    execute if score @s M.Tick matches 5 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.Head set value [0f,0f,0f]
    execute if score @s M.Tick matches 15 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [173f,213f,121f]

# 斬撃演出
    execute if score @s M.Tick matches 15 positioned ^0.6 ^ ^ run function asset:mob/0022.red_knight/tick/particle_1
    execute if score @s M.Tick matches 15 run playsound minecraft:item.trident.return hostile @a ~ ~ ~ 1 2

# ダメージ発生
    execute if score @s M.Tick matches 15 positioned ^ ^ ^1 run function asset:mob/0022.red_knight/tick/skill_tp_slash/2.skill_tp_slash_damage

# 二連撃目
    execute if score @s M.Tick matches 25 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [215f,0f,94f]
    execute if score @s M.Tick matches 28 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [360f,0f,88f]

# 斬撃演出
    execute if score @s M.Tick matches 28 positioned ^ ^0.6 ^ run function asset:mob/0022.red_knight/tick/particle_3
    execute if score @s M.Tick matches 28 run playsound minecraft:item.trident.return hostile @a ~ ~ ~ 1 2

# ダメージ発生
    execute if score @s M.Tick matches 28 positioned ^ ^ ^1 run function asset:mob/0022.red_knight/tick/skill_tp_slash/2.skill_tp_slash_damage

# 三連撃目
    execute if score @s M.Tick matches 38 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [0f,177f,36f]
    execute if score @s M.Tick matches 41 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [346f,337f,253f]

# 斬撃演出
    execute if score @s M.Tick matches 41 positioned ^-0.6 ^ ^ run function asset:mob/0022.red_knight/tick/particle_2
    execute if score @s M.Tick matches 41 run playsound minecraft:item.trident.return hostile @a ~ ~ ~ 1 2

# ダメージ発生
    execute if score @s M.Tick matches 41 positioned ^ ^ ^1 run function asset:mob/0022.red_knight/tick/skill_tp_slash/2.skill_tp_slash_damage

# 共通リセットへ
    execute if score @s M.Tick matches 50 run function asset:mob/0022.red_knight/tick/reset


text:
#> asset:mob/0022.red_knight/tick/skill_sword/1.skill_sword
#
# 剣スキル
#
# @within function asset:mob/0022.red_knight/tick/2.3.skill_active

# ポーズ
    execute if score @s M.Tick matches 5 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [0f,213f,135f]
    execute if score @s M.Tick matches 5 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.Head set value [0f,0f,0f]
    execute if score @s M.Tick matches 15 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [173f,213f,121f]

# テレポート
    execute if score @s M.Tick matches 15 run function asset:mob/0022.red_knight/tick/skill_sword/3.skill_sword_teleport

# 斬撃演出
    execute if score @s M.Tick matches 15 positioned ^0.6 ^ ^ run function asset:mob/0022.red_knight/tick/particle_1
    execute if score @s M.Tick matches 15 run playsound minecraft:item.trident.return hostile @a ~ ~ ~ 1 2
# ダメージ発生
    execute if score @s M.Tick matches 15 positioned ^ ^ ^0.6 run function asset:mob/0022.red_knight/tick/skill_sword/2.skill_sword_damage

# 二連撃目
# ポーズ
    execute if score @s M.Tick matches 17 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [205f,360f,58f]
    execute if score @s M.Tick matches 20 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [360f,360f,58f]
    execute if score @s M.Tick matches 20 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.LeftLeg set value [0f,0f,340f]
    execute if score @s M.Tick matches 20 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightLeg set value [0f,0f,22f]

# テレポート
    execute if score @s M.Tick matches 20 run function asset:mob/0022.red_knight/tick/skill_sword/3.skill_sword_teleport

# 斬撃演出
    execute if score @s M.Tick matches 20 positioned ^-0.6 ^ ^ run function asset:mob/0022.red_knight/tick/particle_2
    execute if score @s M.Tick matches 20 run playsound minecraft:item.trident.return hostile @a ~ ~ ~ 1 2
# ダメージ発生
    execute if score @s M.Tick matches 20 positioned ^ ^ ^0.6 run function asset:mob/0022.red_knight/tick/skill_sword/2.skill_sword_damage

# 共通リセットへ
    execute if score @s M.Tick matches 45 run function asset:mob/0022.red_knight/tick/reset


text:
#> asset:mob/0022.red_knight/tick/skill_sword/2.skill_sword_damage
#
#
#
# @within function asset:mob/0022.red_knight/tick/skill_sword/1.skill_sword

# ダメージ設定
    # 与えるダメージ
        data modify storage lib: Argument.Damage set value 50.0f
    # 魔法属性
        data modify storage lib: Argument.AttackType set value "Physical"
    # 無属性
        data modify storage lib: Argument.ElementType set value "None"
    # ダメージ
        function lib:damage/modifier
        execute as @a[tag=!PlayerShouldInvulnerable,distance=..4] at @s run function lib:damage/
# リセット
    function lib:damage/reset


text:
#> asset:mob/0022.red_knight/tick/skill_sword/3.skill_sword_teleport
#
#
#
# @within function asset:mob/0022.red_knight/tick/skill_sword/1.skill_sword

# テレポート
# アマスタにタグを付与
    tag @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] add M.ArmorStandThis
# 前進
    tp ^ ^ ^4
# アマスタを持ってきてタグを消す
    tp @e[type=armor_stand,tag=M.ArmorStandThis,sort=nearest,limit=1] @s
    tag @e[type=armor_stand,tag=M.ArmorStandThis,sort=nearest,limit=1] remove M.ArmorStandThis


text:
#> asset:mob/0022.red_knight/tick/skill_slash/3.skill_slash_teleport
#
#
#
# @within function asset:mob/0022.red_knight/tick/skill_slash/1.skill_slash

# アマスタにタグを付与
    tag @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] add M.ArmorStandThis
# 前進
    tp ^ ^ ^8
# アマスタを持ってきてタグを消す
    tp @e[type=armor_stand,tag=M.ArmorStandThis,sort=nearest,limit=1] @s
    tag @e[type=armor_stand,tag=M.ArmorStandThis,sort=nearest,limit=1] remove M.ArmorStandThis

# 斬撃演出
    execute positioned ~ ~1 ~ positioned ^ ^ ^4 run function asset:mob/0022.red_knight/tick/particle_1
    execute positioned ~ ~1 ~ positioned ^ ^ ^4 run function asset:mob/0022.red_knight/tick/particle_2
    execute positioned ~ ~1 ~ positioned ^ ^ ^4 run function asset:mob/0022.red_knight/tick/particle_3
    execute positioned ~ ~1 ~ positioned ^ ^ ^4 run function asset:mob/0022.red_knight/tick/particle_4
    playsound minecraft:item.trident.return hostile @a ~ ~ ~ 1 2


text:
#> asset:mob/0022.red_knight/tick/skill_slash/2.skill_slash_damage
#
#
#
# @within function asset:mob/0022.red_knight/tick/skill_slash/1.skill_slash

# ダメージ設定
    # 与えるダメージ
        data modify storage lib: Argument.Damage set value 90.0f
    # 魔法属性
        data modify storage lib: Argument.AttackType set value "Physical"
    # 無属性
        data modify storage lib: Argument.ElementType set value "None"
    # ダメージ
        function lib:damage/modifier
        execute as @a[tag=!PlayerShouldInvulnerable,distance=..4] at @s run function lib:damage/
# リセット
    function lib:damage/reset


text:
#> asset:mob/0022.red_knight/tick/skill_slash/1.skill_slash
#
# 乱切り
#
# @within function asset:mob/0022.red_knight/tick/2.3.skill_active

# ポーズ
    execute if score @s M.Tick matches 5 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.Head set value [40f,0f,0f]
    execute if score @s M.Tick matches 5 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.LeftLeg set value [0f,0f,10f]
    execute if score @s M.Tick matches 5 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightLeg set value [0f,0f,354f]
    execute if score @s M.Tick matches 5 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.LeftArm set value [16f,0f,22f]
    execute if score @s M.Tick matches 5 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [20f,183f,312f]

# 演出
    execute if score @s M.Tick matches 7..20 run playsound item.axe.scrape hostile @a ~ ~ ~ 1 2
    execute if score @s M.Tick matches 7 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~190 ~290 run function asset:mob/0022.red_knight/tick/particle_5
    execute if score @s M.Tick matches 8 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~200 ~20 run function asset:mob/0022.red_knight/tick/particle_6
    execute if score @s M.Tick matches 9 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~100 ~180 run function asset:mob/0022.red_knight/tick/particle_5
    execute if score @s M.Tick matches 10 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~360 ~230 run function asset:mob/0022.red_knight/tick/particle_6
    execute if score @s M.Tick matches 11 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~100 ~0 run function asset:mob/0022.red_knight/tick/particle_5
    execute if score @s M.Tick matches 12 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~310 ~80 run function asset:mob/0022.red_knight/tick/particle_6
    execute if score @s M.Tick matches 13 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~140 ~260 run function asset:mob/0022.red_knight/tick/particle_5
    execute if score @s M.Tick matches 14 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~120 ~350 run function asset:mob/0022.red_knight/tick/particle_6
    execute if score @s M.Tick matches 15 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~70 ~210 run function asset:mob/0022.red_knight/tick/particle_5
    execute if score @s M.Tick matches 16 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~180 ~130 run function asset:mob/0022.red_knight/tick/particle_6
    execute if score @s M.Tick matches 17 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~190 ~350 run function asset:mob/0022.red_knight/tick/particle_5
    execute if score @s M.Tick matches 18 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~360 ~0 run function asset:mob/0022.red_knight/tick/particle_6
    execute if score @s M.Tick matches 19 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~10 ~280 run function asset:mob/0022.red_knight/tick/particle_5
    execute if score @s M.Tick matches 20 rotated ~ 0 positioned ~ ~1 ~ positioned ^ ^ ^4 rotated ~310 ~130 run function asset:mob/0022.red_knight/tick/particle_6

# 前にいるプレイヤーに移動速度低下
    execute if score @s M.Tick matches 7..20 positioned ^ ^ ^4 run effect give @a[distance=..4] slowness 2 1 true

# ポーズ
    execute if score @s M.Tick matches 35 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [215f,175f,302f]

# ダメージ発生
    execute if score @s M.Tick matches 35 positioned ^ ^ ^4 run function asset:mob/0022.red_knight/tick/skill_slash/2.skill_slash_damage

# テレポートして演出を入れる
    execute if score @s M.Tick matches 35 run function asset:mob/0022.red_knight/tick/skill_slash/3.skill_slash_teleport

# 共通リセットへ
    execute if score @s M.Tick matches 75 run function asset:mob/0022.red_knight/tick/reset


text:
#> asset:mob/0022.red_knight/tick/skill_beam/1.skill_beam
#
#
#
# @within function asset:mob/0022.red_knight/tick/2.3.skill_active

# ポーズ
    execute if score @s M.Tick matches 5 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [0f,213f,135f]
    execute if score @s M.Tick matches 5 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.Head set value [0f,0f,0f]
    execute if score @s M.Tick matches 15 run data modify entity @e[type=armor_stand,tag=M.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [173f,213f,121f]

# 斬撃演出
    execute if score @s M.Tick matches 15 positioned ^0.6 ^ ^2 run function asset:mob/0022.red_knight/tick/particle_1
    execute if score @s M.Tick matches 15 positioned ^0.6 ^ ^2 run function asset:mob/0022.red_knight/tick/skill_beam/2.skill_beam_damage

    execute if score @s M.Tick matches 17 positioned ^0.6 ^ ^4 run function asset:mob/0022.red_knight/tick/particle_1
    execute if score @s M.Tick matches 17 positioned ^0.6 ^ ^4 run function asset:mob/0022.red_knight/tick/skill_beam/2.skill_beam_damage

    execute if score @s M.Tick matches 19 positioned ^0.6 ^ ^6 run function asset:mob/0022.red_knight/tick/particle_1
    execute if score @s M.Tick matches 19 positioned ^0.6 ^ ^6 run function asset:mob/0022.red_knight/tick/skill_beam/2.skill_beam_damage

    execute if score @s M.Tick matches 21 positioned ^0.6 ^ ^8 run function asset:mob/0022.red_knight/tick/particle_1
    execute if score @s M.Tick matches 21 positioned ^0.6 ^ ^8 run function asset:mob/0022.red_knight/tick/skill_beam/2.skill_beam_damage

    execute if score @s M.Tick matches 23 positioned ^0.6 ^ ^10 run function asset:mob/0022.red_knight/tick/particle_1
    execute if score @s M.Tick matches 23 positioned ^0.6 ^ ^8 run function asset:mob/0022.red_knight/tick/skill_beam/2.skill_beam_damage

    execute if score @s M.Tick matches 25 positioned ^0.6 ^ ^12 run function asset:mob/0022.red_knight/tick/particle_1
    execute if score @s M.Tick matches 25 positioned ^0.6 ^ ^12 run function asset:mob/0022.red_knight/tick/skill_beam/2.skill_beam_damage

    execute if score @s M.Tick matches 27 positioned ^0.6 ^ ^14 run function asset:mob/0022.red_knight/tick/particle_1
    execute if score @s M.Tick matches 27 positioned ^0.6 ^ ^14 run function asset:mob/0022.red_knight/tick/skill_beam/2.skill_beam_damage

    execute if score @s M.Tick matches 15 run playsound minecraft:item.trident.return hostile @a ~ ~ ~ 1 2

# 共通リセットへ
    execute if score @s M.Tick matches 45 run function asset:mob/0022.red_knight/tick/reset


text:
#> asset:mob/0022.red_knight/tick/skill_beam/2.skill_beam_damage
#
#
#
# @within function asset:mob/0022.red_knight/tick/skill_beam/1.skill_beam

# ダメージ設定
    # 与えるダメージ
        data modify storage lib: Argument.Damage set value 30.0f
    # 魔法属性
        data modify storage lib: Argument.AttackType set value "Physical"
    # 無属性
        data modify storage lib: Argument.ElementType set value "None"
    # ダメージ
        function lib:damage/modifier
        execute as @a[tag=!PlayerShouldInvulnerable,distance=..2] at @s run function lib:damage/
# リセット
    function lib:damage/reset


text:
#> asset:mob/0211.aurora_bullet/0.load
#
# MOBに利用するスコアボード等の初期化処理
#
# @within tag/function asset:mob/load

#> 定義類はここに
# @within function asset:mob/0211.aurora_bullet/**
    scoreboard objectives add 5V.Tick dummy


text:
#> asset:mob/0211.aurora_bullet/summon/2.summon
#
# Mobの召喚時の処理
#
# @within function asset:mob/0211.aurora_bullet/summon/1.trigger

# 元となるMobを召喚する
    summon marker ~ ~ ~ {Tags:["MobInit"]}
# ID (int)
    data modify storage asset:mob ID set value 211
# Type (string) Wikiを参照
    data modify storage asset:mob Type set value "Projectile"
# 干渉可能か否か (boolean)
    data modify storage asset:mob Interferable set value false
# 名前 (TextComponentString) (オプション)
    data modify storage asset:mob Name set from entity @s CustomName

# MobInitタグ持ちを対象にして召喚関数呼び出し
    execute as @e[type=marker,tag=MobInit,distance=..0.01] run function asset:mob/common/summon


text:
#> asset:mob/0211.aurora_bullet/summon/1.trigger
#
# Mob召喚処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:mob/summon

execute if data storage asset:context {id:211} run function asset:mob/0211.aurora_bullet/summon/2.summon


text:
#> asset:mob/0211.aurora_bullet/tick/2.tick
#
# Mobのtick時の処理
#
# @within function asset:mob/0211.aurora_bullet/tick/1.trigger

#> Private
# @private
    #declare score_holder $Temp

# 移動
    tp @s ^ ^ ^0.8

# 演出
    particle dust_color_transition 0.000 1.000 0.886 1.8 0 0.235 1 ~ ~ ~ 0.4 0.4 0.4 0 3 normal @a
    scoreboard players operation $Temp Temporary = @s 5V.Tick
    scoreboard players operation $Temp Temporary %= $4 Const
    execute if score $Temp Temporary matches 0 run playsound block.beacon.power_select hostile @a ~ ~ ~ 0.2 2 0
    scoreboard players reset $Temp Temporary

# ヒット
    execute positioned ~-0.5 ~-0.5 ~-0.5 if entity @a[gamemode=!spectator,dx=0] run function asset:mob/0211.aurora_bullet/tick/3.hit

# スコア
    scoreboard players add @s 5V.Tick 1

# 消滅
    execute if entity @s[scores={5V.Tick=60..}] run kill @s
    execute unless block ~ ~ ~ #lib:no_collision run kill @s


text:
#> asset:mob/0211.aurora_bullet/tick/3.hit
#
# ヒット時の内容
#
# @within function asset:mob/0211.aurora_bullet/tick/2.tick

# ダメージ
    data modify storage lib: Argument.Damage set value 25f
    data modify storage lib: Argument.AttackType set value "Magic"
    data modify storage lib: Argument.ElementType set value "Thunder"
# デスログ
    data modify storage lib: Argument.DeathMessage append value '[{"translate": "%1$sは%2$sによってオーロラに包まれ消滅した","with":[{"selector":"@s"},{"nbt":"Return.AttackerName","storage":"lib:","interpret":true}]}]'
    data modify storage lib: Argument.DeathMessage append value '[{"translate": "%1$sは%2$sによって空の塵となった","with":[{"selector":"@s"},{"nbt":"Return.AttackerName","storage":"lib:","interpret":true}]}]'
# 補正
    function lib:damage/modifier
# 実行
    execute as @a[tag=!PlayerShouldInvulnerable,dx=0] run function lib:damage/
# リセット
    function lib:damage/reset

# スコアを付与
    scoreboard players set @a[gamemode=!spectator,dx=0] 5U.DebuffTime 80

# 自害
    kill @s

# スケジュールループを開始
    schedule function asset:mob/0210.aurora_eye/player_process/01.schedule_loop 1t replace


text:
#> asset:mob/0211.aurora_bullet/tick/1.trigger
#
# Mobが生きている間毎tick実行されるfunction
#
# @within tag/function asset:mob/tick

execute if data storage asset:context {id:211} run function asset:mob/0211.aurora_bullet/tick/2.tick


text:
#> asset:mob/0275.destroyed_block/0.load
#
# MOBに利用するスコアボード等の初期化処理
#
# @within tag/function asset:mob/load

#> 定義類はここに
# @within function asset:mob/0275.destroyed_block/**
    scoreboard objectives add 7N.RemainingTime dummy
    scoreboard objectives add 7N.Timer dummy


text:
#> asset:mob/0275.destroyed_block/_index.d
# @private

#> tag
# @within function asset:mob/0275.destroyed_block/**
    #declare tag 7N.Init


text:
#> asset:mob/0275.destroyed_block/summon/2.summon
#
# Mobの召喚時の処理
#
# @within function asset:mob/0275.destroyed_block/summon/1.trigger

# 元となるMobを召喚する
    summon armor_stand ~ ~ ~ {Tags:["MobInit"],Small:1b,NoGravity:1b,Marker:1b,Invisible:1b}
# ID (int)
    data modify storage asset:mob ID set value 275
# Type (string) Wikiを参照
    data modify storage asset:mob Type set value "Object"
# 干渉可能か否か (boolean)
    data modify storage asset:mob Interferable set value false
# 名前 (TextComponentString) (オプション)
    # data modify storage asset:mob Name set value
# 武器
    # メインハンド (Compound(Item)) (オプション)
        # data modify storage asset:mob Weapon.Mainhand set value
    # オフハンド (Compound(Item)) (オプション)
        # data modify storage asset:mob Weapon.Offhand set value
# 武器ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob WeaponDropChances set value
# 防具
    # 頭 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Head set value {id:"minecraft:stick",Count:1b,tag:{CustomModelData:20175}}
    # 胴 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Chest set value
    # 脚 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Legs set value
    # 足 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Feet set value
# 防具ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob ArmorDropChances set value
# 体力 (double) (オプション)
    # data modify storage asset:mob Health set value
# 攻撃力 (double) (オプション)
    # data modify storage asset:mob AttackDamage set value
# 防御力 (double) (オプション) // 被ダメージがある程度大きい場合1ptにつき0.8%カット、小さい場合1ptにつき約4%カット 20pt以上は頭打ち
    # data modify storage asset:mob Defense set value
# 特殊防御力 (double) (オプション) // 4pointにつきダメージを大きく減らす
    # data modify storage asset:mob SpecialDefense set value
# 移動速度 (double) (オプション)
    # data modify storage asset:mob Speed set value
# 索敵範囲 (double) (オプション)
    # data modify storage asset:mob FollowRange set value
# ノックバック耐性 (double) (オプション)
    # data modify storage asset:mob KnockBackResist set value
# 属性倍率 // 1.0fで100% 最低でも25%は軽減されずに入る
    # 物理倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Physical set value
    # 魔法倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Magic set value
    # 火倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Fire set value
    # 水倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Water set value
    # 雷倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Thunder set value

# MobInitタグ持ちを対象にして専用のinit処理
    execute as @e[type=armor_stand,tag=MobInit,distance=..0.01] run function asset:mob/0275.destroyed_block/summon/init

# MobInitタグ持ちを対象にして召喚関数呼び出し
    execute as @e[type=armor_stand,tag=MobInit,distance=..0.01] run function asset:mob/common/summon


text:
#> asset:mob/0275.destroyed_block/summon/1.trigger
#
# Mob召喚処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:mob/summon

execute if data storage asset:context {id:275} run function asset:mob/0275.destroyed_block/summon/2.summon


text:
#> asset:mob/0275.destroyed_block/summon/init
#
# 召喚時のinit処理
#
# @within function asset:mob/0275.destroyed_block/summon/2.summon

# タイマー設定
    scoreboard players set @s 7N.RemainingTime 60
    scoreboard players set @s 7N.Timer 0


text:
#> asset:mob/0275.destroyed_block/tick/2.tick
#
# Mobのtick時の処理
#
# @within function asset:mob/0275.destroyed_block/tick/1.trigger

# 残り時間減算
    scoreboard players remove @s 7N.RemainingTime 1

# パーティクルのモデルを変更する
    execute if score @s 7N.Timer matches 5 store result entity @s ArmorItems[3].tag.CustomModelData int .9999999 run data get entity @s ArmorItems[3].tag.CustomModelData 1

# タイマー加算
    scoreboard players add @s 7N.Timer 1
    execute if score @s 7N.Timer matches 6.. run scoreboard players set @s 7N.Timer 0

# ブロックがなかったり壊せないブロックだったら消える
    execute if block ~ ~ ~ #lib:air run kill @s
    execute if block ~ ~ ~ #lib:unbreakable run kill @s

# 残り時間がなくなったら終了
    execute if score @s 7N.RemainingTime matches 0 at @s run setblock ~ ~ ~ air destroy
    execute if score @s 7N.RemainingTime matches 0 at @s run kill @s


text:
#> asset:mob/0275.destroyed_block/tick/1.trigger
#
# Mobが生きている間毎tick実行されるfunction
#
# @within tag/function asset:mob/tick

execute if data storage asset:context {id:275} run function asset:mob/0275.destroyed_block/tick/2.tick


text:
#> asset:mob/0242.poltergeist_subspecies_bow/death/2.death
#
# Mobの死亡時の処理
#
# @within function asset:mob/0242.poltergeist_subspecies_bow/death/1.trigger

# 演出

    playsound minecraft:entity.vex.death hostile @a ~ ~ ~ 1 0.5


text:
#> asset:mob/0242.poltergeist_subspecies_bow/death/1.trigger
#
# Mobの死亡時に実行されるfunction
#
# @within tag/function asset:mob/death

execute if data storage asset:context {id:242} run function asset:mob/0242.poltergeist_subspecies_bow/death/2.death


text:
#> asset:mob/0242.poltergeist_subspecies_bow/summon/2.summon
#
# Mobの召喚時の処理
#
# @within function asset:mob/0242.poltergeist_subspecies_bow/summon/1.trigger

# 元となるMobを召喚する
    summon wither_skeleton ~ ~ ~ {Tags:["MobInit","AlwaysInvisible"],DeathLootTable:"asset:mob/death/0242.poltergeist_subspecies_bow",Silent:1b}
# ID (int)
    data modify storage asset:mob ID set value 242
# Type (string) Wikiを参照
    data modify storage asset:mob Type set value "Enemy"
# 干渉可能か否か (boolean)
    data modify storage asset:mob Interferable set value true
# 名前
    data modify storage asset:mob Name set value '{"text":"ポルターガイスト亜種","color":"black"}'
# 武器
    # メインハンド (Compound(Item)) (オプション)
        data modify storage asset:mob Weapon.Mainhand set value {id:"minecraft:bow",Count:1b}
    # オフハンド (Compound(Item)) (オプション)
        data modify storage asset:mob Weapon.Offhand set value {id:"minecraft:shield",Count:1b}
# 武器ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob WeaponDropChances set value
# 防具
    # 頭 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Head set value
    # 胴 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Chest set value
    # 脚 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Legs set value
    # 足 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Feet set value
# 防具ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob ArmorDropChances set value
# 体力 (double) (オプション)
    data modify storage asset:mob Health set value 220
# 攻撃力 (double) (オプション)
    data modify storage asset:mob AttackDamage set value 1
# 防御力 (double) (オプション) // 被ダメージがある程度大きい場合1ptにつき0.8%カット、小さい場合1ptにつき約4%カット 20pt以上は頭打ち
    data modify storage asset:mob Defense set value 0
# 特殊防御力 (double) (オプション) // 4pointにつきダメージを大きく減らす
    # data modify storage asset:mob SpecialDefense set value
# 移動速度 (double) (オプション)
    data modify storage asset:mob Speed set value 0.20
# 索敵範囲 (double) (オプション)
    data modify storage asset:mob FollowRange set value 32
# ノックバック耐性 (double) (オプション)
    # data modify storage asset:mob KnockBackResist set value
# 属性倍率 // 1.0fで100% 最低でも25%は軽減されずに入る
    # 物理倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Physical set value
    # 魔法倍率 (float) (オプション)
        data modify storage asset:mob Resist.Magic set value 0.5
    # 火倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Fire set value
    # 水倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Water set value
    # 雷倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Thunder set value

# MobInitタグ持ちを対象にして召喚関数呼び出し
    execute as @e[type=wither_skeleton,tag=MobInit,distance=..0.01] run function asset:mob/common/summon


text:
#> asset:mob/0242.poltergeist_subspecies_bow/summon/1.trigger
#
# Mob召喚処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:mob/summon

execute if data storage asset:context {id:242} run function asset:mob/0242.poltergeist_subspecies_bow/summon/2.summon


text:
#> asset:mob/0242.poltergeist_subspecies_bow/attack/1.trigger
#
# Mobの攻撃時に実行されるfunction
#
# @within tag/function asset:mob/attack

execute if data storage asset:context {id:242} run function asset:mob/0242.poltergeist_subspecies_bow/attack/2.attack


text:
#> asset:mob/0242.poltergeist_subspecies_bow/attack/2.attack
#
# Mobの攻撃時の処理
#
# @within function asset:mob/0242.poltergeist_subspecies_bow/attack/1.trigger

# 演出
   execute at @a[tag=Victim] run particle minecraft:dust 0.102 0.004 0.039 2 ~ ~ ~ 0.8 0.8 0.8 0.1 20 normal @a
   execute at @a[tag=Victim] run playsound minecraft:entity.wither_skeleton.ambient hostile @a ~ ~ ~ 1.0 0.3 0

# 引数の設定
    # 与えるダメージ
        data modify storage lib: Argument.Damage set value 6.0d
    # 第一属性
        data modify storage lib: Argument.AttackType set value "Magic"
    # 第二属性
        data modify storage lib: Argument.ElementType set value "None"
# 補正functionを実行
    function lib:damage/modifier
# ダメージ対象
    execute as @a[tag=Victim] run function lib:damage/
# リセット
    function lib:damage/reset


text:
#> asset:mob/0056.thunder_trifler/_index.d
# @private
#
#> Tag
# @within function asset:mob/0056.thunder_trifler/**
    #declare tag 1K.Sword


text:
#> asset:mob/0056.thunder_trifler/death/2.death
#
# Mobの死亡時の処理
#
# @within function asset:mob/0056.thunder_trifler/death/1.trigger

# 演出
   particle minecraft:dust 1 1 0 1 ~ ~ ~ 0.8 0.8 0.8 0.1 20 normal @a
   playsound minecraft:entity.firework_rocket.twinkle hostile @a ~ ~ ~ 0.7 1.0 0
   playsound minecraft:entity.firework_rocket.twinkle hostile @a ~ ~ ~ 0.7 0.8 0


text:
#> asset:mob/0056.thunder_trifler/death/1.trigger
#
# Mobの死亡時に実行されるfunction
#
# @within tag/function asset:mob/death

execute if data storage asset:context {id:56} run function asset:mob/0056.thunder_trifler/death/2.death


text:
#> asset:mob/0056.thunder_trifler/summon/2.summon
#
# Mobの召喚時の処理
#
# @within function asset:mob/0056.thunder_trifler/summon/1.trigger

# 元となるMobを召喚する
    summon skeleton ~ ~ ~ {Silent:1b,Tags:["MobInit","AlwaysInvisible"],DeathLootTable:"asset:mob/death/0056.thunder_trifler"}
# ID (int)
    data modify storage asset:mob ID set value 56
# Type (string) Wikiを参照
    data modify storage asset:mob Type set value "Enemy"
# 干渉可能か否か (boolean)
    data modify storage asset:mob Interferable set value true
# 名前 (TextComponentString) (オプション)
    data modify storage asset:mob Name set value '{"text":"雷弄者","color":"gold"}'
# 武器
    # メインハンド (Compound(Item)) (オプション)
        data modify storage asset:mob Weapon.Mainhand set value {id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"punch",lvl:2s}]}}
    # オフハンド (Compound(Item)) (オプション)
        data modify storage asset:mob Weapon.Offhand set value {}
# 武器ドロップ率 ([float, float]) (オプション)
    data modify storage asset:mob WeaponDropChances set value [0.0f,0.0f]
# 防具
    # 頭 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Head set value {id:"yellow_stained_glass",Count:1}
    # 胴 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Chest set value {id:"minecraft:leather_chestplate",Count:1b,tag:{display:{color:16777039}}}
    # 脚 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Legs set value {id:"minecraft:leather_leggings",Count:1b,tag:{display:{color:16777039}}}
    # 足 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Feet set value {id:"minecraft:leather_boots",Count:1b,tag:{display:{color:16777039}}}
# 防具ドロップ率 ([float, float]) (オプション)
    data modify storage asset:mob ArmorDropChances set value [0.0f,0.0f,0.0f,0.0f]
# 体力 (double) (オプション)
    data modify storage asset:mob Health set value 1065
# 攻撃力 (double) (オプション)
    data modify storage asset:mob AttackDamage set value 1.0
# 防御力 (double) (オプション) // 被ダメージがある程度大きい場合1ptにつき0.8%カット、小さい場合1ptにつき約4%カット 20pt以上は頭打ち
    # data modify storage asset:mob Defense set value
# 特殊防御力 (double) (オプション) // 4pointにつきダメージを大きく減らす
    # data modify storage asset:mob SpecialDefense set value
# 移動速度 (double) (オプション)
    data modify storage asset:mob Speed set value 0.25
# 索敵範囲 (double) (オプション)
    data modify storage asset:mob FollowRange set value 32
# ノックバック耐性 (double) (オプション)
    data modify storage asset:mob KnockBackResist set value 0.5
# 属性倍率 // 1.0fで100% 最低でも25%は軽減されずに入る
    # 物理倍率 (float) (オプション)
        data modify storage asset:mob Resist.Physical set value 1.0
    # 魔法倍率 (float) (オプション)
        data modify storage asset:mob Resist.Magic set value 1
    # 火倍率 (float) (オプション)
        data modify storage asset:mob Resist.Fire set value 0.75
    # 水倍率 (float) (オプション)
        data modify storage asset:mob Resist.Water set value 0.75
    # 雷倍率 (float) (オプション)
        data modify storage asset:mob Resist.Thunder set value 0.25

# MobInitタグ持ちを対象にして召喚関数呼び出し
    execute as @e[type=skeleton,tag=MobInit,distance=..0.01] run function asset:mob/common/summon


text:
#> asset:mob/0056.thunder_trifler/summon/1.trigger
#
# Mob召喚処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:mob/summon

execute if data storage asset:context {id:56} run function asset:mob/0056.thunder_trifler/summon/2.summon


text:
#> asset:mob/0056.thunder_trifler/hurt/2.hurt
#
# Mobの被ダメージ時の処理
#
# @within function asset:mob/0056.thunder_trifler/hurt/1.trigger

# ノーマルなら50%でテレポート、ハードなら常時
    execute if predicate api:global_vars/difficulty/max/normal if predicate lib:random_pass_per/50 run function asset:mob/0056.thunder_trifler/hurt/teleport
    execute if predicate api:global_vars/difficulty/min/hard run function asset:mob/0056.thunder_trifler/hurt/teleport


text:
#> asset:mob/0056.thunder_trifler/hurt/1.trigger
#
# Mobの被ダメージに実行されるfunction
#
# @within tag/function asset:mob/hurt

execute if data storage asset:context {id:56} run function asset:mob/0056.thunder_trifler/hurt/2.hurt


text:
#> asset:mob/0056.thunder_trifler/hurt/teleport
#
#
#
# @within function asset:mob/0056.thunder_trifler/hurt/2.hurt

# 演出
   particle minecraft:dust 1 1 0 1 ~ ~ ~ 0.8 0.8 0.8 0.1 20 normal @a
   particle minecraft:firework ~ ~1 ~ 0.5 0.5 0.5 0 10 normal @a
   playsound minecraft:entity.firework_rocket.twinkle hostile @a ~ ~ ~ 0.7 1.4 0
   playsound minecraft:entity.firework_rocket.twinkle hostile @a ~ ~ ~ 0.7 0.9 0

#> SpreadLib
# @private
    #declare tag SpreadMarker

# マーカーをワープさせて、そこが安全地帯ならワープする
    execute at @p[tag=Attacker,distance=..50] run summon marker ~ ~ ~ {Tags:["SpreadMarker"]}
    execute at @p[tag=Attacker,distance=..50] run data modify storage lib: Argument.Bounds set value [[5d,5d],[0d,0d],[5d,5d]]
    execute as @e[type=marker,tag=SpreadMarker,distance=..60,limit=1] at @s run function lib:spread_entity/
    execute at @e[type=marker,tag=SpreadMarker,distance=..60,limit=1] if block ~ ~ ~ #lib:no_collision_without_fluid unless block ~ ~-1 ~ #lib:no_collision_without_fluid run tp @s ~ ~ ~

# 武器が剣の場合弓に切替
   execute if entity @s[tag=1K.Sword] run item replace entity @s weapon.mainhand with bow{Enchantments:[{id:"punch",lvl:2s}]}

# 剣Tag削除
    execute if entity @s[tag=1K.Sword] run tag @s remove 1K.Sword

# speedバフ消し
    effect clear @s speed
# リセット
    kill @e[type=marker,tag=SpreadMarker]


text:
#> asset:mob/0056.thunder_trifler/attack/1.trigger
#
# Mobの攻撃時に実行されるfunction
#
# @within tag/function asset:mob/attack

execute if data storage asset:context {id:56} run function asset:mob/0056.thunder_trifler/attack/2.attack


text:
#> asset:mob/0056.thunder_trifler/attack/2.attack
#
# Mobの攻撃時の処理
#
# @within function asset:mob/0056.thunder_trifler/attack/1.trigger

# 演出
   particle minecraft:dust 1 1 0 2 ~ ~ ~ 0.8 0.8 0.8 0.1 20 normal @a
   particle minecraft:firework ~ ~1 ~ 0.5 0.5 0.5 0 10 normal @a
   playsound minecraft:entity.firework_rocket.twinkle hostile @a ~ ~ ~ 0.7 1.5 0
   playsound minecraft:entity.firework_rocket.twinkle hostile @a ~ ~ ~ 0.7 2.0 0

# 引数の設定
    # 与えるダメージ
        data modify storage lib: Argument.Damage set value 8.0d
    # 第一属性
        data modify storage lib: Argument.AttackType set value "Physical"
    # 第二属性
        data modify storage lib: Argument.ElementType set value "Thunder"
# デスログ
    data modify storage lib: Argument.DeathMessage append value '[{"translate": "%1$sは%2$sによって翻弄され、感電により心停止した","with":[{"selector":"@s"},{"nbt":"Return.AttackerName","storage":"lib:","interpret":true}]}]'
    data modify storage lib: Argument.DeathMessage append value '[{"translate": "%1$sは%2$sの不意な電撃により、生命を終えた","with":[{"selector":"@s"},{"nbt":"Return.AttackerName","storage":"lib:","interpret":true}]}]'
# 補正functionを実行
    function lib:damage/modifier
# ダメージ対象
    execute as @p[tag=Victim,distance=..32] run function lib:damage/
# リセット
    function lib:damage/reset

# マナ減少
    execute if predicate api:global_vars/difficulty/min/hard run scoreboard players set $Fluctuation Lib -8
    execute if predicate api:global_vars/difficulty/min/hard as @p[tag=Victim,distance=..32] run function lib:mp/fluctuation

# 弓から剣に切り替えた場合speedを得る
    execute if entity @s[tag=!1K.Sword] run effect give @s speed 500 0 true
       # 弓から切り替えた瞬間にワープ
       execute if entity @s[tag=!1K.Sword] run tp @s @p[tag=Victim,distance=..32]

# 攻撃が当たった場合武器が弓なら剣に切替(挙動の関係上最後に配置)
    execute if entity @s[tag=!1K.Sword] run item replace entity @s weapon.mainhand with golden_sword{Enchantments:[{}]}

# 剣Tag付与
    execute if entity @s[tag=!1K.Sword] run tag @s add 1K.Sword


text:
#> asset:mob/1007.red_star/death/2.death
#
# Mobの死亡時の処理
#
# @within function asset:mob/1007.red_star/death/1.trigger

# 演出
    playsound entity.blaze.shoot hostile @a ~ ~ ~ 1 0.6
    playsound entity.phantom.bite hostile @a ~ ~ ~ 1 0


text:
#> asset:mob/1007.red_star/death/1.trigger
#
# Mobの死亡時に実行されるfunction
#
# @within tag/function asset:mob/death

execute if data storage asset:context {id:1007} run function asset:mob/1007.red_star/death/2.death


text:
#> asset:mob/1007.red_star/summon/2.summon
#
# Mobの召喚時の処理
#
# @within function asset:mob/1007.red_star/summon/1.trigger

# 元となるMobを召喚する
    summon vex ~ ~ ~ {Tags:["MobInit","AlwaysInvisible"],LifeTicks:1,Silent:1b,DeathLootTable:"asset:mob/death/1007.red_star"}
# ID (int)
    data modify storage asset:mob ID set value 1007
# Type (string) Wikiを参照
    data modify storage asset:mob Type set value "Enemy"
# 干渉可能か否か (boolean)
    data modify storage asset:mob Interferable set value true
# 名前 (TextComponentString) (オプション)
    data modify storage asset:mob Name set value '{"text":"緋の星","color":"red"}'
# 武器
    # メインハンド (Compound(Item)) (オプション)
        data modify storage asset:mob Weapon.Mainhand set value {id:"minecraft:stone",Count:1b,tag:{CustomModelData:20019,Enchantments:[{id:"minecraft:fire_aspect",lvl:3s}]}}
    # オフハンド (Compound(Item)) (オプション)
        # data modify storage asset:mob Weapon.Offhand set value
# 武器ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob WeaponDropChances set value
# 防具
    # 頭 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Head set value
    # 胴 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Chest set value
    # 脚 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Legs set value
    # 足 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Feet set value
# 防具ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob ArmorDropChances set value
# 体力 (double) (オプション)
    data modify storage asset:mob Health set value 40
# 攻撃力 (double) (オプション)
    # data modify storage asset:mob AttackDamage set value
# 防御力 (double) (オプション) // 被ダメージがある程度大きい場合1ptにつき0.8%カット、小さい場合1ptにつき約4%カット 20pt以上は頭打ち
    # data modify storage asset:mob Defense set value
# 特殊防御力 (double) (オプション) // 4pointにつきダメージを大きく減らす
    # data modify storage asset:mob SpecialDefense set value
# 移動速度 (double) (オプション)
    # data modify storage asset:mob Speed set value
# 索敵範囲 (double) (オプション)
    # data modify storage asset:mob FollowRange set value
# ノックバック耐性 (double) (オプション)
    # data modify storage asset:mob KnockBackResist set value
# 属性倍率 // 1.0fで100% 最低でも25%は軽減されずに入る
    # 物理倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Physical set value
    # 魔法倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Magic set value
    # 火倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Fire set value
    # 水倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Water set value
    # 雷倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Thunder set value

# MobInitタグ持ちを対象にして召喚関数呼び出し
    execute as @e[type=vex,tag=MobInit,distance=..0.01] run function asset:mob/common/summon


text:
#> asset:mob/1007.red_star/summon/1.trigger
#
# Mob召喚処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:mob/summon

execute if data storage asset:context {id:1007} run function asset:mob/1007.red_star/summon/2.summon


text:
#> asset:mob/1007.red_star/attack/1.trigger
#
# Mobの攻撃時に実行されるfunction
#
# @within tag/function asset:mob/attack

execute if data storage asset:context {id:1007} run function asset:mob/1007.red_star/attack/2.attack


text:
#> asset:mob/1007.red_star/attack/2.attack
#
# Mobの攻撃時の処理
#
# @within function asset:mob/1007.red_star/attack/1.trigger

# ダメージを与える
# ダメージ設定
    # 与えるダメージ
        data modify storage lib: Argument.Damage set value 40.0f
    # 魔法属性
        data modify storage lib: Argument.AttackType set value "Magic"
    # 属性
        data modify storage lib: Argument.ElementType set value "Fire"
    # ダメージ
        function lib:damage/modifier
        execute as @a[tag=Victim,distance=..30] run function lib:damage/
# リセット
    function lib:damage/reset


text:
#> asset:mob/1007.red_star/tick/2.tick
#
# Mobのtick時の処理
#
# @within function asset:mob/1007.red_star/tick/1.trigger

# 演出
    particle dust 1 0.616 0.655 1 ~ ~ ~ 0.1 0.1 0.1 0 4 force
    particle electric_spark ~ ~ ~ 0 0 0 0 1 force


text:
#> asset:mob/1007.red_star/tick/1.trigger
#
# Mobが生きている間毎tick実行されるfunction
#
# @within tag/function asset:mob/tick

execute if data storage asset:context {id:1007} run function asset:mob/1007.red_star/tick/2.tick


text:
#> asset:mob/0238.poltergeist_armor/summon/2.summon
#
# Mobの召喚時の処理
#
# @within function asset:mob/0238.poltergeist_armor/summon/1.trigger

# 元となるMobを召喚する
    summon zombie ~ ~ ~ {Silent:1b,Tags:["MobInit","AlwaysInvisible","AntiBurn"],DeathLootTable:"asset:mob/death/0238.poltergeist_armor"}
# ID (int)
    data modify storage asset:mob ID set value 238
# Type (string) Wikiを参照
    data modify storage asset:mob Type set value "Enemy"
# 干渉可能か否か (boolean)
    data modify storage asset:mob Interferable set value true
# 名前 (TextComponentString) (オプション)
    data modify storage asset:mob Name set value '{"text":"ポルターガイスト"}'
# 武器
    # メインハンド (Compound(Item)) (オプション)
        # data modify storage asset:mob Weapon.Mainhand set value
    # オフハンド (Compound(Item)) (オプション)
        # data modify storage asset:mob Weapon.Offhand set value
# 武器ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob WeaponDropChances set value
# 防具
    # 頭 (Compound(Item)) (オプション)
       # data modify storage asset:mob Armor.Head set value
    # 胴 (Compound(Item)) (オプション)
     data modify storage asset:mob Armor.Chest set value {id:"minecraft:leather_chestplate",Count:1b}
    # 脚 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Legs set value {id:"minecraft:leather_leggings",Count:1b}
    # 足 (Compound(Item)) (オプション)
       # data modify storage asset:mob Armor.Feet set value
# 防具ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob ArmorDropChances set value
# 体力 (double) (オプション)
    data modify storage asset:mob Health set value 90
# 攻撃力 (double) (オプション)
    data modify storage asset:mob AttackDamage set value 4
# 防御力 (double) (オプション) // 被ダメージがある程度大きい場合1ptにつき0.8%カット、小さい場合1ptにつき約4%カット 20pt以上は頭打ち
    data modify storage asset:mob Defense set value -5
# 特殊防御力 (double) (オプション) // 4pointにつきダメージを大きく減らす
    # data modify storage asset:mob SpecialDefense set value
# 移動速度 (double) (オプション)
    data modify storage asset:mob Speed set value 0.20
# 索敵範囲 (double) (オプション)
    data modify storage asset:mob FollowRange set value 32.0
# ノックバック耐性 (double) (オプション)
    # data modify storage asset:mob KnockBackResist set value
# 属性倍率 // 1.0fで100% 最低でも25%は軽減されずに入る
    # 物理倍率 (float) (オプション)
        data modify storage asset:mob Resist.Physical set value 0.50
    # 魔法倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Magic set value
    # 火倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Fire set value
    # 水倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Water set value
    # 雷倍率 (float) (オプション)
        # data modify storage asset:mob Resist.Thunder set value

# MobInitタグ持ちを対象にして召喚関数呼び出し
    execute as @e[type=zombie,tag=MobInit,distance=..0.01] run function asset:mob/common/summon


text:
#> asset:mob/0238.poltergeist_armor/summon/1.trigger
#
# Mob召喚処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:mob/summon

execute if data storage asset:context {id:238} run function asset:mob/0238.poltergeist_armor/summon/2.summon