text:
#> asset:mob/0282.call_fulstuka/tick/4.skill_active
#
#
#
# @within function asset:mob/0282.call_fulstuka/tick/2.tick

# 銃
    execute if entity @s[tag=7U.SkillGun] run function asset:mob/0282.call_fulstuka/tick/1.skill_gun/1.skill_gun
# 銃
    execute if entity @s[tag=7U.SkillMelee] run function asset:mob/0282.call_fulstuka/tick/2.skill_melee/1.skill_melee


text:
#> asset:mob/0282.call_fulstuka/tick/3.skill_select
#
#
#
# @within function asset:mob/0282.call_fulstuka/tick/2.tick

#> private
# @private
    #declare score_holder $Random

# 疑似乱数取得
    execute store result score $Random Temporary run function lib:random/
# ほしい範囲に剰余算する
    scoreboard players operation $Random Temporary %= $2 Const

# デバッグのコマンド
    # scoreboard players set $Random Temporary 1

# 周囲に敵が居ない場合、銃にする
    execute unless entity @e[type=#lib:living,tag=Enemy,tag=!Uninterferable,distance=..10] run scoreboard players set $Random Temporary 0

# 周囲に敵がいる場合剣にする
    execute if entity @e[type=#lib:living,tag=Enemy,tag=!Uninterferable,distance=..5] run scoreboard players set $Random Temporary 1

# スキル選択
    execute if score $Random Temporary matches 0 run tag @s add 7U.SkillGun
    execute if score $Random Temporary matches 1 run tag @s add 7U.SkillMelee

# リセット
    scoreboard players reset $Random Temporary

repo_name: ProjectTSB/TheSkyBlessing

repo_language: mcfunction

mime_type: text/plain


text:
#> asset:mob/0282.call_fulstuka/tick/reset
#
#
#
# @within function asset:mob/0282.call_fulstuka/tick/**

# 腕を戻す
    data modify entity @s Pose.LeftArm set value [0f,0f,340f]
    data modify entity @s Pose.RightArm set value [0f,0f,20f]
# アイテムも戻す
    item replace entity @s weapon.mainhand with stick{CustomModelData:20194}
    item replace entity @s weapon.offhand with stick{CustomModelData:20196}
    item replace entity @s armor.head with stick{CustomModelData:20190}

# スキル消す
    tag @s remove 7U.SkillGun
    tag @s remove 7U.SkillMelee

# スコアを戻す
    scoreboard players set @s 7U.Tick -10


text:
#> asset:mob/0282.call_fulstuka/tick/1.skill_gun/1.skill_gun
#
#
#
# @within function asset:mob/0282.call_fulstuka/tick/4.skill_active

# 最初に実行
    execute if score @s 7U.Tick matches 0 run function asset:mob/0282.call_fulstuka/tick/1.skill_gun/2.first_tick

# 発砲
    execute if score @s 7U.Tick matches 15..30 run function asset:mob/0282.call_fulstuka/tick/1.skill_gun/3.ready

# リセット
    execute if score @s 7U.Tick matches 50 at @s run function asset:mob/0282.call_fulstuka/tick/reset


text:
#> asset:mob/0282.call_fulstuka/tick/1.skill_gun/2.first_tick
#
#
#
# @within function asset:mob/0282.call_fulstuka/tick/1.skill_gun/1.skill_gun

# 腕を変える
    data modify entity @s Pose.RightArm set value [270f,0f,0f]
    data modify entity @s Pose.LeftArm set value [267f,46f,0f]
# 頭も
    item replace entity @s armor.head with stick{CustomModelData:20191}

# 向きかえる
    tp @s ~ ~ ~ facing entity @e[type=#lib:living,tag=Enemy,tag=!Uninterferable,distance=..30,sort=nearest,limit=1]


text:
#> asset:mob/0282.call_fulstuka/tick/1.skill_gun/3.ready
#
# 発砲準備をします
#
# @within function asset:mob/0282.call_fulstuka/tick/1.skill_gun/1.skill_gun
#> tag
# @private
    #declare tag SpreadMarker

# 前方拡散設定
    summon marker ~ ~ ~ {Tags:["SpreadMarker"]}
    data modify storage lib: Argument.Distance set value 10.0
    data modify storage lib: Argument.Spread set value 2

# 前方拡散を実行する
    execute as @e[type=marker,tag=SpreadMarker,limit=1] run function lib:forward_spreader/circle

# 発砲
    execute positioned ^-0.4 ^ ^1.4 facing entity @e[type=marker,tag=SpreadMarker,limit=1] feet positioned ~ ~-0.425 ~ anchored eyes positioned ^ ^ ^ run function asset:mob/0282.call_fulstuka/tick/1.skill_gun/4.shot

# 演出
    playsound minecraft:entity.shulker.shoot neutral @a ~ ~ ~ 1 1.6
    playsound minecraft:block.respawn_anchor.deplete neutral @a ~ ~ ~ 1 2
    playsound minecraft:entity.generic.explode neutral @a ~ ~ ~ 0.8 2

# リセット
    kill @e[type=marker,tag=SpreadMarker,limit=1]
    tag @s remove Landing


text:
#> asset:mob/0282.call_fulstuka/tick/1.skill_gun/4.shot
#
# 発砲します
#
# @within function
#   asset:mob/0282.call_fulstuka/tick/1.skill_gun/3.ready
#   asset:mob/0282.call_fulstuka/tick/1.skill_gun/4.shot

# 着弾検知
    execute if entity @e[type=#lib:living,tag=Enemy,tag=!Uninterferable,distance=..2] run tag @s add Landing
    execute unless block ^ ^ ^0.5 #lib:no_collision run tag @s add Landing

# ターゲットにタグ付与
    execute if entity @e[type=#lib:living,tag=Enemy,tag=!Uninterferable,distance=..2] run tag @e[type=#lib:living,tag=Enemy,tag=!Uninterferable,distance=..2] add LandingTarget

# 演出
    particle dust 1 0 0.749 0.5 ~ ~ ~ 0 0 0 0 6

# 着弾
    execute if entity @s[tag=Landing] run function asset:mob/0282.call_fulstuka/tick/1.skill_gun/5.damage

# 再起
    execute positioned ^ ^ ^0.5 if entity @s[tag=!Landing,distance=..30] run function asset:mob/0282.call_fulstuka/tick/1.skill_gun/4.shot


text:
#> asset:mob/0282.call_fulstuka/tick/1.skill_gun/5.damage
#
# ダメージを与えます
#
# @within function asset:mob/0282.call_fulstuka/tick/1.skill_gun/4.shot

# ダメージ設定
    # 与えるダメージ
        data modify storage lib: Argument.Damage set value 85f
    # 魔法属性
        data modify storage lib: Argument.AttackType set value "Physical"
    # 雷属性
        data modify storage lib: Argument.ElementType set value "Thunder"
    # 補正を無視する
        data modify storage lib: Argument.BypassModifier set value true
    # ダメージ
        execute as @a if score @s UserID = @e[type=armor_stand,tag=7U.Fulstuka,limit=1] 7U.UserID run function lib:damage/modifier
        data modify storage lib: Argument.BypassModifier set value false
        execute as @e[type=#lib:living,tag=LandingTarget,tag=Enemy,tag=!Uninterferable,distance=..30] at @s run function lib:damage/
# リセット
    function lib:damage/reset

# 着弾タグを消す
    tag @e[type=#lib:living,tag=LandingTarget,tag=Enemy,tag=!Uninterferable,distance=..30] remove LandingTarget


text:
#> asset:mob/0282.call_fulstuka/tick/2.skill_melee/2.first_tick
#
#
#
# @within function asset:mob/0282.call_fulstuka/tick/2.skill_melee/1.skill_melee

# 武器変更
    item replace entity @s weapon.mainhand with stick{CustomModelData:20195}
# 腕変更
    data modify entity @s Pose.RightArm set value [38f,197f,296f]
    data modify entity @s Pose.LeftArm set value [48f,16f,0f]

# 敵の付近にテレポート
    execute at @e[type=#lib:living,tag=Enemy,distance=..20,sort=nearest,limit=1] positioned ~ ~0.5 ~ run function asset:mob/0282.call_fulstuka/tick/spreadteleport

    execute at @s run tp @s ~ ~ ~ facing entity @e[type=#lib:living,tag=Enemy,tag=!Uninterferable,distance=..30,sort=nearest,limit=1]


text:
#> asset:mob/0282.call_fulstuka/tick/2.skill_melee/1.skill_melee
#
#
#
# @within function asset:mob/0282.call_fulstuka/tick/4.skill_active

# 最初に実行するの
    execute if score @s 7U.Tick matches 0 as @s run function asset:mob/0282.call_fulstuka/tick/2.skill_melee/2.first_tick

# テレポしてぶった切る
    execute if score @s 7U.Tick matches 01 positioned ^ ^ ^1 run function asset:mob/0282.call_fulstuka/tick/2.skill_melee/3.slash
    execute if score @s 7U.Tick matches 01 run data modify entity @s Pose.RightArm set value [197f,197f,296f]

    execute if score @s 7U.Tick matches 04 run data modify entity @s Pose.RightArm set value [201f,0f,314f]
    execute if score @s 7U.Tick matches 06 run data modify entity @s Pose.RightArm set value [332f,0f,302f]
    execute if score @s 7U.Tick matches 06 positioned ^ ^ ^1 run function asset:mob/0282.call_fulstuka/tick/2.skill_melee/3.slash
    execute if score @s 7U.Tick matches 06 run tp @s ~ ~ ~ ~-40 ~

    execute if score @s 7U.Tick matches 09 run data modify entity @s Pose.RightArm set value [34f,163f,302f]
    execute if score @s 7U.Tick matches 12 run data modify entity @s Pose.RightArm set value [56f,0f,74f]
    execute if score @s 7U.Tick matches 12 run tp @s ~ ~ ~ ~40 ~
    execute if score @s 7U.Tick matches 12 at @s positioned ^ ^ ^1 run function asset:mob/0282.call_fulstuka/tick/2.skill_melee/3.slash
# 共通リセット
    execute if score @s 7U.Tick matches 20 at @s run function asset:mob/0282.call_fulstuka/tick/reset


text:
#> asset:mob/0282.call_fulstuka/tick/2.skill_melee/3.slash
#
#
#
# @within function asset:mob/0282.call_fulstuka/tick/2.skill_melee/1.skill_melee

# ダメージ設定
    # 与えるダメージ
        data modify storage lib: Argument.Damage set value 260.0f
    # 魔法属性
        data modify storage lib: Argument.AttackType set value "Physical"
    # 無属性
        data modify storage lib: Argument.ElementType set value "Thunder"
    # 補正を無視する
        data modify storage lib: Argument.BypassModifier set value true
    # ダメージ
        execute as @a if score @s UserID = @e[type=armor_stand,tag=7U.Fulstuka,limit=1] 7U.UserID run function lib:damage/modifier
        data modify storage lib: Argument.BypassModifier set value false
        execute as @e[type=#lib:living,tag=Enemy,tag=!Uninterferable,distance=..2] at @s run function lib:damage/
# リセット
    function lib:damage/reset

# 演出
    playsound minecraft:item.trident.return neutral @a ~ ~ ~ 1 2
    execute as @e[type=#lib:living,tag=Enemy,tag=!Uninterferable,distance=..2] at @s run particle dust 1 0 0.749 2 ~ ~1 ~ 0.6 0.6 0.6 0 50 normal @a


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

# 元となるMobを召喚する
    summon zombie ~ ~ ~ {Silent:1b,Tags:["MobInit"],DeathLootTable:"asset:mob/death/0064.artery"}
# ID (int)
    data modify storage asset:mob ID set value 64
# 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
    # オフハンド (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:nether_wart_block",Count:1b}
    # 胴 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Chest set value {id:"minecraft:leather_chestplate",Count:1b,tag:{display:{color:12845056}}}
    # 脚 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Legs set value {id:"minecraft:leather_leggings",Count:1b,tag:{display:{color:12845056}}}
    # 足 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Feet set value {id:"minecraft:leather_boots",Count:1b,tag:{display:{color:12845056}}}
# 防具ドロップ率 ([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 120
# 攻撃力 (double) (オプション)
    data modify storage asset:mob AttackDamage set value 6.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.30
# 索敵範囲 (double) (オプション)
    data modify storage asset:mob FollowRange set value 32.0
# ノックバック耐性 (double) (オプション)
    data modify storage asset:mob KnockBackResist set value 0.0
# 属性倍率 // 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.0
    # 火倍率 (float) (オプション)
        data modify storage asset:mob Resist.Fire set value 1.0
    # 水倍率 (float) (オプション)
        data modify storage asset:mob Resist.Water set value 1.0
    # 雷倍率 (float) (オプション)
        data modify storage asset:mob Resist.Thunder set value 1.0

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


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

execute if data storage asset:context {id:64} run function asset:mob/0064.artery/summon/2.summon


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

execute if data storage asset:context {id:64} run function asset:mob/0064.artery/attack/2.attack


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

# 周りのmobにパワー付与
    effect give @e[type=#lib:living,tag=Enemy,distance=..5] strength 6 0 true

# 演出
    playsound block.note_block.basedrum hostile @a ~ ~ ~ 1.3 0.5 0
    particle dust 0.769 0 0 2 ~ ~1 ~ 0.6 0.6 0.6 0 30 normal @a


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

#> 定義類はここに
# @within function asset:mob/0154.ruin/**
    scoreboard objectives add 4A.MadnessTime dummy


text:
#> asset:mob/0154.ruin/_index.d
# @private

#> tag
# @within function
#   asset:mob/0154.ruin/**
    #declare tag 4A.Madness


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

# 元となるMobを召喚する
    summon skeleton ~ ~ ~ {Tags:["MobInit","AlwaysInvisible"],DeathLootTable:"asset:mob/death/0154.ruin"}
# ID (int)
    data modify storage asset:mob ID set value 154
# 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":"#520000","bold":true},{"text":"滅","color":"#330000","italic":true}]'
# 武器
    # メインハンド (Compound(Item)) (オプション)
        data modify storage asset:mob Weapon.Mainhand set value {id:"stick",Count:1b,tag:{CustomModelData:20064}}
    # オフハンド (Compound(Item)) (オプション)
        data modify storage asset:mob Weapon.Offhand set value {id:"stick",Count:1b,tag:{CustomModelData:20064}}
# 武器ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob WeaponDropChances set value
# 防具
    # 頭 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Head set value {id:"crimson_hyphae",Count:1b}
    # 胴 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Chest set value {id:"minecraft:leather_chestplate",Count:1b,tag:{display:{color:4849664}}}
    # 脚 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Legs set value {id:"minecraft:leather_leggings",Count:1b,tag:{display:{color:4849664}}}
    # 足 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Feet set value {id:"minecraft:leather_boots",Count:1b,tag:{display:{color:4849664}}}
# 防具ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob ArmorDropChances set value
# 体力 (double) (オプション)
    data modify storage asset:mob Health set value 2100
# 攻撃力 (double) (オプション)
    data modify storage asset:mob AttackDamage set value 25
# 防御力 (double) (オプション) // 被ダメージがある程度大きい場合1ptにつき0.8%カット、小さい場合1ptにつき約4%カット 20pt以上は頭打ち
    data modify storage asset:mob Defense set value -6
# 特殊防御力 (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.4
    # 魔法倍率 (float) (オプション)
        data modify storage asset:mob Resist.Magic set value 0.4
    # 火倍率 (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

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


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

execute if data storage asset:context {id:154} run function asset:mob/0154.ruin/summon/2.summon


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

execute if data storage asset:context {id:154} run function asset:mob/0154.ruin/attack/2.attack


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

# 腕振るやつ(タグなし)
    execute unless entity @s[tag=4A.Madness] run item replace entity @s weapon.mainhand with stick{CustomModelData:20064}

# 腕振るやつ(タグあり)
    execute if entity @s[tag=4A.Madness] run item replace entity @s weapon.mainhand with stick{CustomModelData:20065}

# 演出
    execute at @p[tag=Victim] run particle block redstone_block ~ ~1 ~ 0.1 0 0.1 4.2 80
    playsound minecraft:entity.zombie.break_wooden_door hostile @a ~ ~ ~ 2 2
    playsound minecraft:item.trident.thunder hostile @a ~ ~ ~ 2 2

# 与えるダメージ
    execute unless entity @s[tag=4A.Madness] run data modify storage lib: Argument.Damage set value 30f
    execute if entity @s[tag=4A.Madness] run data modify storage lib: Argument.Damage set value 66f
# 属性
    data modify storage lib: Argument.AttackType set value "Physical"
    data modify storage lib: Argument.ElementType set value "None"
# 補正functionを実行
    function lib:damage/modifier
# 対象
    execute as @p[tag=Victim,distance=..32] run function lib:damage/
# リセット
    function lib:damage/reset


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

# タグがついていない時、プレイヤーが周囲にいたら増え続ける
    execute if entity @a[distance=..10] unless entity @s[tag=4A.Madness] run scoreboard players add @s 4A.MadnessTime 1

# タグがついている時、問答無用で増え続ける
    execute if entity @s[tag=4A.Madness] run scoreboard players add @s 4A.MadnessTime 1

# 一定のスコアに達したら1度発動
    execute if score @s 4A.MadnessTime matches 170 run function asset:mob/0154.ruin/tick/3.ready

# その後発動し続けるやつ
    execute if score @s 4A.MadnessTime matches 170.. run function asset:mob/0154.ruin/tick/4.madness


text:
#> asset:mob/0154.ruin/tick/3.ready
#
#
#
# @within function asset:mob/0154.ruin/tick/2.tick

# 装備変更
    item replace entity @s weapon.mainhand with stick{CustomModelData:20065}

# タグを付与
    tag @s add 4A.Madness

# 演出
    particle dragon_breath ~ ~1 ~ 0.4 0.4 0.4 0.1 100
    particle dust 0.255 0.039 0.039 1 ~ ~1 ~ 0.3 0.3 0.3 1 100
    playsound minecraft:entity.zombie_villager.cure hostile @a ~ ~ ~ 1 1


text:
#> asset:mob/0154.ruin/tick/4.madness
#
#
#
# @within function asset:mob/0154.ruin/tick/2.tick

# 演出
    particle dust 0.255 0.039 0.039 1 ~ ~1 ~ 0.3 0.3 0.3 1 10

# 効果
    effect give @s speed 1 1

# 発狂して死ぬ
    execute if score @s 4A.MadnessTime matches 370.. run kill @s


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

execute if data storage asset:context {id:154} run function asset:mob/0154.ruin/tick/2.tick


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

# 元となるMobを召喚する
    summon enderman ~ ~ ~ {Tags:["MobInit","AlwaysInvisible"],DeathLootTable:"asset:mob/death/0107.dark_ender"}
# ID (int)
    data modify storage asset:mob ID set value 107
# 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":"dark_purple"}'
# 武器
    # メインハンド (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 1000
# 攻撃力 (double) (オプション)
    data modify storage asset:mob AttackDamage set value 16
# 防御力 (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.25
# 索敵範囲 (double) (オプション)
    data modify storage asset:mob FollowRange set value 25
# ノックバック耐性 (double) (オプション)
    data modify storage asset:mob KnockBackResist set value 0
# 属性倍率 // 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.0
    # 火倍率 (float) (オプション)
        data modify storage asset:mob Resist.Fire set value 1.0
    # 水倍率 (float) (オプション)
        data modify storage asset:mob Resist.Water set value 1.0
    # 雷倍率 (float) (オプション)
        data modify storage asset:mob Resist.Thunder set value 1.0

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


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

execute if data storage asset:context {id:107} run function asset:mob/0107.dark_ender/summon/2.summon


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

execute if data storage asset:context {id:107} run function asset:mob/0107.dark_ender/attack/2.attack


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

# 演出
    execute at @p[tag=Victim,distance=..6] run particle portal ~ ~1.2 ~ 1 1 1 1 60 normal @a

# 盲目付与
    effect give @p[tag=Victim,distance=..6] blindness 3 0 true


text:
#> asset:mob/0150.contamination/gus_summon
#
#
#
# @within function asset:mob/0150.contamination/**/**

# ガスを召喚する
    data modify storage api: Argument.ID set value 158
    function api:mob/summon
# 演出
    playsound minecraft:entity.generic.extinguish_fire hostile @a ~ ~ ~ 1 0.7
    playsound minecraft:entity.generic.extinguish_fire hostile @a ~ ~ ~ 1 1
    playsound minecraft:entity.generic.extinguish_fire hostile @a ~ ~ ~ 1 1.7


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

# 演出
    playsound minecraft:entity.generic.extinguish_fire hostile @a ~ ~ ~ 1 0.7
    playsound minecraft:entity.generic.extinguish_fire hostile @a ~ ~ ~ 1 1
    playsound minecraft:entity.generic.extinguish_fire hostile @a ~ ~ ~ 1 1.7


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

execute if data storage asset:context {id:150} run function asset:mob/0150.contamination/death/2.death


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

# 元となるMobを召喚する
    summon zombie ~ ~ ~ {Tags:["MobInit","AlwaysInvisible"],DeathLootTable:"asset:mob/death/0150.contamination"}
# ID (int)
    data modify storage asset:mob ID set value 150
# 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":"dark_purple","bold":true}'
# 武器
    # メインハンド (Compound(Item)) (オプション)
        data modify storage asset:mob Weapon.Mainhand set value {id:"minecraft:stick",Count:1b,tag:{CustomModelData:219}}
    # オフハンド (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:"tinted_glass",Count:1b}
    # 胴 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Chest set value {id:"minecraft:leather_chestplate",Count:1b,tag:{display:{color:1118228}}}
    # 脚 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Legs set value {id:"minecraft:leather_leggings",Count:1b,tag:{display:{color:3025718}}}
    # 足 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Feet set value {id:"minecraft:leather_boots",Count:1b,tag:{display:{color:5722726}}}
# 防具ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob ArmorDropChances set value
# 体力 (double) (オプション)
    data modify storage asset:mob Health set value 2900
# 攻撃力 (double) (オプション)
    data modify storage asset:mob AttackDamage set value 10
# 防御力 (double) (オプション) // 被ダメージがある程度大きい場合1ptにつき0.8%カット、小さい場合1ptにつき約4%カット 20pt以上は頭打ち
    data modify storage asset:mob Defense set value -6
# 特殊防御力 (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.7
    # 魔法倍率 (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 0.4
    # 雷倍率 (float) (オプション)
        data modify storage asset:mob Resist.Thunder set value 0.7

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


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

execute if data storage asset:context {id:150} run function asset:mob/0150.contamination/summon/2.summon


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

# 確率で召喚
    execute if predicate lib:random_pass_per/20 run function asset:mob/0150.contamination/gus_summon


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

execute if data storage asset:context {id:150} run function asset:mob/0150.contamination/hurt/2.hurt


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

execute if data storage asset:context {id:150} run function asset:mob/0150.contamination/attack/2.attack


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

# ガス召喚
    execute at @p[tag=Victim,distance=..32] run function asset:mob/0150.contamination/gus_summon

# 与えるダメージ
    data modify storage lib: Argument.Damage set value 36f
# 属性
    data modify storage lib: Argument.AttackType set value "Physical"
    data modify storage lib: Argument.ElementType set value "Fire"
# 補正functionを実行
    function lib:damage/modifier
# 対象
    execute as @p[tag=Victim,distance=..32] run function lib:damage/
# リセット
    function lib:damage/reset


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

#> 定義類はここに
# @within function asset:mob/0235.orange_thrower/**
    scoreboard objectives add 6J.Tick dummy


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

# 演出
    particle dust 1 0.5 0 2 ~ ~1.2 ~ 0.5 0.5 0.5 0 100 normal @a
    particle block orange_concrete ~ ~1.2 ~ 0.5 0.5 0.5 0 100 normal @a
    playsound entity.item.pickup hostile @a ~ ~ ~ 1 0.5 0
    playsound entity.generic.explode hostile @a ~ ~ ~ 0.5 1 0


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

execute if data storage asset:context {id:235} run function asset:mob/0235.orange_thrower/death/2.death


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

# 元となるMobを召喚する
    summon zombie ~ ~ ~ {Silent:1b,Tags:["MobInit","AlwaysInvisible"],DeathLootTable:"asset:mob/death/0235.orange_thrower"}
# ID (int)
    data modify storage asset:mob ID set value 235
# 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":"#FFAA00"}'
# 武器
    # メインハンド (Compound(Item)) (オプション)
        data modify storage asset:mob Weapon.Mainhand set value {id:"player_head",Count:1b,tag:{SkullOwner:{Id:[I;463153349,-1660531863,-1823714981,703784498],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjViMWRiNTQ3ZDFiNzk1NmQ0NTExYWNjYjE1MzNlMjE3NTZkN2NiYzM4ZWI2NDM1NWEyNjI2NDEyMjEyIn19fQ=="}]}}}}
    # オフハンド (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:"orange_concrete",Count:1b}
    # 胴 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Chest set value {id:"minecraft:leather_chestplate",Count:1b,tag:{display:{color:16740096}}}
    # 脚 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Legs set value {id:"minecraft:leather_leggings",Count:1b,tag:{display:{color:16740096}}}
    # 足 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Feet set value {id:"minecraft:leather_boots",Count:1b,tag:{display:{color:16740096}}}
# 防具ドロップ率 ([float, float]) (オプション)
    # data modify storage asset:mob ArmorDropChances set value
# 体力 (double) (オプション)
    data modify storage asset:mob Health set value 1000
# 攻撃力 (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 -6
# 特殊防御力 (double) (オプション) // 4pointにつきダメージを大きく減らす
    data modify storage asset:mob SpecialDefense set value 0
# 移動速度 (double) (オプション)
    data modify storage asset:mob Speed set value 0.2
# 索敵範囲 (double) (オプション)
    data modify storage asset:mob FollowRange set value 32
# ノックバック耐性 (double) (オプション)
    data modify storage asset:mob KnockBackResist set value 0.2
# 属性倍率 // 1.0fで100% 最低でも25%は軽減されずに入る
    # 物理倍率 (float) (オプション)
        data modify storage asset:mob Resist.Physical set value 0.5
    # 魔法倍率 (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 0.5
    # 雷倍率 (float) (オプション)
        data modify storage asset:mob Resist.Thunder set value 0.5

# スコアを与えておく
    scoreboard players set @e[type=zombie,tag=MobInit,distance=..0.01] 6J.Tick -50

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


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

execute if data storage asset:context {id:235} run function asset:mob/0235.orange_thrower/summon/2.summon


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

execute if data storage asset:context {id:235} run function asset:mob/0235.orange_thrower/attack/2.attack


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

# 演出
    execute at @p[tag=Victim,distance=..6] run particle block orange_concrete ~ ~1.2 ~ 0.5 0.5 0.5 0 100 normal @a
    execute at @p[tag=Victim,distance=..6] run playsound entity.item.pickup hostile @a ~ ~ ~ 1 0.5 0
    execute at @p[tag=Victim,distance=..6] run playsound entity.generic.explode hostile @a ~ ~ ~ 0.3 1 0

# 効果
    effect give @p[tag=Victim,distance=..6] saturation 3 0 true
    effect give @p[tag=Victim,distance=..6] slowness 3 2 true

# ダメージ
    data modify storage lib: Argument.Damage set value 22f
    data modify storage lib: Argument.AttackType set value "Physical"
    data modify storage lib: Argument.ElementType set value "Water"
# デスログ
    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 @p[tag=Victim,distance=..6] run function lib:damage/
# リセット
    function lib:damage/reset


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

# 演出
    particle dust 0 1 0 1.3 ~ ~2 ~ 0.05 0 0.05 0 1 normal @a

# スコア
    execute if entity @a[distance=..32] if entity @s[scores={6J.Tick=..0}] run scoreboard players add @s 6J.Tick 1

# スコアが0の時にスペクテイターしかいない場合失敗してスコアを少し戻す
    execute if entity @s[scores={6J.Tick=0}] unless entity @a[gamemode=!spectator,distance=..32] run scoreboard players set @s 6J.Tick -60

# オレンジ召喚
    execute if entity @s[scores={6J.Tick=0..}] run function asset:mob/0235.orange_thrower/tick/3.summon_orange


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

execute if data storage asset:context {id:235} run function asset:mob/0235.orange_thrower/tick/2.tick


text:
#> asset:mob/0235.orange_thrower/tick/3.summon_orange
#
# みかんをしょうかんするよ
#
# @within function asset:mob/0235.orange_thrower/tick/2.tick

#> Private
# @private
    #declare score_holder $Temp

# 5tick間隔で蜜柑を召喚
    scoreboard players operation $Temp Temporary = @s 6J.Tick
    scoreboard players operation $Temp Temporary %= $10 Const
    execute if score $Temp Temporary matches 0 run data modify storage api: Argument.ID set value 263
    execute if score $Temp Temporary matches 0 at @p[gamemode=!spectator,distance=..10] positioned ~ ~2.5 ~ run function api:mob/summon
    execute if score $Temp Temporary matches 0 at @p[gamemode=!spectator,distance=..10] positioned ~ ~2.5 ~ run playsound entity.item.pickup hostile @a ~ ~ ~ 0.5 1 0
    scoreboard players reset $Temp Temporary

# スコア
    scoreboard players add @s 6J.Tick 1

# リセット
    execute if entity @s[scores={6J.Tick=30..}] run scoreboard players set @s 6J.Tick -50


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

# 元となるMobを召喚する
    summon skeleton ~ ~ ~ {Silent:1b,Tags:["MobInit","AlwaysInvisible"],DeathLootTable:"asset:mob/death/0160.freeze_archer"}
# ID (int)
    data modify storage asset:mob ID set value 160
# 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":"#B3FCFF"}'
# 武器
    # メインハンド (Compound(Item)) (オプション)
        data modify storage asset:mob Weapon.Mainhand set value {id:"bow",Count:1b}
    # オフハンド (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:"packed_ice",Count:1b}
    # 胴 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Chest set value {id:"minecraft:leather_chestplate",Count:1b,tag:{display:{color:11795711}}}
    # 脚 (Compound(Item)) (オプション)
        data modify storage asset:mob Armor.Legs set value {id:"minecraft:leather_leggings",Count:1b,tag:{display:{color:11795711}}}
    # 足 (Compound(Item)) (オプション)
        # data modify storage asset:mob Armor.Feet set value
# 防具ドロップ率 ([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 2900
# 攻撃力 (double) (オプション)
    # data modify storage asset:mob AttackDamage set value
# 防御力 (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 0
# 移動速度 (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
# 属性倍率 // 1.0fで100% 最低でも25%は軽減されずに入る
    # 物理倍率 (float) (オプション)
        data modify storage asset:mob Resist.Physical set value 1
    # 魔法倍率 (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 0.25
    # 雷倍率 (float) (オプション)
        data modify storage asset:mob Resist.Thunder set value 1
# MobInitタグ持ちを対象にして召喚関数呼び出し
    execute as @e[type=skeleton,tag=MobInit,distance=..0.01] run function asset:mob/common/summon


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

execute if data storage asset:context {id:160} run function asset:mob/0160.freeze_archer/summon/2.summon


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

execute if data storage asset:context {id:160} run function asset:mob/0160.freeze_archer/attack/2.attack


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

# 演出
    execute at @p[tag=Victim,distance=..32] run particle dust 1 1000000000 1000000000 1 ~ ~1.2 ~ 0.5 0.4 0.5 1 40 normal @a
    execute at @p[tag=Victim,distance=..32] run playsound block.glass.break hostile @a ~ ~ ~ 0.7 2

# 鈍足付与
    effect give @p[tag=Victim,distance=..32] slowness 3 2 true

# 与えるダメージ
    data modify storage lib: Argument.Damage set value 30f
# 属性
    data modify storage lib: Argument.AttackType set value "Physical"
    data modify storage lib: Argument.ElementType set value "Water"
# デスログ
    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


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

#> 定義類はここに
# @within function asset:mob/0129.lexiel/**
    scoreboard objectives add 3L.Tick dummy
    scoreboard objectives add 3L.4tInterval dummy


text:
#> asset:mob/0129.lexiel/rejoin_process
#
# 使い方は必ずwikiを見ること
#
# @within tag/function asset:rejoin
# 死亡アニメーション用
    execute if entity @e[type=armor_stand,tag=3L.ArmorStandDeath] run schedule function asset:mob/0129.lexiel/death/2.1.death_animation 1t


text:
#> asset:mob/0129.lexiel/_index.d
# @private

#> tag
# @within function
#   asset:mob/0129.lexiel/**
    #declare tag SpreadMarker
    #declare tag Landing
    #declare tag LandingTarget
    #declare tag 3L.ArmorStand
    #declare tag 3L.ArmorStandThis
    #declare tag 3L.ArmorStandDeath
    #declare tag 3L.ArmorStandDeathSword
    #declare tag 3L.Angel
    #declare tag 3L.SkillSword
    #declare tag 3L.SkillSwordDamageThis
    #declare tag 3L.SkillMagic
    #declare tag 3L.SkillExplode
    #declare tag 3L.SkillThunder
    #declare tag 3L.SkillThunderMaker
    #declare tag 3L.SkillExplodeParticle
    #declare score_holder $Count
    #declare score_holder $Random


text:
#> asset:mob/0129.lexiel/death/boss_drop
#
#
#
# @within function asset:mob/0129.lexiel/death/2.2.death_animation_pose

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


text:
#> asset:mob/0129.lexiel/death/2.2.death_animation_pose
#
# アニメーションをさせる部分。メインといっても過言ではない
#
# @within function asset:mob/0129.lexiel/death/2.1.death_animation

# スコアを増やしていく
    scoreboard players add @s 3L.Tick 1

# 以下アニメーション

# 少しずつ手を上げる
    execute if score @s 3L.Tick matches 1 run data modify entity @s Pose.LeftArm set value [0f,0f,330f]
    execute if score @s 3L.Tick matches 1 run data modify entity @s Pose.RightArm set value [0f,0f,30f]

    execute if score @s 3L.Tick matches 5 run data modify entity @s Pose.LeftArm set value [0f,0f,320f]
    execute if score @s 3L.Tick matches 5 run data modify entity @s Pose.RightArm set value [0f,0f,60f]

    execute if score @s 3L.Tick matches 9 run data modify entity @s Pose.LeftArm set value [0f,0f,310f]
    execute if score @s 3L.Tick matches 9 run data modify entity @s Pose.RightArm set value [0f,0f,50f]

    execute if score @s 3L.Tick matches 13 run data modify entity @s Pose.LeftArm set value [0f,0f,300f]
    execute if score @s 3L.Tick matches 13 run data modify entity @s Pose.RightArm set value [0f,0f,60f]

    execute if score @s 3L.Tick matches 17 run data modify entity @s Pose.LeftArm set value [0f,0f,290f]
    execute if score @s 3L.Tick matches 17 run data modify entity @s Pose.RightArm set value [0f,0f,70f]

    execute if score @s 3L.Tick matches 21 run data modify entity @s Pose.LeftArm set value [0f,0f,280f]
    execute if score @s 3L.Tick matches 21 run data modify entity @s Pose.RightArm set value [0f,0f,80f]

    execute if score @s 3L.Tick matches 25 run data modify entity @s Pose.LeftArm set value [0f,0f,270f]
    execute if score @s 3L.Tick matches 25 run data modify entity @s Pose.RightArm set value [0f,0f,90f]

# 自害するための剣を呼び出す
    execute if score @s 3L.Tick matches 60 rotated ~ -20 positioned ~ ~-0.8 ~ run summon armor_stand ^ ^ ^5 {Marker:1b,Invisible:1b,Tags:["3L.ArmorStandDeathSword","Object","Uninterferable"],Pose:{Head:[20f,0f,0f]}}
# 自分に向かせる
    execute if score @s 3L.Tick matches 60 rotated ~ -20 positioned ~ ~-0.8 ~ positioned ^ ^ ^5 run tp @e[type=armor_stand,tag=3L.ArmorStandDeathSword,distance=..0.01,sort=nearest,limit=1] ~ ~ ~ facing entity @s eyes
# 描画の問題で剣の表示はあとから
    execute if score @s 3L.Tick matches 60 rotated ~ -20 positioned ~ ~-0.8 ~ positioned ^ ^ ^5 run item replace entity @e[type=armor_stand,tag=3L.ArmorStandDeathSword,distance=..0.01,sort=nearest,limit=1] armor.head with iron_sword{CustomModelData:20044}
# 演出
    execute if score @s 3L.Tick matches 60 rotated ~ -20 positioned ~ ~-0.8 ~ positioned ^ ^ ^5 run particle witch ~ ~1.5 ~ 0 0 0 0.3 50

# 顔を上げる
    execute if score @s 3L.Tick matches 67 run item replace entity @s armor.head with stone{CustomModelData:20039}

# 剣を差し込む
    execute if score @s 3L.Tick matches 80 rotated ~ -20 positioned ~ ~-0.8 ~ positioned ^ ^ ^5 as @e[type=armor_stand,tag=3L.ArmorStandDeathSword,distance=..0.01,sort=nearest,limit=1] at @s positioned ~ ~-0.38 ~ run tp @s ^ ^ ^4.6

# 演出
    execute if score @s 3L.Tick matches 80 run playsound minecraft:item.trident.return hostile @a ~ ~ ~ 1 2
    execute if score @s 3L.Tick matches 83 run particle block redstone_block ~ ~0.68 ~ 0 0 0 1 30
    execute if score @s 3L.Tick matches 83 run playsound minecraft:entity.generic.death hostile @a ~ ~ ~

# 流れる血
    execute if score @s 3L.Tick matches 90..180 rotated ~ 0 positioned ~ ~1.1 ~ run particle dripping_lava ^ ^ ^-0.24 0 0 0 1 1

# うつむく
    execute if score @s 3L.Tick matches 120 run item replace entity @s armor.head with stone{CustomModelData:20043}

# 呻く
    execute if score @s 3L.Tick matches 130 run playsound minecraft:entity.strider.ambient hostile @a ~ ~ ~ 1 0.8

# 吐血
    execute if score @s 3L.Tick matches 150 run playsound minecraft:entity.strider.death hostile @a ~ ~ ~ 1 0.8
    execute if score @s 3L.Tick matches 150 positioned ^ ^ ^0.2 run particle block redstone_block ~ ~1.3 ~ 0 0 0 0 30

# ボスドロ
    execute if score @s 3L.Tick matches 220 run function asset:mob/0129.lexiel/death/boss_drop

# 消失
    execute if score @s 3L.Tick matches 220 run particle minecraft:cloud ~ ~1.3 ~ 0 0 0 0.3 100
    execute if score @s 3L.Tick matches 220 run kill @e[type=armor_stand,tag=3L.ArmorStandDeathSword,distance=..3,sort=nearest,limit=1]
    execute if score @s 3L.Tick matches 220 run kill @s


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

# 死亡アニメーションをするためのアマスタを召喚する
    summon armor_stand ~ ~ ~ {Marker:1b,Invisible:1b,Tags:["3L.ArmorStandDeath","3L.ArmorStandThis","Object","Uninterferable"],Pose:{LeftArm:[0f,0f,340f],RightArm:[0f,0f,20f]},HandItems:[{id:"minecraft:stone",Count:1b,tag:{CustomModelData:20035}},{id:"minecraft:stone",Count:1b,tag:{CustomModelData:20038}}],ArmorItems:[{},{},{},{id:"minecraft:stone",Count:1b,tag:{CustomModelData:20043}}]}
# アマスタに位置をあわせる
    execute as @e[type=armor_stand,tag=3L.ArmorStand,distance=..3,sort=nearest,limit=1] at @s run tp @e[type=armor_stand,tag=3L.ArmorStandThis,distance=..3] @s
# タグを消す
    tag @e[type=armor_stand,tag=3L.ArmorStandThis] remove 3L.ArmorStandThis

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

# スケジュールループを開始する
    schedule function asset:mob/0129.lexiel/death/2.1.death_animation 1t


text:
#> asset:mob/0129.lexiel/death/2.1.death_animation
#
# 死亡アニメーションをするための再起部分
#
# @within function
#   asset:mob/0129.lexiel/death/2.death
#   asset:mob/0129.lexiel/death/2.1.death_animation
#   asset:mob/0129.lexiel/rejoin_process

# ファンクション
    execute as @e[type=armor_stand,tag=3L.ArmorStandDeath] at @s run function asset:mob/0129.lexiel/death/2.2.death_animation_pose

# 再起
    execute if entity @e[type=armor_stand,tag=3L.ArmorStandDeath] run schedule function asset:mob/0129.lexiel/death/2.1.death_animation 1t


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

execute if data storage asset:context {id:129} run function asset:mob/0129.lexiel/death/2.death


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

# 元となるMobを召喚する
    summon wither_skeleton ~ ~ ~ {Tags:["MobInit","AlwaysInvisible","3L.Angel"],PersistenceRequired:1b,Silent:1b,NoAI:1b,DeathLootTable:"asset:mob/death/0129.lexiel"}
# ID (int)
    data modify storage asset:mob ID set value 129
# 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":"white"}'
# 武器
    # メインハンド (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 25000
# 攻撃力 (double) (オプション)
    data modify storage asset:mob AttackDamage set value 0
# 防御力 (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
# 索敵範囲 (double) (オプション)
    # data modify storage asset:mob FollowRange set value
# ノックバック耐性 (double) (オプション)
    data modify storage asset:mob KnockBackResist set value 1
# 属性倍率 // 1.0fで100% 最低でも25%は軽減されずに入る
    # 物理倍率 (float) (オプション)
        data modify storage asset:mob Resist.Physical set value 1
    # 魔法倍率 (float) (オプション)
         data modify storage asset:mob Resist.Magic set value 0.6
    # 火倍率 (float) (オプション)
        data modify storage asset:mob Resist.Fire set value 1
    # 水倍率 (float) (オプション)
        data modify storage asset:mob Resist.Water set value 0.8
    # 雷倍率 (float) (オプション)
        data modify storage asset:mob Resist.Thunder set value 0.8

# 見た目用のアマスタを召喚
    summon armor_stand ~ ~ ~ {Marker:1b,Invisible:1b,Tags:["3L.ArmorStand","3L.ArmorStandThis","Object","Uninterferable"],Pose:{LeftArm:[0f,0f,340f],RightArm:[0f,0f,20f]},HandItems:[{id:"minecraft:stone",Count:1b,tag:{CustomModelData:20035}},{id:"minecraft:stone",Count:1b,tag:{CustomModelData:20038}}],ArmorItems:[{},{},{},{id:"minecraft:stone",Count:1b,tag:{CustomModelData:20039}}]}
# 位置をあわせる
    execute as @e[type=wither_skeleton,tag=MobInit,distance=..0.01] at @s run tp @e[type=armor_stand,tag=3L.ArmorStandThis,distance=..0.01] @s
# タグを消す
    tag @e[type=armor_stand,tag=3L.ArmorStandThis,distance=..0.01] remove 3L.ArmorStandThis

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


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

execute if data storage asset:context {id:129} run function asset:mob/0129.lexiel/summon/2.summon


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

    playsound minecraft:entity.player.hurt hostile @a ~ ~ ~ 1 1


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

execute if data storage asset:context {id:129} run function asset:mob/0129.lexiel/hurt/2.hurt


text:
#> asset:mob/0129.lexiel/remove/2.remove
#
#
#
# @within function asset:mob/0129.lexiel/remove/1.trigger

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


text:
#> asset:mob/0129.lexiel/remove/1.trigger
#
#
#
# @within tag/function asset:mob/remove

execute if data storage asset:context {id:129} run function asset:mob/0129.lexiel/remove/2.remove


text:
#> asset:mob/0129.lexiel/tick/armorstand_respawn
#
#
#
# @within function asset:mob/0129.lexiel/tick/2.tick

# どっかいったアマスタを殺す
    execute as @e[type=armor_stand,tag=3L.ArmorStand] at @s unless entity @e[type=wither_skeleton,tag=3L.Angel,distance=0] run kill @s
# 見た目用のアマスタを召喚
    summon armor_stand ~ ~ ~ {Marker:1b,Invisible:1b,Tags:["3L.ArmorStand","3L.ArmorStandThis","Object","Uninterferable"],Pose:{LeftArm:[0f,0f,340f],RightArm:[0f,0f,20f]},HandItems:[{id:"minecraft:stone",Count:1b,tag:{CustomModelData:20035}},{id:"minecraft:stone",Count:1b,tag:{CustomModelData:20038}}],ArmorItems:[{},{},{},{id:"minecraft:stone",Count:1b,tag:{CustomModelData:20039}}]}
# 位置をあわせる
    tp @e[type=armor_stand,tag=3L.ArmorStandThis,distance=..0.01] @s
# タグを消す
    tag @e[type=armor_stand,tag=3L.ArmorStandThis,distance=..0.01] remove 3L.ArmorStandThis
# スコアも一応戻す
    scoreboard players reset @s 3L.Tick

# スキル発動中に移動した場合困るので消す
    tag @s remove 3L.SkillSword
    tag @s remove 3L.SkillMagic
    tag @s remove 3L.SkillExplode
    tag @s remove 3L.SkillExplodeParticle
    tag @s remove 3L.SkillThunder

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


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

# スコアを増やす
    scoreboard players add @s 3L.Tick 1
    scoreboard players add @s 3L.4tInterval 1

# 4tick毎に発動するコマンド
    execute if score @s 3L.4tInterval matches 4.. run function asset:mob/0129.lexiel/tick/regularly

# プレイヤーがいたら80tickでテレポート
    execute if score @s 3L.Tick matches 80 if entity @p[gamemode=!spectator,distance=..100] run function asset:mob/0129.lexiel/tick/2.1.teleport

# その後発動するスキル
# プレイヤーがいたら
    execute if score @s 3L.Tick matches 85 if entity @p[gamemode=!spectator,distance=..100] run function asset:mob/0129.lexiel/tick/2.2.skill_select

# プレイヤーがいないのに時間が着てしまった場合。スコアを戻す
    execute if score @s 3L.Tick matches 85 unless entity @p[gamemode=!spectator,distance=..100] run scoreboard players reset @s 3L.Tick

# 発動中
    execute if score @s 3L.Tick matches 85.. run function asset:mob/0129.lexiel/tick/2.3.skill_active

# 以下エラー時の処理

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

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


text:
#> asset:mob/0129.lexiel/tick/2.2.skill_select
#
# スキルを選ぶよ
#
# @within function asset:mob/0129.lexiel/tick/2.tick

# 疑似乱数取得
    execute store result score $Random Temporary run function lib:random/
# ほしい範囲に剰余算
    scoreboard players operation $Random Temporary %= $4 Const
# スキル選択
    execute if score $Random Temporary matches 0 run tag @s add 3L.SkillSword
    execute if score $Random Temporary matches 1 run tag @s add 3L.SkillMagic
    execute if score $Random Temporary matches 2 run tag @s add 3L.SkillExplode
    execute if score $Random Temporary matches 3 run tag @s add 3L.SkillThunder
# リセット
    scoreboard players reset $Random Temporary


text:
#> asset:mob/0129.lexiel/tick/thunder_particle_schedule
#
# サンダー用のスケジュール
#
# @within function asset:mob/0129.lexiel/tick/regularly

# 演出
    execute as @e[type=area_effect_cloud,tag=3L.SkillThunderMaker] at @s rotated ~ 0 run function asset:mob/0129.lexiel/tick/particle3


text:
#> asset:mob/0129.lexiel/tick/particle3
#
#
#
# @within function asset:mob/0129.lexiel/tick/thunder_particle_schedule

# [ImportKey]: NobwRALgngDgpmAXGAxgSwE4oDYIDRgCuhaAJkmAGwDsAZnAEaVwAMAtACwBMDAHJwEZalNrxQoRXFgMqkAnAwGlejMAQB2AQwC2CZIDDFAAQC1YGJow6AzknAoA9oXUQkUgijjO4GW2ABumtiEeuAAHkgsBFARAL4xBJakaIQ2iAIEVhAWLoiRYHDY2GgwVnoCLHkY9lkQenloVgCihcWljQCOhIHYUADK5h7kiLSBpXEAukA_3
# 円 1
particle scrape ^0 ^ ^-1 0 0 0 0 1
particle scrape ^0.30902 ^ ^-0.95106 0 0 0 0 1
particle scrape ^0.58779 ^ ^-0.80902 0 0 0 0 1
particle scrape ^0.80902 ^ ^-0.58779 0 0 0 0 1
particle scrape ^0.95106 ^ ^-0.30902 0 0 0 0 1
particle scrape ^1 ^ ^0 0 0 0 0 1
particle scrape ^0.95106 ^ ^0.30902 0 0 0 0 1
particle scrape ^0.80902 ^ ^0.58779 0 0 0 0 1
particle scrape ^0.58779 ^ ^0.80902 0 0 0 0 1
particle scrape ^0.30902 ^ ^0.95106 0 0 0 0 1
particle scrape ^0 ^ ^1 0 0 0 0 1
particle scrape ^-0.30902 ^ ^0.95106 0 0 0 0 1
particle scrape ^-0.58779 ^ ^0.80902 0 0 0 0 1
particle scrape ^-0.80902 ^ ^0.58779 0 0 0 0 1
particle scrape ^-0.95106 ^ ^0.30902 0 0 0 0 1
particle scrape ^-1 ^ ^0 0 0 0 0 1
particle scrape ^-0.95106 ^ ^-0.30902 0 0 0 0 1
particle scrape ^-0.80902 ^ ^-0.58779 0 0 0 0 1
particle scrape ^-0.58779 ^ ^-0.80902 0 0 0 0 1
particle scrape ^-0.30902 ^ ^-0.95106 0 0 0 0 1


text:
#> asset:mob/0129.lexiel/tick/particle
#
#
#
# @within function asset:mob/0129.lexiel/tick/regularly

# [ImportKey]: NobwRALgngDgpmAXGAxgSwE4oDYIDRgCuhaAJkmAEwpwBscAHAJwoC0ArLSgMysAscAIy8G1Qa1K1OAIyZwmAQxSD2YAgDsFAWwTJAYYoACSmrAwFGbQGck4FAHtC6iEnbcCNJ3Aw2wANwXYhLrgAB5IAAwEUBEAvjEEFqRohNaI7ASWEObOiJFgcNjYaDCWuoLheRh2WRC6eWiWAKKFxaWNAI6EAdhQAMpmNOSIAGYBpXF44NDwFDB2PQDmduomxGQUpAwMtLTStEysCiwM-CgA7OGHgpSkrJSuZ5Tc3MPDlKImmjoUgFiagEuRgCN9Ax8ExmCxaVK2BxOJCUPIeWreRDgfyBYJgMK5KKxeJgRLJVLpMCZbIRAgFIolMoVBLVBS1MmoOwYdReJBnAgAK0IWhgSDuBGkcAAXmg2YgBWAGs1KW1Ot0+gM4EMIBgggQGgAhEVijAdLqFRVKZVIVVBCZTWC6VCYHD4IgkIZgPgoGhnQSCYascrsBT8WjDdiHBThaSsFDsdgoPikQNwbhncgabTWwzcUHmKw+eyOHKCDmoOCeJEogJBHyYvLRXITPEKJIpJCCDJZDA5PIU1rUyp0hlYqVNFpU-UK-rGoajbDjeKWmbIOaLZarR0bM7SUh8aQMcQbl78ODsA5MJhnE58NfDaTcdiUWgMcIMT4p36AgyqAhgrPIpm5psFhHiqWaIVoy1bhLW+KNogfAtqS-adlSTY0nivZ1O4zKskitBcjyfKIJQgo6uK9SDrKcAjoaY6DEgk6lBqljaqKXgUT0VEmiMYxwHEAC6QA_3
# 円 3
particle flame ^0 ^ ^-1 0 0 0 0 1
particle flame ^0.36124 ^ ^-0.93247 0 0 0 0 1
particle flame ^0.6737 ^ ^-0.73901 0 0 0 0 1
particle flame ^0.89516 ^ ^-0.44574 0 0 0 0 1
particle flame ^0.99573 ^ ^-0.09227 0 0 0 0 1
particle flame ^0.96183 ^ ^0.27366 0 0 0 0 1
particle flame ^0.79802 ^ ^0.60263 0 0 0 0 1
particle flame ^0.52643 ^ ^0.85022 0 0 0 0 1
particle flame ^0.18375 ^ ^0.98297 0 0 0 0 1
particle flame ^-0.18375 ^ ^0.98297 0 0 0 0 1
particle flame ^-0.52643 ^ ^0.85022 0 0 0 0 1
particle flame ^-0.79802 ^ ^0.60263 0 0 0 0 1
particle flame ^-0.96183 ^ ^0.27366 0 0 0 0 1
particle flame ^-0.99573 ^ ^-0.09227 0 0 0 0 1
particle flame ^-0.89516 ^ ^-0.44574 0 0 0 0 1
particle flame ^-0.6737 ^ ^-0.73901 0 0 0 0 1
particle flame ^-0.36124 ^ ^-0.93247 0 0 0 0 1
# 円 2
particle flame ^0 ^ ^-5 0 0 0 0 1
particle flame ^0.59137 ^ ^-4.96491 0 0 0 0 1
particle flame ^1.17443 ^ ^-4.86011 0 0 0 0 1
particle flame ^1.74101 ^ ^-4.6871 0 0 0 0 1
particle flame ^2.28315 ^ ^-4.44829 0 0 0 0 1
particle flame ^2.79323 ^ ^-4.14703 0 0 0 0 1
particle flame ^3.26411 ^ ^-3.78756 0 0 0 0 1
particle flame ^3.68917 ^ ^-3.37492 0 0 0 0 1
particle flame ^4.06243 ^ ^-2.9149 0 0 0 0 1
particle flame ^4.37867 ^ ^-2.41396 0 0 0 0 1
particle flame ^4.63345 ^ ^-1.87914 0 0 0 0 1
particle flame ^4.82318 ^ ^-1.31794 0 0 0 0 1
particle flame ^4.9452 ^ ^-0.73823 0 0 0 0 1
particle flame ^4.9978 ^ ^-0.14817 0 0 0 0 1
particle flame ^4.98025 ^ ^0.44398 0 0 0 0 1
particle flame ^4.89278 ^ ^1.02989 0 0 0 0 1
particle flame ^4.73663 ^ ^1.60135 0 0 0 0 1
particle flame ^4.51399 ^ ^2.15033 0 0 0 0 1
particle flame ^4.22798 ^ ^2.66912 0 0 0 0 1
particle flame ^3.88262 ^ ^3.15044 0 0 0 0 1
particle flame ^3.48276 ^ ^3.58754 0 0 0 0 1
particle flame ^3.034 ^ ^3.97427 0 0 0 0 1
particle flame ^2.54266 ^ ^4.30522 0 0 0 0 1
particle flame ^2.01562 ^ ^4.57573 0 0 0 0 1
particle flame ^1.46028 ^ ^4.782 0 0 0 0 1
particle flame ^0.88445 ^ ^4.92115 0 0 0 0 1
particle flame ^0.2962 ^ ^4.99122 0 0 0 0 1
particle flame ^-0.2962 ^ ^4.99122 0 0 0 0 1
particle flame ^-0.88445 ^ ^4.92115 0 0 0 0 1
particle flame ^-1.46028 ^ ^4.782 0 0 0 0 1
particle flame ^-2.01562 ^ ^4.57573 0 0 0 0 1
particle flame ^-2.54266 ^ ^4.30522 0 0 0 0 1
particle flame ^-3.034 ^ ^3.97427 0 0 0 0 1
particle flame ^-3.48276 ^ ^3.58754 0 0 0 0 1
particle flame ^-3.88262 ^ ^3.15044 0 0 0 0 1
particle flame ^-4.22798 ^ ^2.66912 0 0 0 0 1
particle flame ^-4.51399 ^ ^2.15033 0 0 0 0 1
particle flame ^-4.73663 ^ ^1.60135 0 0 0 0 1
particle flame ^-4.89278 ^ ^1.02989 0 0 0 0 1
particle flame ^-4.98025 ^ ^0.44398 0 0 0 0 1
particle flame ^-4.9978 ^ ^-0.14817 0 0 0 0 1
particle flame ^-4.9452 ^ ^-0.73823 0 0 0 0 1
particle flame ^-4.82318 ^ ^-1.31794 0 0 0 0 1
particle flame ^-4.63345 ^ ^-1.87914 0 0 0 0 1
particle flame ^-4.37867 ^ ^-2.41396 0 0 0 0 1
particle flame ^-4.06243 ^ ^-2.9149 0 0 0 0 1
particle flame ^-3.68917 ^ ^-3.37492 0 0 0 0 1
particle flame ^-3.26411 ^ ^-3.78756 0 0 0 0 1
particle flame ^-2.79323 ^ ^-4.14703 0 0 0 0 1
particle flame ^-2.28315 ^ ^-4.44829 0 0 0 0 1
particle flame ^-1.74101 ^ ^-4.6871 0 0 0 0 1
particle flame ^-1.17443 ^ ^-4.86011 0 0 0 0 1
particle flame ^-0.59137 ^ ^-4.96491 0 0 0 0 1
# 多角形 4
particle flame ^0 ^ ^-5 0 0 0 0 1
particle flame ^-0.36785 ^ ^-4.82508 0 0 0 0 1
particle flame ^-0.72845 ^ ^-4.63564 0 0 0 0 1
particle flame ^-1.08075 ^ ^-4.43121 0 0 0 0 1
particle flame ^-1.4237 ^ ^-4.21145 0 0 0 0 1
particle flame ^-1.75614 ^ ^-3.97612 0 0 0 0 1
particle flame ^-2.0768 ^ ^-3.72496 0 0 0 0 1
particle flame ^-2.3846 ^ ^-3.4582 0 0 0 0 1
particle flame ^-2.67825 ^ ^-3.17594 0 0 0 0 1
particle flame ^-2.95674 ^ ^-2.87872 0 0 0 0 1
particle flame ^-3.21912 ^ ^-2.56719 0 0 0 0 1
particle flame ^-3.46445 ^ ^-2.24206 0 0 0 0 1
particle flame ^-3.69224 ^ ^-1.90442 0 0 0 0 1
particle flame ^-3.90207 ^ ^-1.55532 0 0 0 0 1
particle flame ^-4.09365 ^ ^-1.19588 0 0 0 0 1
particle flame ^-4.26715 ^ ^-0.82737 0 0 0 0 1
particle flame ^-4.42261 ^ ^-0.45089 0 0 0 0 1
particle flame ^-4.56054 ^ ^-0.06764 0 0 0 0 1
particle flame ^-4.68144 ^ ^0.32133 0 0 0 0 1
particle flame ^-4.78589 ^ ^0.71503 0 0 0 0 1
particle flame ^3.90912 ^ ^-3.11742 0 0 0 0 1
particle flame ^3.54301 ^ ^-3.29596 0 0 0 0 1
particle flame ^3.17008 ^ ^-3.45977 0 0 0 0 1
particle flame ^2.79059 ^ ^-3.60776 0 0 0 0 1
particle flame ^2.40496 ^ ^-3.73887 0 0 0 0 1
particle flame ^2.01369 ^ ^-3.85206 0 0 0 0 1
particle flame ^1.6174 ^ ^-3.94617 0 0 0 0 1
particle flame ^1.21693 ^ ^-4.02049 0 0 0 0 1
particle flame ^0.81317 ^ ^-4.0741 0 0 0 0 1
particle flame ^0.40716 ^ ^-4.10652 0 0 0 0 1
particle flame ^0 ^ ^-4.11742 0 0 0 0 1
particle flame ^-0.40716 ^ ^-4.10652 0 0 0 0 1
particle flame ^-0.81317 ^ ^-4.0741 0 0 0 0 1
particle flame ^-1.21693 ^ ^-4.02049 0 0 0 0 1
particle flame ^-1.6174 ^ ^-3.94617 0 0 0 0 1
particle flame ^-2.01369 ^ ^-3.85206 0 0 0 0 1
particle flame ^-2.40496 ^ ^-3.73887 0 0 0 0 1
particle flame ^-2.79059 ^ ^-3.60776 0 0 0 0 1
particle flame ^-3.17008 ^ ^-3.45977 0 0 0 0 1
particle flame ^-3.54301 ^ ^-3.29596 0 0 0 0 1
particle flame ^4.87456 ^ ^1.11259 0 0 0 0 1
particle flame ^4.78589 ^ ^0.71503 0 0 0 0 1
particle flame ^4.68144 ^ ^0.32133 0 0 0 0 1
particle flame ^4.56054 ^ ^-0.06764 0 0 0 0 1
particle flame ^4.42261 ^ ^-0.45089 0 0 0 0 1
particle flame ^4.26715 ^ ^-0.82737 0 0 0 0 1
particle flame ^4.09365 ^ ^-1.19588 0 0 0 0 1
particle flame ^3.90207 ^ ^-1.55532 0 0 0 0 1
particle flame ^3.69224 ^ ^-1.90442 0 0 0 0 1
particle flame ^3.46445 ^ ^-2.24206 0 0 0 0 1
particle flame ^3.21912 ^ ^-2.56719 0 0 0 0 1
particle flame ^2.95674 ^ ^-2.87872 0 0 0 0 1
particle flame ^2.67825 ^ ^-3.17594 0 0 0 0 1
particle flame ^2.3846 ^ ^-3.4582 0 0 0 0 1
particle flame ^2.0768 ^ ^-3.72496 0 0 0 0 1
particle flame ^1.75614 ^ ^-3.97612 0 0 0 0 1
particle flame ^1.4237 ^ ^-4.21145 0 0 0 0 1
particle flame ^1.08075 ^ ^-4.43121 0 0 0 0 1
particle flame ^0.72845 ^ ^-4.63564 0 0 0 0 1
particle flame ^0.36785 ^ ^-4.82508 0 0 0 0 1
particle flame ^2.16938 ^ ^4.50476 0 0 0 0 1
particle flame ^2.42491 ^ ^4.18756 0 0 0 0 1
particle flame ^2.6676 ^ ^3.86043 0 0 0 0 1
particle flame ^2.89632 ^ ^3.5234 0 0 0 0 1
particle flame ^3.10996 ^ ^3.17661 0 0 0 0 1
particle flame ^3.30738 ^ ^2.82033 0 0 0 0 1
particle flame ^3.48731 ^ ^2.45493 0 0 0 0 1
particle flame ^3.64888 ^ ^2.08104 0 0 0 0 1
particle flame ^3.79099 ^ ^1.69933 0 0 0 0 1
particle flame ^3.91295 ^ ^1.31072 0 0 0 0 1
particle flame ^4.01418 ^ ^0.91619 0 0 0 0 1
particle flame ^4.09415 ^ ^0.51682 0 0 0 0 1
particle flame ^4.15289 ^ ^0.11378 0 0 0 0 1
particle flame ^4.19047 ^ ^-0.29179 0 0 0 0 1
particle flame ^4.20713 ^ ^-0.69875 0 0 0 0 1
particle flame ^4.20356 ^ ^-1.10604 0 0 0 0 1
particle flame ^4.18028 ^ ^-1.51269 0 0 0 0 1
particle flame ^4.13827 ^ ^-1.91783 0 0 0 0 1
particle flame ^4.07843 ^ ^-2.32073 0 0 0 0 1
particle flame ^4.00172 ^ ^-2.72076 0 0 0 0 1
particle flame ^-2.16938 ^ ^4.50476 0 0 0 0 1
particle flame ^-1.76206 ^ ^4.50677 0 0 0 0 1
particle flame ^-1.35499 ^ ^4.49255 0 0 0 0 1
particle flame ^-0.94888 ^ ^4.46124 0 0 0 0 1
particle flame ^-0.54455 ^ ^4.41204 0 0 0 0 1
particle flame ^-0.14292 ^ ^4.34426 0 0 0 0 1
particle flame ^0.25496 ^ ^4.25711 0 0 0 0 1
particle flame ^0.64801 ^ ^4.15032 0 0 0 0 1
particle flame ^1.03504 ^ ^4.02343 0 0 0 0 1
particle flame ^1.41491 ^ ^3.87648 0 0 0 0 1
particle flame ^1.78648 ^ ^3.70964 0 0 0 0 1
particle flame ^2.14858 ^ ^3.52316 0 0 0 0 1
particle flame ^2.50031 ^ ^3.31779 0 0 0 0 1
particle flame ^2.84083 ^ ^3.09431 0 0 0 0 1
particle flame ^3.16939 ^ ^2.8536 0 0 0 0 1
particle flame ^3.4856 ^ ^2.59686 0 0 0 0 1
particle flame ^3.78901 ^ ^2.32512 0 0 0 0 1
particle flame ^4.07956 ^ ^2.03968 0 0 0 0 1
particle flame ^4.35725 ^ ^1.74169 0 0 0 0 1
particle flame ^4.62218 ^ ^1.43229 0 0 0 0 1
particle flame ^-4.87456 ^ ^1.11259 0 0 0 0 1
particle flame ^-4.62218 ^ ^1.43229 0 0 0 0 1
particle flame ^-4.35725 ^ ^1.74169 0 0 0 0 1
particle flame ^-4.07956 ^ ^2.03968 0 0 0 0 1
particle flame ^-3.78901 ^ ^2.32512 0 0 0 0 1
particle flame ^-3.4856 ^ ^2.59686 0 0 0 0 1
particle flame ^-3.16939 ^ ^2.8536 0 0 0 0 1
particle flame ^-2.84083 ^ ^3.09431 0 0 0 0 1
particle flame ^-2.50031 ^ ^3.31779 0 0 0 0 1
particle flame ^-2.14858 ^ ^3.52316 0 0 0 0 1
particle flame ^-1.78648 ^ ^3.70964 0 0 0 0 1
particle flame ^-1.41491 ^ ^3.87648 0 0 0 0 1
particle flame ^-1.03504 ^ ^4.02343 0 0 0 0 1
particle flame ^-0.64801 ^ ^4.15032 0 0 0 0 1
particle flame ^-0.25496 ^ ^4.25711 0 0 0 0 1
particle flame ^0.14292 ^ ^4.34426 0 0 0 0 1
particle flame ^0.54455 ^ ^4.41204 0 0 0 0 1
particle flame ^0.94888 ^ ^4.46124 0 0 0 0 1
particle flame ^1.35499 ^ ^4.49255 0 0 0 0 1
particle flame ^1.76206 ^ ^4.50677 0 0 0 0 1
particle flame ^-3.90912 ^ ^-3.11742 0 0 0 0 1
particle flame ^-4.00172 ^ ^-2.72076 0 0 0 0 1
particle flame ^-4.07843 ^ ^-2.32073 0 0 0 0 1
particle flame ^-4.13827 ^ ^-1.91783 0 0 0 0 1
particle flame ^-4.18028 ^ ^-1.51269 0 0 0 0 1
particle flame ^-4.20356 ^ ^-1.10604 0 0 0 0 1
particle flame ^-4.20713 ^ ^-0.69875 0 0 0 0 1
particle flame ^-4.19047 ^ ^-0.29179 0 0 0 0 1
particle flame ^-4.15289 ^ ^0.11378 0 0 0 0 1
particle flame ^-4.09415 ^ ^0.51682 0 0 0 0 1
particle flame ^-4.01418 ^ ^0.91619 0 0 0 0 1
particle flame ^-3.91295 ^ ^1.31072 0 0 0 0 1
particle flame ^-3.79099 ^ ^1.69933 0 0 0 0 1
particle flame ^-3.64888 ^ ^2.08104 0 0 0 0 1
particle flame ^-3.48731 ^ ^2.45493 0 0 0 0 1
particle flame ^-3.30738 ^ ^2.82033 0 0 0 0 1
particle flame ^-3.10996 ^ ^3.17661 0 0 0 0 1
particle flame ^-2.89632 ^ ^3.5234 0 0 0 0 1
particle flame ^-2.6676 ^ ^3.86043 0 0 0 0 1
particle flame ^-2.42491 ^ ^4.18756 0 0 0 0 1
# 多角形 5
particle flame ^0 ^ ^-4 0 0 0 0 1
particle flame ^0.20377 ^ ^-3.64706 0 0 0 0 1
particle flame ^0.40754 ^ ^-3.29412 0 0 0 0 1
particle flame ^0.61131 ^ ^-2.94118 0 0 0 0 1
particle flame ^0.81508 ^ ^-2.58824 0 0 0 0 1
particle flame ^1.01885 ^ ^-2.23529 0 0 0 0 1
particle flame ^1.22262 ^ ^-1.88235 0 0 0 0 1
particle flame ^1.42639 ^ ^-1.52941 0 0 0 0 1
particle flame ^1.63017 ^ ^-1.17647 0 0 0 0 1
particle flame ^1.83394 ^ ^-0.82353 0 0 0 0 1
particle flame ^2.03771 ^ ^-0.47059 0 0 0 0 1
particle flame ^2.24148 ^ ^-0.11765 0 0 0 0 1
particle flame ^2.44525 ^ ^0.23529 0 0 0 0 1
particle flame ^2.64902 ^ ^0.58824 0 0 0 0 1
particle flame ^2.85279 ^ ^0.94118 0 0 0 0 1
particle flame ^3.05656 ^ ^1.29412 0 0 0 0 1
particle flame ^3.26033 ^ ^1.64706 0 0 0 0 1
particle flame ^3.4641 ^ ^-2 0 0 0 0 1
particle flame ^3.26033 ^ ^-1.64706 0 0 0 0 1
particle flame ^3.05656 ^ ^-1.29412 0 0 0 0 1
particle flame ^2.85279 ^ ^-0.94118 0 0 0 0 1
particle flame ^2.64902 ^ ^-0.58824 0 0 0 0 1
particle flame ^2.44525 ^ ^-0.23529 0 0 0 0 1
particle flame ^2.24148 ^ ^0.11765 0 0 0 0 1
particle flame ^2.03771 ^ ^0.47059 0 0 0 0 1
particle flame ^1.83394 ^ ^0.82353 0 0 0 0 1
particle flame ^1.63017 ^ ^1.17647 0 0 0 0 1
particle flame ^1.42639 ^ ^1.52941 0 0 0 0 1
particle flame ^1.22262 ^ ^1.88235 0 0 0 0 1
particle flame ^1.01885 ^ ^2.23529 0 0 0 0 1
particle flame ^0.81508 ^ ^2.58824 0 0 0 0 1
particle flame ^0.61131 ^ ^2.94118 0 0 0 0 1
particle flame ^0.40754 ^ ^3.29412 0 0 0 0 1
particle flame ^0.20377 ^ ^3.64706 0 0 0 0 1
particle flame ^3.4641 ^ ^2 0 0 0 0 1
particle flame ^3.05656 ^ ^2 0 0 0 0 1
particle flame ^2.64902 ^ ^2 0 0 0 0 1
particle flame ^2.24148 ^ ^2 0 0 0 0 1
particle flame ^1.83394 ^ ^2 0 0 0 0 1
particle flame ^1.42639 ^ ^2 0 0 0 0 1
particle flame ^1.01885 ^ ^2 0 0 0 0 1
particle flame ^0.61131 ^ ^2 0 0 0 0 1
particle flame ^0.20377 ^ ^2 0 0 0 0 1
particle flame ^-0.20377 ^ ^2 0 0 0 0 1
particle flame ^-0.61131 ^ ^2 0 0 0 0 1
particle flame ^-1.01885 ^ ^2 0 0 0 0 1
particle flame ^-1.42639 ^ ^2 0 0 0 0 1
particle flame ^-1.83394 ^ ^2 0 0 0 0 1
particle flame ^-2.24148 ^ ^2 0 0 0 0 1
particle flame ^-2.64902 ^ ^2 0 0 0 0 1
particle flame ^-3.05656 ^ ^2 0 0 0 0 1
particle flame ^0 ^ ^4 0 0 0 0 1
particle flame ^-0.20377 ^ ^3.64706 0 0 0 0 1
particle flame ^-0.40754 ^ ^3.29412 0 0 0 0 1
particle flame ^-0.61131 ^ ^2.94118 0 0 0 0 1
particle flame ^-0.81508 ^ ^2.58824 0 0 0 0 1
particle flame ^-1.01885 ^ ^2.23529 0 0 0 0 1
particle flame ^-1.22262 ^ ^1.88235 0 0 0 0 1
particle flame ^-1.42639 ^ ^1.52941 0 0 0 0 1
particle flame ^-1.63017 ^ ^1.17647 0 0 0 0 1
particle flame ^-1.83394 ^ ^0.82353 0 0 0 0 1
particle flame ^-2.03771 ^ ^0.47059 0 0 0 0 1
particle flame ^-2.24148 ^ ^0.11765 0 0 0 0 1
particle flame ^-2.44525 ^ ^-0.23529 0 0 0 0 1
particle flame ^-2.64902 ^ ^-0.58824 0 0 0 0 1
particle flame ^-2.85279 ^ ^-0.94118 0 0 0 0 1
particle flame ^-3.05656 ^ ^-1.29412 0 0 0 0 1
particle flame ^-3.26033 ^ ^-1.64706 0 0 0 0 1
particle flame ^-3.4641 ^ ^2 0 0 0 0 1
particle flame ^-3.26033 ^ ^1.64706 0 0 0 0 1
particle flame ^-3.05656 ^ ^1.29412 0 0 0 0 1
particle flame ^-2.85279 ^ ^0.94118 0 0 0 0 1
particle flame ^-2.64902 ^ ^0.58824 0 0 0 0 1
particle flame ^-2.44525 ^ ^0.23529 0 0 0 0 1
particle flame ^-2.24148 ^ ^-0.11765 0 0 0 0 1
particle flame ^-2.03771 ^ ^-0.47059 0 0 0 0 1
particle flame ^-1.83394 ^ ^-0.82353 0 0 0 0 1
particle flame ^-1.63017 ^ ^-1.17647 0 0 0 0 1
particle flame ^-1.42639 ^ ^-1.52941 0 0 0 0 1
particle flame ^-1.22262 ^ ^-1.88235 0 0 0 0 1
particle flame ^-1.01885 ^ ^-2.23529 0 0 0 0 1
particle flame ^-0.81508 ^ ^-2.58824 0 0 0 0 1
particle flame ^-0.61131 ^ ^-2.94118 0 0 0 0 1
particle flame ^-0.40754 ^ ^-3.29412 0 0 0 0 1
particle flame ^-0.20377 ^ ^-3.64706 0 0 0 0 1
particle flame ^-3.4641 ^ ^-2 0 0 0 0 1
particle flame ^-3.05656 ^ ^-2 0 0 0 0 1
particle flame ^-2.64902 ^ ^-2 0 0 0 0 1
particle flame ^-2.24148 ^ ^-2 0 0 0 0 1
particle flame ^-1.83394 ^ ^-2 0 0 0 0 1
particle flame ^-1.42639 ^ ^-2 0 0 0 0 1
particle flame ^-1.01885 ^ ^-2 0 0 0 0 1
particle flame ^-0.61131 ^ ^-2 0 0 0 0 1
particle flame ^-0.20377 ^ ^-2 0 0 0 0 1
particle flame ^0.20377 ^ ^-2 0 0 0 0 1
particle flame ^0.61131 ^ ^-2 0 0 0 0 1
particle flame ^1.01885 ^ ^-2 0 0 0 0 1
particle flame ^1.42639 ^ ^-2 0 0 0 0 1
particle flame ^1.83394 ^ ^-2 0 0 0 0 1
particle flame ^2.24148 ^ ^-2 0 0 0 0 1
particle flame ^2.64902 ^ ^-2 0 0 0 0 1
particle flame ^3.05656 ^ ^-2 0 0 0 0 1


text:
#> asset:mob/0129.lexiel/tick/particle2
#
#
#
# @within function asset:mob/0129.lexiel/tick/regularly

# [ImportKey]: NobwRALgngDgpmAXGAxgSwE4oDYIDRgCuhaAJkmAKwCGAbAAwBmlttAtKbXPWwCykoUbaimq82ARgBGcAEyUAzAA4AnBLiVZYAgDtqAWwTJAYYoACCdrAxqGAwGck4FAHtCOiEl6UCKOO7gYjmAAbtTYhEbgAB5I9ARQsQC+iQS2pGiEDoiyBHYQNh6IcWBw2NhoMHZGEvTFGM75EEbFaHYAomUVVW0AjoRh2FAAyta+5IiMYVXJeODQ8BQwzoMA5s46lsRkFFKySowojFxsCmpKfHAA7JdsSqQSN1K0iqRwNaeMUpZ6hhSAWJqAJcjAEb65ks1ls+iyTlc7iQsmKvn8gUQ4FC4UiYBiRXiSRSYDSGSyOTAeQKsQIpXKlWqtVSDWoTXJqGcGB0ASQtAIACtCPoYHCCDIAF5odnYsCtDpU7p9AbDUZwcaTbBVAitABCcBFAV6-TK8pEiqQyumiQAukA_3
# 円 1
particle witch ^0 ^ ^-2 0 0 0 0 1
particle witch ^0.27835 ^ ^-1.98054 0 0 0 0 1
particle witch ^0.55127 ^ ^-1.92252 0 0 0 0 1
particle witch ^0.81347 ^ ^-1.82709 0 0 0 0 1
particle witch ^1.05984 ^ ^-1.6961 0 0 0 0 1
particle witch ^1.28558 ^ ^-1.53209 0 0 0 0 1
particle witch ^1.48629 ^ ^-1.33826 0 0 0 0 1
particle witch ^1.65808 ^ ^-1.11839 0 0 0 0 1
particle witch ^1.79759 ^ ^-0.87674 0 0 0 0 1
particle witch ^1.90211 ^ ^-0.61803 0 0 0 0 1
particle witch ^1.96962 ^ ^-0.3473 0 0 0 0 1
particle witch ^1.99878 ^ ^-0.0698 0 0 0 0 1
particle witch ^1.98904 ^ ^0.20906 0 0 0 0 1
particle witch ^1.94059 ^ ^0.48384 0 0 0 0 1
particle witch ^1.85437 ^ ^0.74921 0 0 0 0 1
particle witch ^1.73205 ^ ^1 0 0 0 0 1
particle witch ^1.57602 ^ ^1.23132 0 0 0 0 1
particle witch ^1.38932 ^ ^1.43868 0 0 0 0 1
particle witch ^1.17557 ^ ^1.61803 0 0 0 0 1
particle witch ^0.93894 ^ ^1.7659 0 0 0 0 1
particle witch ^0.68404 ^ ^1.87939 0 0 0 0 1
particle witch ^0.41582 ^ ^1.9563 0 0 0 0 1
particle witch ^0.13951 ^ ^1.99513 0 0 0 0 1
particle witch ^-0.13951 ^ ^1.99513 0 0 0 0 1
particle witch ^-0.41582 ^ ^1.9563 0 0 0 0 1
particle witch ^-0.68404 ^ ^1.87939 0 0 0 0 1
particle witch ^-0.93894 ^ ^1.7659 0 0 0 0 1
particle witch ^-1.17557 ^ ^1.61803 0 0 0 0 1
particle witch ^-1.38932 ^ ^1.43868 0 0 0 0 1
particle witch ^-1.57602 ^ ^1.23132 0 0 0 0 1
particle witch ^-1.73205 ^ ^1 0 0 0 0 1
particle witch ^-1.85437 ^ ^0.74921 0 0 0 0 1
particle witch ^-1.94059 ^ ^0.48384 0 0 0 0 1
particle witch ^-1.98904 ^ ^0.20906 0 0 0 0 1
particle witch ^-1.99878 ^ ^-0.0698 0 0 0 0 1
particle witch ^-1.96962 ^ ^-0.3473 0 0 0 0 1
particle witch ^-1.90211 ^ ^-0.61803 0 0 0 0 1
particle witch ^-1.79759 ^ ^-0.87674 0 0 0 0 1
particle witch ^-1.65808 ^ ^-1.11839 0 0 0 0 1
particle witch ^-1.48629 ^ ^-1.33826 0 0 0 0 1
particle witch ^-1.28558 ^ ^-1.53209 0 0 0 0 1
particle witch ^-1.05984 ^ ^-1.6961 0 0 0 0 1
particle witch ^-0.81347 ^ ^-1.82709 0 0 0 0 1
particle witch ^-0.55127 ^ ^-1.92252 0 0 0 0 1
particle witch ^-0.27835 ^ ^-1.98054 0 0 0 0 1
# 多角形 1
particle witch ^0 ^ ^-2 0 0 0 0 1
particle witch ^0.0866 ^ ^-1.85 0 0 0 0 1
particle witch ^0.17321 ^ ^-1.7 0 0 0 0 1
particle witch ^0.25981 ^ ^-1.55 0 0 0 0 1
particle witch ^0.34641 ^ ^-1.4 0 0 0 0 1
particle witch ^0.43301 ^ ^-1.25 0 0 0 0 1
particle witch ^0.51962 ^ ^-1.1 0 0 0 0 1
particle witch ^0.60622 ^ ^-0.95 0 0 0 0 1
particle witch ^0.69282 ^ ^-0.8 0 0 0 0 1
particle witch ^0.77942 ^ ^-0.65 0 0 0 0 1
particle witch ^0.86603 ^ ^-0.5 0 0 0 0 1
particle witch ^0.95263 ^ ^-0.35 0 0 0 0 1
particle witch ^1.03923 ^ ^-0.2 0 0 0 0 1
particle witch ^1.12583 ^ ^-0.05 0 0 0 0 1
particle witch ^1.21244 ^ ^0.1 0 0 0 0 1
particle witch ^1.29904 ^ ^0.25 0 0 0 0 1
particle witch ^1.38564 ^ ^0.4 0 0 0 0 1
particle witch ^1.47224 ^ ^0.55 0 0 0 0 1
particle witch ^1.55885 ^ ^0.7 0 0 0 0 1
particle witch ^1.64545 ^ ^0.85 0 0 0 0 1
particle witch ^1.73205 ^ ^-1 0 0 0 0 1
particle witch ^1.64545 ^ ^-0.85 0 0 0 0 1
particle witch ^1.55885 ^ ^-0.7 0 0 0 0 1
particle witch ^1.47224 ^ ^-0.55 0 0 0 0 1
particle witch ^1.38564 ^ ^-0.4 0 0 0 0 1
particle witch ^1.29904 ^ ^-0.25 0 0 0 0 1
particle witch ^1.21244 ^ ^-0.1 0 0 0 0 1
particle witch ^1.12583 ^ ^0.05 0 0 0 0 1
particle witch ^1.03923 ^ ^0.2 0 0 0 0 1
particle witch ^0.95263 ^ ^0.35 0 0 0 0 1
particle witch ^0.86603 ^ ^0.5 0 0 0 0 1
particle witch ^0.77942 ^ ^0.65 0 0 0 0 1
particle witch ^0.69282 ^ ^0.8 0 0 0 0 1
particle witch ^0.60622 ^ ^0.95 0 0 0 0 1
particle witch ^0.51962 ^ ^1.1 0 0 0 0 1
particle witch ^0.43301 ^ ^1.25 0 0 0 0 1
particle witch ^0.34641 ^ ^1.4 0 0 0 0 1
particle witch ^0.25981 ^ ^1.55 0 0 0 0 1
particle witch ^0.17321 ^ ^1.7 0 0 0 0 1
particle witch ^0.0866 ^ ^1.85 0 0 0 0 1
particle witch ^1.73205 ^ ^1 0 0 0 0 1
particle witch ^1.55885 ^ ^1 0 0 0 0 1
particle witch ^1.38564 ^ ^1 0 0 0 0 1
particle witch ^1.21244 ^ ^1 0 0 0 0 1
particle witch ^1.03923 ^ ^1 0 0 0 0 1
particle witch ^0.86603 ^ ^1 0 0 0 0 1
particle witch ^0.69282 ^ ^1 0 0 0 0 1
particle witch ^0.51962 ^ ^1 0 0 0 0 1
particle witch ^0.34641 ^ ^1 0 0 0 0 1
particle witch ^0.17321 ^ ^1 0 0 0 0 1
particle witch ^0 ^ ^1 0 0 0 0 1
particle witch ^-0.17321 ^ ^1 0 0 0 0 1
particle witch ^-0.34641 ^ ^1 0 0 0 0 1
particle witch ^-0.51962 ^ ^1 0 0 0 0 1
particle witch ^-0.69282 ^ ^1 0 0 0 0 1
particle witch ^-0.86603 ^ ^1 0 0 0 0 1
particle witch ^-1.03923 ^ ^1 0 0 0 0 1
particle witch ^-1.21244 ^ ^1 0 0 0 0 1
particle witch ^-1.38564 ^ ^1 0 0 0 0 1
particle witch ^-1.55885 ^ ^1 0 0 0 0 1
particle witch ^0 ^ ^2 0 0 0 0 1
particle witch ^-0.0866 ^ ^1.85 0 0 0 0 1
particle witch ^-0.17321 ^ ^1.7 0 0 0 0 1
particle witch ^-0.25981 ^ ^1.55 0 0 0 0 1
particle witch ^-0.34641 ^ ^1.4 0 0 0 0 1
particle witch ^-0.43301 ^ ^1.25 0 0 0 0 1
particle witch ^-0.51962 ^ ^1.1 0 0 0 0 1
particle witch ^-0.60622 ^ ^0.95 0 0 0 0 1
particle witch ^-0.69282 ^ ^0.8 0 0 0 0 1
particle witch ^-0.77942 ^ ^0.65 0 0 0 0 1
particle witch ^-0.86603 ^ ^0.5 0 0 0 0 1
particle witch ^-0.95263 ^ ^0.35 0 0 0 0 1
particle witch ^-1.03923 ^ ^0.2 0 0 0 0 1
particle witch ^-1.12583 ^ ^0.05 0 0 0 0 1
particle witch ^-1.21244 ^ ^-0.1 0 0 0 0 1
particle witch ^-1.29904 ^ ^-0.25 0 0 0 0 1
particle witch ^-1.38564 ^ ^-0.4 0 0 0 0 1
particle witch ^-1.47224 ^ ^-0.55 0 0 0 0 1
particle witch ^-1.55885 ^ ^-0.7 0 0 0 0 1
particle witch ^-1.64545 ^ ^-0.85 0 0 0 0 1
particle witch ^-1.73205 ^ ^1 0 0 0 0 1
particle witch ^-1.64545 ^ ^0.85 0 0 0 0 1
particle witch ^-1.55885 ^ ^0.7 0 0 0 0 1
particle witch ^-1.47224 ^ ^0.55 0 0 0 0 1
particle witch ^-1.38564 ^ ^0.4 0 0 0 0 1
particle witch ^-1.29904 ^ ^0.25 0 0 0 0 1
particle witch ^-1.21244 ^ ^0.1 0 0 0 0 1
particle witch ^-1.12583 ^ ^-0.05 0 0 0 0 1
particle witch ^-1.03923 ^ ^-0.2 0 0 0 0 1
particle witch ^-0.95263 ^ ^-0.35 0 0 0 0 1
particle witch ^-0.86603 ^ ^-0.5 0 0 0 0 1
particle witch ^-0.77942 ^ ^-0.65 0 0 0 0 1
particle witch ^-0.69282 ^ ^-0.8 0 0 0 0 1
particle witch ^-0.60622 ^ ^-0.95 0 0 0 0 1
particle witch ^-0.51962 ^ ^-1.1 0 0 0 0 1
particle witch ^-0.43301 ^ ^-1.25 0 0 0 0 1
particle witch ^-0.34641 ^ ^-1.4 0 0 0 0 1
particle witch ^-0.25981 ^ ^-1.55 0 0 0 0 1
particle witch ^-0.17321 ^ ^-1.7 0 0 0 0 1
particle witch ^-0.0866 ^ ^-1.85 0 0 0 0 1
particle witch ^-1.73205 ^ ^-1 0 0 0 0 1
particle witch ^-1.55885 ^ ^-1 0 0 0 0 1
particle witch ^-1.38564 ^ ^-1 0 0 0 0 1
particle witch ^-1.21244 ^ ^-1 0 0 0 0 1
particle witch ^-1.03923 ^ ^-1 0 0 0 0 1
particle witch ^-0.86603 ^ ^-1 0 0 0 0 1
particle witch ^-0.69282 ^ ^-1 0 0 0 0 1
particle witch ^-0.51962 ^ ^-1 0 0 0 0 1
particle witch ^-0.34641 ^ ^-1 0 0 0 0 1
particle witch ^-0.17321 ^ ^-1 0 0 0 0 1
particle witch ^0 ^ ^-1 0 0 0 0 1
particle witch ^0.17321 ^ ^-1 0 0 0 0 1
particle witch ^0.34641 ^ ^-1 0 0 0 0 1
particle witch ^0.51962 ^ ^-1 0 0 0 0 1
particle witch ^0.69282 ^ ^-1 0 0 0 0 1
particle witch ^0.86603 ^ ^-1 0 0 0 0 1
particle witch ^1.03923 ^ ^-1 0 0 0 0 1
particle witch ^1.21244 ^ ^-1 0 0 0 0 1
particle witch ^1.38564 ^ ^-1 0 0 0 0 1
particle witch ^1.55885 ^ ^-1 0 0 0 0 1


text:
#> asset:mob/0129.lexiel/tick/regularly
#
# 4tick毎に発動します。particleの表示しすぎを防止する
#
# @within function asset:mob/0129.lexiel/tick/2.tick

# 爆発魔法陣
    execute if entity @s[tag=3L.SkillExplodeParticle] positioned ^ ^ ^5 positioned ~ ~0.3 ~ rotated ~ 0 run function asset:mob/0129.lexiel/tick/particle

# 魔法弾用の魔法陣
    execute if entity @s[tag=3L.SkillMagic] positioned ^ ^ ^1 positioned ~ ~1.4 ~ rotated ~ ~90 run function asset:mob/0129.lexiel/tick/particle2

# 雷攻撃用の円
    execute if entity @s[tag=3L.SkillThunder] run schedule function asset:mob/0129.lexiel/tick/thunder_particle_schedule 1t

# 4tickを超えたら戻す
    execute if score @s 3L.4tInterval matches 4.. run scoreboard players reset @s 3L.4tInterval


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

execute if data storage asset:context {id:129} run function asset:mob/0129.lexiel/tick/2.tick


text:
#> asset:mob/0129.lexiel/tick/2.3.skill_active
#
# スキル実行中
#
# @within function asset:mob/0129.lexiel/tick/2.tick

# 剣スキル
    execute if entity @s[tag=3L.SkillSword] run function asset:mob/0129.lexiel/tick/skill_sword/1.skill_sword

# 魔法スキル
    execute if entity @s[tag=3L.SkillMagic] run function asset:mob/0129.lexiel/tick/skill_magic/1.skill_magic

# 爆破スキル
    execute if entity @s[tag=3L.SkillExplode] run function asset:mob/0129.lexiel/tick/skill_explode/1.skill_explode

# 雷スキル
    execute if entity @s[tag=3L.SkillThunder] run function asset:mob/0129.lexiel/tick/skill_thunder/1.skill_thunder


text:
#> asset:mob/0129.lexiel/tick/2.1.teleport
#
# テレポート。このモブはこれでしか移動しない
#
# @within function asset:mob/0129.lexiel/tick/**

# 演出
   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

# ワープ準備
    execute at @p 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 positioned ~ ~40 ~ rotated ~ 90 run function lib:forward_spreader/circle

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

# ワープ
    execute at @p 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

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

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


text:
#> asset:mob/0129.lexiel/tick/skill_thunder/3.skill_thunder_particle_and_damage
#
# 雷ダメージを発生させる
#
# @within function asset:mob/0129.lexiel/tick/skill_thunder/1.skill_thunder

# 演出
    particle dust 1 1 0 1 ~ ~3 ~ 0.7 3 0.7 0 300
    particle dust 1 1 0 1 ~ ~5 ~ 0.1 5 0.1 0 300
    particle minecraft:explosion ~ ~ ~ 0.3 0 0.3 0 10
    particle minecraft:large_smoke ~ ~ ~ 0 0 0 0.4 100

    playsound entity.lightning_bolt.thunder hostile @a ~ ~ ~ 1 2 0
    playsound entity.lightning_bolt.thunder hostile @a ~ ~ ~ 1 2 0
    playsound entity.lightning_bolt.impact hostile @a ~ ~ ~ 1 0 0

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

# 切キル
    kill @e[type=area_effect_cloud,tag=3L.SkillThunderMaker,sort=nearest,limit=1]


text:
#> asset:mob/0129.lexiel/tick/skill_thunder/1.skill_thunder
#
# 雷を落とす
#
# @within function asset:mob/0129.lexiel/tick/2.3.skill_active

# ポーズ
    execute if score @s 3L.Tick matches 85 run item replace entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] armor.head with stone{CustomModelData:20042}
    execute if score @s 3L.Tick matches 85 run item replace entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] weapon with stone{CustomModelData:20037}
    execute if score @s 3L.Tick matches 85 run data modify entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.LeftArm set value [30f,360f,28f]
    execute if score @s 3L.Tick matches 85 run data modify entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [0f,0f,90f]

# 雷を落とすAECを5個呼ぶ
    execute if score @s 3L.Tick matches 85 run function asset:mob/0129.lexiel/tick/skill_thunder/2.skill_thunder_summon
    execute if score @s 3L.Tick matches 85 run function asset:mob/0129.lexiel/tick/skill_thunder/2.skill_thunder_summon
    execute if score @s 3L.Tick matches 85 run function asset:mob/0129.lexiel/tick/skill_thunder/2.skill_thunder_summon
    execute if score @s 3L.Tick matches 85 run function asset:mob/0129.lexiel/tick/skill_thunder/2.skill_thunder_summon
    execute if score @s 3L.Tick matches 85 run function asset:mob/0129.lexiel/tick/skill_thunder/2.skill_thunder_summon
# 攻撃
    execute if score @s 3L.Tick matches 104 at @e[type=area_effect_cloud,tag=3L.SkillThunderMaker,sort=random,limit=1] run function asset:mob/0129.lexiel/tick/skill_thunder/3.skill_thunder_particle_and_damage
    execute if score @s 3L.Tick matches 106 at @e[type=area_effect_cloud,tag=3L.SkillThunderMaker,sort=random,limit=1] run function asset:mob/0129.lexiel/tick/skill_thunder/3.skill_thunder_particle_and_damage
    execute if score @s 3L.Tick matches 108 at @e[type=area_effect_cloud,tag=3L.SkillThunderMaker,sort=random,limit=1] run function asset:mob/0129.lexiel/tick/skill_thunder/3.skill_thunder_particle_and_damage
    execute if score @s 3L.Tick matches 110 at @e[type=area_effect_cloud,tag=3L.SkillThunderMaker,sort=random,limit=1] run function asset:mob/0129.lexiel/tick/skill_thunder/3.skill_thunder_particle_and_damage
    execute if score @s 3L.Tick matches 112 at @e[type=area_effect_cloud,tag=3L.SkillThunderMaker,sort=random,limit=1] run function asset:mob/0129.lexiel/tick/skill_thunder/3.skill_thunder_particle_and_damage

# タグを消す
    execute if score @s 3L.Tick matches 130 run tag @s remove 3L.SkillThunder
# スコアを戻す
    execute if score @s 3L.Tick matches 130 run scoreboard players set @s 3L.Tick 0


text:
#> asset:mob/0129.lexiel/tick/skill_thunder/2.skill_thunder_summon
#
# 雷を落とす位置を召喚する
#
# @within function asset:mob/0129.lexiel/tick/skill_thunder/1.skill_thunder

# 前方拡散でAECを召喚
    execute at @p run summon marker ~ ~20 ~ {Tags:["SpreadMarker"]}
    data modify storage lib: Argument.Distance set value 6
    data modify storage lib: Argument.Spread set value 2d
    execute as @e[type=marker,tag=SpreadMarker] at @p positioned ~ ~20 ~ rotated ~ 90 run function lib:forward_spreader/circle
# 召喚
    execute at @p positioned ~ ~20 ~ facing entity @e[type=marker,tag=SpreadMarker] feet run summon area_effect_cloud ^ ^ ^20 {CustomNameVisible:0b,Particle:"block air",Duration:30,Tags:["Object","3L.SkillThunderMaker"]}
# 演出
    playsound minecraft:entity.puffer_fish.death hostile @a ^ ^ ^20 1 0.3

# キル
    kill @e[tag=SpreadMarker]


text:
#> asset:mob/0129.lexiel/tick/skill_magic/2.skill_magic_bullet
#
# 弾の再起部分（ヘトゥケダゥのやつとほぼ一緒）
#
# @within function
#   asset:mob/0129.lexiel/tick/skill_magic/1.skill_magic
#   asset:mob/0129.lexiel/tick/skill_magic/2.skill_magic_bullet

# 着弾検知
    execute if entity @a[gamemode=!spectator,distance=..1.7] run tag @s add Landing
    execute unless block ^ ^ ^0.5 #lib:no_collision run tag @s add Landing

# ターゲットにタグ付与
    execute if entity @a[gamemode=!spectator,distance=..1.7] run tag @p[gamemode=!spectator,distance=..1.7] add LandingTarget

# 演出
    particle dust 0.784 0.435 1 1 ~ ~ ~ 0.2 0.2 0.2 0 6
    playsound item.trident.return hostile @a ~ ~ ~ 1 0
    playsound item.chorus_fruit.teleport hostile @a ~ ~ ~ 0.6 2.0
    playsound entity.blaze.shoot hostile @a ~ ~ ~ 0.4 2

# 着弾
    execute if entity @s[tag=Landing] run function asset:mob/0129.lexiel/tick/skill_magic/3.skill_magic_landing

# 再起
    execute positioned ^ ^ ^0.5 if entity @s[tag=!Landing,distance=..30] run function asset:mob/0129.lexiel/tick/skill_magic/2.skill_magic_bullet


text:
#> asset:mob/0129.lexiel/tick/skill_magic/4.skill_magic_look_player
#
# プレイヤーを見る
#
# @within function asset:mob/0129.lexiel/tick/skill_magic/1.skill_magic

# アマスタにタグを付与
    tag @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] add 3L.ArmorStandThis
# プレイヤーを見る
    tp @s ~ ~ ~ facing entity @p[gamemode=!spectator] feet
# アマスタを持ってきてタグを消す
    tp @e[type=armor_stand,tag=3L.ArmorStandThis,sort=nearest,limit=1] @s
    tag @e[type=armor_stand,tag=3L.ArmorStandThis,sort=nearest,limit=1] remove 3L.ArmorStandThis


text:
#> asset:mob/0129.lexiel/tick/skill_magic/1.skill_magic
#
# 魔法攻撃。3回撃つ
#
# @within function asset:mob/0129.lexiel/tick/2.3.skill_active
# ポーズ
    execute if score @s 3L.Tick matches 85 run item replace entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] armor.head with stone{CustomModelData:20042}
    execute if score @s 3L.Tick matches 85 run item replace entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] weapon with stone{CustomModelData:20035}
    execute if score @s 3L.Tick matches 85 run data modify entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.LeftArm set value [267f,28f,0f]
    execute if score @s 3L.Tick matches 85 run data modify entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [267f,334f,0f]

# 攻撃
    execute if score @s 3L.Tick matches 100 positioned ~ ~1.4 ~ run function asset:mob/0129.lexiel/tick/skill_magic/2.skill_magic_bullet
# タグを消す
    tag @s remove Landing
# プレイヤーを向く
    execute if score @s 3L.Tick matches 100 run function asset:mob/0129.lexiel/tick/skill_magic/4.skill_magic_look_player

# 攻撃二回目
    execute if score @s 3L.Tick matches 110 positioned ~ ~1.4 ~ run function asset:mob/0129.lexiel/tick/skill_magic/2.skill_magic_bullet
# タグを消す
    tag @s remove Landing
# プレイヤーを向く
    execute if score @s 3L.Tick matches 110 run function asset:mob/0129.lexiel/tick/skill_magic/4.skill_magic_look_player

# 攻撃三回目
    execute if score @s 3L.Tick matches 120 positioned ~ ~1.4 ~ run function asset:mob/0129.lexiel/tick/skill_magic/2.skill_magic_bullet
# タグを消す
    tag @s remove Landing

# タグを消す
    execute if score @s 3L.Tick matches 130 run tag @s remove 3L.SkillMagic
# スコアを戻す
    execute if score @s 3L.Tick matches 130 run scoreboard players set @s 3L.Tick 0


text:
#> asset:mob/0129.lexiel/tick/skill_magic/3.skill_magic_landing
#
# ダメージ処理
#
# @within function asset:mob/0129.lexiel/tick/skill_magic/2.skill_magic_bullet

# 演出
    particle minecraft:explosion ~ ~ ~ 0.3 0 0.3 0 10
    particle minecraft:large_smoke ~ ~ ~ 0 0 0 0.4 100

    playsound entity.lightning_bolt.impact hostile @a ~ ~ ~ 1 0 1

# ダメージ設定
    # 与えるダメージ
        data modify storage lib: Argument.Damage set value 22.5f
    # 魔法属性
        data modify storage lib: Argument.AttackType set value "Magic"
    # 雷属性
        data modify storage lib: Argument.ElementType set value "None"
    # ダメージ
        function lib:damage/modifier
        execute as @p[gamemode=!creative,tag=LandingTarget,distance=..50] at @s run function lib:damage/
# リセット
    function lib:damage/reset

# 着弾タグを消す
    tag @p[tag=LandingTarget,distance=..50] remove LandingTarget


text:
#> asset:mob/0129.lexiel/tick/skill_sword/1.skill_sword
#
# 剣技を使います
#
# @within function asset:mob/0129.lexiel/tick/2.3.skill_active

# ポーズ
    execute if score @s 3L.Tick matches 85 run item replace entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] armor.head with stone{CustomModelData:20041}
    execute if score @s 3L.Tick matches 85 run item replace entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] weapon with stone{CustomModelData:20036}
    execute if score @s 3L.Tick matches 85 run data modify entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.LeftArm set value [342f,217f,0f]
    execute if score @s 3L.Tick matches 85 run data modify entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [179f,326f,332f]

# 演出
    execute if score @s 3L.Tick matches 85 run playsound minecraft:entity.arrow.hit_player hostile @a ~ ~ ~ 1 1.6

# 攻撃判定
    execute if score @s 3L.Tick matches 100 run function asset:mob/0129.lexiel/tick/skill_sword/2.skill_sword_slash

# タグを消す
    execute if score @s 3L.Tick matches 110 run tag @s remove 3L.SkillSword
# スコアを少し進めた状態に戻す
    execute if score @s 3L.Tick matches 110 run scoreboard players set @s 3L.Tick 60


text:
#> asset:mob/0129.lexiel/tick/skill_sword/2.skill_sword_slash
#
# 剣の攻撃判定
#
# @within function asset:mob/0129.lexiel/tick/skill_sword/1.skill_sword

# 攻撃モーション
    item replace entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] armor.head with stone{CustomModelData:20040}
    data modify entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.LeftArm set value [342f,217f,0f]
    data modify entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [326f,0f,324f]

# 前方にいるプレイヤーにタグをつける
    execute positioned ^ ^ ^1.5 run tag @a[tag=!PlayerShouldInvulnerable,distance=..1.5] add 3L.SkillSwordDamageThis
    execute positioned ^ ^ ^3 run tag @a[tag=!PlayerShouldInvulnerable,distance=..1.5] add 3L.SkillSwordDamageThis
    execute positioned ^ ^ ^4.5 run tag @a[tag=!PlayerShouldInvulnerable,distance=..1.5] add 3L.SkillSwordDamageThis
    execute positioned ^ ^ ^6 run tag @a[tag=!PlayerShouldInvulnerable,distance=..1.5] add 3L.SkillSwordDamageThis
    execute positioned ^ ^ ^7.5 run tag @a[tag=!PlayerShouldInvulnerable,distance=..1.5] add 3L.SkillSwordDamageThis

# 演出
    execute positioned ~ ~1 ~ run particle sweep_attack ^ ^ ^1 0 0 0 1 2 normal
    execute positioned ~ ~1 ~ run particle sweep_attack ^ ^ ^2 0 0 0 1 2 normal
    execute positioned ~ ~1 ~ run particle sweep_attack ^ ^ ^3 0 0 0 1 2 normal
    execute positioned ~ ~1 ~ run particle sweep_attack ^ ^ ^4 0 0 0 1 2 normal
    execute positioned ~ ~1 ~ run particle sweep_attack ^ ^ ^5 0 0 0 1 2 normal
    execute positioned ~ ~1 ~ run particle sweep_attack ^ ^ ^6 0 0 0 1 2 normal
    execute positioned ~ ~1 ~ run particle sweep_attack ^ ^ ^7 0 0 0 1 2 normal
    execute positioned ~ ~1 ~ run particle sweep_attack ^ ^ ^8 0 0 0 1 2 normal
    execute positioned ~ ~1 ~ run particle sweep_attack ^ ^ ^9 0 0 0 1 2 normal
    playsound minecraft:item.trident.return hostile @a ~ ~ ~ 1 2

# 引数の設定
    # 与えるダメージ
        data modify storage lib: Argument.Damage set value 28.0f
    # 第一属性
        data modify storage lib: Argument.AttackType set value "Physical"
    # 第二属性
        data modify storage lib: Argument.ElementType set value "None"
# 補正functionを実行
    function lib:damage/modifier
# 前方にいたプレイヤーにダメージ
    execute as @a[tag=3L.SkillSwordDamageThis] run function lib:damage/
# リセット
    function lib:damage/reset
    tag @a[tag=3L.SkillSwordDamageThis] remove 3L.SkillSwordDamageThis

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


text:
#> asset:mob/0129.lexiel/tick/skill_explode/3.skill_explode_particle_and_damage2
#
#
#
# @within function asset:mob/0129.lexiel/tick/skill_explode/1.skill_explode

# 演出
    particle minecraft:explosion ~ ~ ~ 3 1 3 0 30
    particle minecraft:large_smoke ~ ~ ~ 0 0 0 0.4 100
    particle minecraft:lava ~ ~ ~ 3 1 3 0.42 100

    playsound entity.lightning_bolt.impact hostile @a ~ ~ ~ 1 0
    playsound entity.generic.explode hostile @a ~ ~ ~ 1 0

# ダメージ設定
    # 与えるダメージ
        data modify storage lib: Argument.Damage set value 37.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=!PlayerShouldInvulnerable,distance=..5] at @s run function lib:damage/
# リセット
    function lib:damage/reset


text:
#> asset:mob/0129.lexiel/tick/skill_explode/1.skill_explode
#
# 爆破魔法
#
# @within function asset:mob/0129.lexiel/tick/2.3.skill_active

# ポーズ
    execute if score @s 3L.Tick matches 85 run item replace entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] armor.head with stone{CustomModelData:20042}
    execute if score @s 3L.Tick matches 85 run item replace entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] weapon with stone{CustomModelData:20037}
    execute if score @s 3L.Tick matches 85 run data modify entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.LeftArm set value [30f,360f,28f]
    execute if score @s 3L.Tick matches 85 run data modify entity @e[type=armor_stand,tag=3L.ArmorStand,distance=..0.01,sort=nearest,limit=1] Pose.RightArm set value [205f,44f,0f]

# 魔法陣を表示するタグを付与
    execute if score @s 3L.Tick matches 85 run tag @s add 3L.SkillExplodeParticle

# 攻撃
    execute if score @s 3L.Tick matches 100 positioned ^ ^ ^5 positioned ~ ~7 ~ rotated ~ 0 run function asset:mob/0129.lexiel/tick/skill_explode/2.skill_explode_particle_and_damage
    execute if score @s 3L.Tick matches 105 positioned ^ ^ ^5 positioned ~ ~5 ~ rotated ~ 0 run function asset:mob/0129.lexiel/tick/skill_explode/2.skill_explode_particle_and_damage
    execute if score @s 3L.Tick matches 110 positioned ^ ^ ^5 positioned ~ ~2 ~ rotated ~ 0 run function asset:mob/0129.lexiel/tick/skill_explode/2.skill_explode_particle_and_damage
    execute if score @s 3L.Tick matches 115 positioned ^ ^ ^5 positioned ~ ~0.3 ~ rotated ~ 0 run function asset:mob/0129.lexiel/tick/skill_explode/3.skill_explode_particle_and_damage2

# タグを消す
    execute if score @s 3L.Tick matches 130 run tag @s remove 3L.SkillExplode
    execute if score @s 3L.Tick matches 130 run tag @s remove 3L.SkillExplodeParticle
# スコアを戻す
    execute if score @s 3L.Tick matches 130 run scoreboard players set @s 3L.Tick 0


text:
#> asset:mob/0129.lexiel/tick/skill_explode/2.skill_explode_particle_and_damage
#
#
#
# @within function asset:mob/0129.lexiel/tick/skill_explode/1.skill_explode

# 演出
    particle minecraft:explosion ~ ~ ~ 0.3 0 0.3 0 10
    particle minecraft:large_smoke ~ ~ ~ 0 0 0 0.4 100
    playsound entity.lightning_bolt.impact hostile @a ~ ~ ~ 1 0

# ダメージ設定
    # 与えるダメージ
        data modify storage lib: Argument.Damage set value 29.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=!PlayerShouldInvulnerable,distance=..2] at @s run function lib:damage/
# リセット
    function lib:damage/reset