text:
#> asset:artifact/0431.weather_lock_cane/trigger/vfx/rain
#
#
#
# @within function asset:artifact/0431.weather_lock_cane/trigger/3.main

# 演出
    particle dolphin ~ ~1.2 ~ 1.2 0.5 1.2 0 500 normal @s
    particle block light_blue_concrete_powder ~ ~2 ~ 1 2 1 0 300 normal @s
    playsound entity.player.splash.high_speed player @s ~ ~ ~ 0.8 1.2 0
    playsound entity.player.splash.high_speed player @s ~ ~ ~ 0.8 1.5 0
    playsound entity.generic.swim player @s ~ ~ ~ 0.8 1.5 0

    particle minecraft:cloud ~0 ~ ~-5.3 0 0 5.3 0.4 0 normal @s
    particle minecraft:cloud ~0.38688 ~ ~-5.28586 -0.38688 0 5.28586 0.4 0 normal @s
    particle minecraft:cloud ~0.77169 ~ ~-5.24352 -0.77169 0 5.24352 0.4 0 normal @s
    particle minecraft:cloud ~1.15238 ~ ~-5.1732 -1.15238 0 5.1732 0.4 0 normal @s
    particle minecraft:cloud ~1.52693 ~ ~-5.07528 -1.52693 0 5.07528 0.4 0 normal @s
    particle minecraft:cloud ~1.89332 ~ ~-4.95029 -1.89332 0 4.95029 0.4 0 normal @s
    particle minecraft:cloud ~2.24962 ~ ~-4.79888 -2.24962 0 4.79888 0.4 0 normal @s
    particle minecraft:cloud ~2.59391 ~ ~-4.62186 -2.59391 0 4.62186 0.4 0 normal @s
    particle minecraft:cloud ~2.92437 ~ ~-4.42019 -2.92437 0 4.42019 0.4 0 normal @s
    particle minecraft:cloud ~3.23922 ~ ~-4.19493 -3.23922 0 4.19493 0.4 0 normal @s
    particle minecraft:cloud ~3.53679 ~ ~-3.94729 -3.53679 0 3.94729 0.4 0 normal @s
    particle minecraft:cloud ~3.81549 ~ ~-3.67859 -3.81549 0 3.67859 0.4 0 normal @s
    particle minecraft:cloud ~4.07383 ~ ~-3.39027 -4.07383 0 3.39027 0.4 0 normal @s
    particle minecraft:cloud ~4.31044 ~ ~-3.08385 -4.31044 0 3.08385 0.4 0 normal @s
    particle minecraft:cloud ~4.52404 ~ ~-2.76098 -4.52404 0 2.76098 0.4 0 normal @s
    particle minecraft:cloud ~4.71351 ~ ~-2.42338 -4.71351 0 2.42338 0.4 0 normal @s
    particle minecraft:cloud ~4.87783 ~ ~-2.07286 -4.87783 0 2.07286 0.4 0 normal @s
    particle minecraft:cloud ~5.01613 ~ ~-1.71127 -5.01613 0 1.71127 0.4 0 normal @s
    particle minecraft:cloud ~5.12766 ~ ~-1.34055 -5.12766 0 1.34055 0.4 0 normal @s
    particle minecraft:cloud ~5.21184 ~ ~-0.96268 -5.21184 0 0.96268 0.4 0 normal @s
    particle minecraft:cloud ~5.26821 ~ ~-0.57967 -5.26821 0 0.57967 0.4 0 normal @s
    particle minecraft:cloud ~5.29646 ~ ~-0.19357 -5.29646 0 0.19357 0.4 0 normal @s
    particle minecraft:cloud ~5.29646 ~ ~0.19357 -5.29646 0 -0.19357 0.4 0 normal @s
    particle minecraft:cloud ~5.26821 ~ ~0.57967 -5.26821 0 -0.57967 0.4 0 normal @s
    particle minecraft:cloud ~5.21184 ~ ~0.96268 -5.21184 0 -0.96268 0.4 0 normal @s
    particle minecraft:cloud ~5.12766 ~ ~1.34055 -5.12766 0 -1.34055 0.4 0 normal @s
    particle minecraft:cloud ~5.01613 ~ ~1.71127 -5.01613 0 -1.71127 0.4 0 normal @s
    particle minecraft:cloud ~4.87783 ~ ~2.07286 -4.87783 0 -2.07286 0.4 0 normal @s
    particle minecraft:cloud ~4.71351 ~ ~2.42338 -4.71351 0 -2.42338 0.4 0 normal @s
    particle minecraft:cloud ~4.52404 ~ ~2.76098 -4.52404 0 -2.76098 0.4 0 normal @s
    particle minecraft:cloud ~4.31044 ~ ~3.08385 -4.31044 0 -3.08385 0.4 0 normal @s
    particle minecraft:cloud ~4.07383 ~ ~3.39027 -4.07383 0 -3.39027 0.4 0 normal @s
    particle minecraft:cloud ~3.81549 ~ ~3.67859 -3.81549 0 -3.67859 0.4 0 normal @s
    particle minecraft:cloud ~3.53679 ~ ~3.94729 -3.53679 0 -3.94729 0.4 0 normal @s
    particle minecraft:cloud ~3.23922 ~ ~4.19493 -3.23922 0 -4.19493 0.4 0 normal @s
    particle minecraft:cloud ~2.92437 ~ ~4.42019 -2.92437 0 -4.42019 0.4 0 normal @s
    particle minecraft:cloud ~2.59391 ~ ~4.62186 -2.59391 0 -4.62186 0.4 0 normal @s
    particle minecraft:cloud ~2.24962 ~ ~4.79888 -2.24962 0 -4.79888 0.4 0 normal @s
    particle minecraft:cloud ~1.89332 ~ ~4.95029 -1.89332 0 -4.95029 0.4 0 normal @s
    particle minecraft:cloud ~1.52693 ~ ~5.07528 -1.52693 0 -5.07528 0.4 0 normal @s
    particle minecraft:cloud ~1.15238 ~ ~5.1732 -1.15238 0 -5.1732 0.4 0 normal @s
    particle minecraft:cloud ~0.77169 ~ ~5.24352 -0.77169 0 -5.24352 0.4 0 normal @s
    particle minecraft:cloud ~0.38688 ~ ~5.28586 -0.38688 0 -5.28586 0.4 0 normal @s
    particle minecraft:cloud ~0 ~ ~5.3 0 0 -5.3 0.4 0 normal @s
    particle minecraft:cloud ~-0.38688 ~ ~5.28586 0.38688 0 -5.28586 0.4 0 normal @s
    particle minecraft:cloud ~-0.77169 ~ ~5.24352 0.77169 0 -5.24352 0.4 0 normal @s
    particle minecraft:cloud ~-1.15238 ~ ~5.1732 1.15238 0 -5.1732 0.4 0 normal @s
    particle minecraft:cloud ~-1.52693 ~ ~5.07528 1.52693 0 -5.07528 0.4 0 normal @s
    particle minecraft:cloud ~-1.89332 ~ ~4.95029 1.89332 0 -4.95029 0.4 0 normal @s
    particle minecraft:cloud ~-2.24962 ~ ~4.79888 2.24962 0 -4.79888 0.4 0 normal @s
    particle minecraft:cloud ~-2.59391 ~ ~4.62186 2.59391 0 -4.62186 0.4 0 normal @s
    particle minecraft:cloud ~-2.92437 ~ ~4.42019 2.92437 0 -4.42019 0.4 0 normal @s
    particle minecraft:cloud ~-3.23922 ~ ~4.19493 3.23922 0 -4.19493 0.4 0 normal @s
    particle minecraft:cloud ~-3.53679 ~ ~3.94729 3.53679 0 -3.94729 0.4 0 normal @s
    particle minecraft:cloud ~-3.81549 ~ ~3.67859 3.81549 0 -3.67859 0.4 0 normal @s
    particle minecraft:cloud ~-4.07383 ~ ~3.39027 4.07383 0 -3.39027 0.4 0 normal @s
    particle minecraft:cloud ~-4.31044 ~ ~3.08385 4.31044 0 -3.08385 0.4 0 normal @s
    particle minecraft:cloud ~-4.52404 ~ ~2.76098 4.52404 0 -2.76098 0.4 0 normal @s
    particle minecraft:cloud ~-4.71351 ~ ~2.42338 4.71351 0 -2.42338 0.4 0 normal @s
    particle minecraft:cloud ~-4.87783 ~ ~2.07286 4.87783 0 -2.07286 0.4 0 normal @s
    particle minecraft:cloud ~-5.01613 ~ ~1.71127 5.01613 0 -1.71127 0.4 0 normal @s
    particle minecraft:cloud ~-5.12766 ~ ~1.34055 5.12766 0 -1.34055 0.4 0 normal @s
    particle minecraft:cloud ~-5.21184 ~ ~0.96268 5.21184 0 -0.96268 0.4 0 normal @s
    particle minecraft:cloud ~-5.26821 ~ ~0.57967 5.26821 0 -0.57967 0.4 0 normal @s
    particle minecraft:cloud ~-5.29646 ~ ~0.19357 5.29646 0 -0.19357 0.4 0 normal @s
    particle minecraft:cloud ~-5.29646 ~ ~-0.19357 5.29646 0 0.19357 0.4 0 normal @s
    particle minecraft:cloud ~-5.26821 ~ ~-0.57967 5.26821 0 0.57967 0.4 0 normal @s
    particle minecraft:cloud ~-5.21184 ~ ~-0.96268 5.21184 0 0.96268 0.4 0 normal @s
    particle minecraft:cloud ~-5.12766 ~ ~-1.34055 5.12766 0 1.34055 0.4 0 normal @s
    particle minecraft:cloud ~-5.01613 ~ ~-1.71127 5.01613 0 1.71127 0.4 0 normal @s
    particle minecraft:cloud ~-4.87783 ~ ~-2.07286 4.87783 0 2.07286 0.4 0 normal @s
    particle minecraft:cloud ~-4.71351 ~ ~-2.42338 4.71351 0 2.42338 0.4 0 normal @s
    particle minecraft:cloud ~-4.52404 ~ ~-2.76098 4.52404 0 2.76098 0.4 0 normal @s
    particle minecraft:cloud ~-4.31044 ~ ~-3.08385 4.31044 0 3.08385 0.4 0 normal @s
    particle minecraft:cloud ~-4.07383 ~ ~-3.39027 4.07383 0 3.39027 0.4 0 normal @s
    particle minecraft:cloud ~-3.81549 ~ ~-3.67859 3.81549 0 3.67859 0.4 0 normal @s
    particle minecraft:cloud ~-3.53679 ~ ~-3.94729 3.53679 0 3.94729 0.4 0 normal @s
    particle minecraft:cloud ~-3.23922 ~ ~-4.19493 3.23922 0 4.19493 0.4 0 normal @s
    particle minecraft:cloud ~-2.92437 ~ ~-4.42019 2.92437 0 4.42019 0.4 0 normal @s
    particle minecraft:cloud ~-2.59391 ~ ~-4.62186 2.59391 0 4.62186 0.4 0 normal @s
    particle minecraft:cloud ~-2.24962 ~ ~-4.79888 2.24962 0 4.79888 0.4 0 normal @s
    particle minecraft:cloud ~-1.89332 ~ ~-4.95029 1.89332 0 4.95029 0.4 0 normal @s
    particle minecraft:cloud ~-1.52693 ~ ~-5.07528 1.52693 0 5.07528 0.4 0 normal @s
    particle minecraft:cloud ~-1.15238 ~ ~-5.1732 1.15238 0 5.1732 0.4 0 normal @s
    particle minecraft:cloud ~-0.77169 ~ ~-5.24352 0.77169 0 5.24352 0.4 0 normal @s
    particle minecraft:cloud ~-0.38688 ~ ~-5.28586 0.38688 0 5.28586 0.4 0 normal @s
    particle minecraft:cloud ~0 ~ ~-4.2 0 0 4.2 0.4 0 normal @s
    particle minecraft:cloud ~0.35618 ~ ~-4.18487 -0.35618 0 4.18487 0.4 0 normal @s
    particle minecraft:cloud ~0.7098 ~ ~-4.13959 -0.7098 0 4.13959 0.4 0 normal @s
    particle minecraft:cloud ~1.05831 ~ ~-4.06448 -1.05831 0 4.06448 0.4 0 normal @s
    particle minecraft:cloud ~1.39919 ~ ~-3.96009 -1.39919 0 3.96009 0.4 0 normal @s
    particle minecraft:cloud ~1.72999 ~ ~-3.82716 -1.72999 0 3.82716 0.4 0 normal @s
    particle minecraft:cloud ~2.04832 ~ ~-3.66666 -2.04832 0 3.66666 0.4 0 normal @s
    particle minecraft:cloud ~2.35189 ~ ~-3.47974 -2.35189 0 3.47974 0.4 0 normal @s
    particle minecraft:cloud ~2.63852 ~ ~-3.26775 -2.63852 0 3.26775 0.4 0 normal @s
    particle minecraft:cloud ~2.90614 ~ ~-3.03222 -2.90614 0 3.03222 0.4 0 normal @s
    particle minecraft:cloud ~3.15282 ~ ~-2.77483 -3.15282 0 2.77483 0.4 0 normal @s
    particle minecraft:cloud ~3.37679 ~ ~-2.49746 -3.37679 0 2.49746 0.4 0 normal @s
    particle minecraft:cloud ~3.57642 ~ ~-2.20209 -3.57642 0 2.20209 0.4 0 normal @s
    particle minecraft:cloud ~3.75029 ~ ~-1.89086 -3.75029 0 1.89086 0.4 0 normal @s
    particle minecraft:cloud ~3.89713 ~ ~-1.566 -3.89713 0 1.566 0.4 0 normal @s
    particle minecraft:cloud ~4.0159 ~ ~-1.22986 -4.0159 0 1.22986 0.4 0 normal @s
    particle minecraft:cloud ~4.10573 ~ ~-0.88485 -4.10573 0 0.88485 0.4 0 normal @s
    particle minecraft:cloud ~4.16598 ~ ~-0.53347 -4.16598 0 0.53347 0.4 0 normal @s
    particle minecraft:cloud ~4.19622 ~ ~-0.17825 -4.19622 0 0.17825 0.4 0 normal @s
    particle minecraft:cloud ~4.19622 ~ ~0.17825 -4.19622 0 -0.17825 0.4 0 normal @s
    particle minecraft:cloud ~4.16598 ~ ~0.53347 -4.16598 0 -0.53347 0.4 0 normal @s
    particle minecraft:cloud ~4.10573 ~ ~0.88485 -4.10573 0 -0.88485 0.4 0 normal @s
    particle minecraft:cloud ~4.0159 ~ ~1.22986 -4.0159 0 -1.22986 0.4 0 normal @s
    particle minecraft:cloud ~3.89713 ~ ~1.566 -3.89713 0 -1.566 0.4 0 normal @s
    particle minecraft:cloud ~3.75029 ~ ~1.89086 -3.75029 0 -1.89086 0.4 0 normal @s
    particle minecraft:cloud ~3.57642 ~ ~2.20209 -3.57642 0 -2.20209 0.4 0 normal @s
    particle minecraft:cloud ~3.37679 ~ ~2.49746 -3.37679 0 -2.49746 0.4 0 normal @s
    particle minecraft:cloud ~3.15282 ~ ~2.77483 -3.15282 0 -2.77483 0.4 0 normal @s
    particle minecraft:cloud ~2.90614 ~ ~3.03222 -2.90614 0 -3.03222 0.4 0 normal @s
    particle minecraft:cloud ~2.63852 ~ ~3.26775 -2.63852 0 -3.26775 0.4 0 normal @s
    particle minecraft:cloud ~2.35189 ~ ~3.47974 -2.35189 0 -3.47974 0.4 0 normal @s
    particle minecraft:cloud ~2.04832 ~ ~3.66666 -2.04832 0 -3.66666 0.4 0 normal @s
    particle minecraft:cloud ~1.72999 ~ ~3.82716 -1.72999 0 -3.82716 0.4 0 normal @s
    particle minecraft:cloud ~1.39919 ~ ~3.96009 -1.39919 0 -3.96009 0.4 0 normal @s
    particle minecraft:cloud ~1.05831 ~ ~4.06448 -1.05831 0 -4.06448 0.4 0 normal @s
    particle minecraft:cloud ~0.7098 ~ ~4.13959 -0.7098 0 -4.13959 0.4 0 normal @s
    particle minecraft:cloud ~0.35618 ~ ~4.18487 -0.35618 0 -4.18487 0.4 0 normal @s
    particle minecraft:cloud ~0 ~ ~4.2 0 0 -4.2 0.4 0 normal @s
    particle minecraft:cloud ~-0.35618 ~ ~4.18487 0.35618 0 -4.18487 0.4 0 normal @s
    particle minecraft:cloud ~-0.7098 ~ ~4.13959 0.7098 0 -4.13959 0.4 0 normal @s
    particle minecraft:cloud ~-1.05831 ~ ~4.06448 1.05831 0 -4.06448 0.4 0 normal @s
    particle minecraft:cloud ~-1.39919 ~ ~3.96009 1.39919 0 -3.96009 0.4 0 normal @s
    particle minecraft:cloud ~-1.72999 ~ ~3.82716 1.72999 0 -3.82716 0.4 0 normal @s
    particle minecraft:cloud ~-2.04832 ~ ~3.66666 2.04832 0 -3.66666 0.4 0 normal @s
    particle minecraft:cloud ~-2.35189 ~ ~3.47974 2.35189 0 -3.47974 0.4 0 normal @s
    particle minecraft:cloud ~-2.63852 ~ ~3.26775 2.63852 0 -3.26775 0.4 0 normal @s
    particle minecraft:cloud ~-2.90614 ~ ~3.03222 2.90614 0 -3.03222 0.4 0 normal @s
    particle minecraft:cloud ~-3.15282 ~ ~2.77483 3.15282 0 -2.77483 0.4 0 normal @s
    particle minecraft:cloud ~-3.37679 ~ ~2.49746 3.37679 0 -2.49746 0.4 0 normal @s
    particle minecraft:cloud ~-3.57642 ~ ~2.20209 3.57642 0 -2.20209 0.4 0 normal @s
    particle minecraft:cloud ~-3.75029 ~ ~1.89086 3.75029 0 -1.89086 0.4 0 normal @s
    particle minecraft:cloud ~-3.89713 ~ ~1.566 3.89713 0 -1.566 0.4 0 normal @s
    particle minecraft:cloud ~-4.0159 ~ ~1.22986 4.0159 0 -1.22986 0.4 0 normal @s
    particle minecraft:cloud ~-4.10573 ~ ~0.88485 4.10573 0 -0.88485 0.4 0 normal @s
    particle minecraft:cloud ~-4.16598 ~ ~0.53347 4.16598 0 -0.53347 0.4 0 normal @s
    particle minecraft:cloud ~-4.19622 ~ ~0.17825 4.19622 0 -0.17825 0.4 0 normal @s
    particle minecraft:cloud ~-4.19622 ~ ~-0.17825 4.19622 0 0.17825 0.4 0 normal @s
    particle minecraft:cloud ~-4.16598 ~ ~-0.53347 4.16598 0 0.53347 0.4 0 normal @s
    particle minecraft:cloud ~-4.10573 ~ ~-0.88485 4.10573 0 0.88485 0.4 0 normal @s
    particle minecraft:cloud ~-4.0159 ~ ~-1.22986 4.0159 0 1.22986 0.4 0 normal @s
    particle minecraft:cloud ~-3.89713 ~ ~-1.566 3.89713 0 1.566 0.4 0 normal @s
    particle minecraft:cloud ~-3.75029 ~ ~-1.89086 3.75029 0 1.89086 0.4 0 normal @s
    particle minecraft:cloud ~-3.57642 ~ ~-2.20209 3.57642 0 2.20209 0.4 0 normal @s
    particle minecraft:cloud ~-3.37679 ~ ~-2.49746 3.37679 0 2.49746 0.4 0 normal @s
    particle minecraft:cloud ~-3.15282 ~ ~-2.77483 3.15282 0 2.77483 0.4 0 normal @s
    particle minecraft:cloud ~-2.90614 ~ ~-3.03222 2.90614 0 3.03222 0.4 0 normal @s
    particle minecraft:cloud ~-2.63852 ~ ~-3.26775 2.63852 0 3.26775 0.4 0 normal @s
    particle minecraft:cloud ~-2.35189 ~ ~-3.47974 2.35189 0 3.47974 0.4 0 normal @s
    particle minecraft:cloud ~-2.04832 ~ ~-3.66666 2.04832 0 3.66666 0.4 0 normal @s
    particle minecraft:cloud ~-1.72999 ~ ~-3.82716 1.72999 0 3.82716 0.4 0 normal @s
    particle minecraft:cloud ~-1.39919 ~ ~-3.96009 1.39919 0 3.96009 0.4 0 normal @s
    particle minecraft:cloud ~-1.05831 ~ ~-4.06448 1.05831 0 4.06448 0.4 0 normal @s
    particle minecraft:cloud ~-0.7098 ~ ~-4.13959 0.7098 0 4.13959 0.4 0 normal @s
    particle minecraft:cloud ~-0.35618 ~ ~-4.18487 0.35618 0 4.18487 0.4 0 normal @s
    particle minecraft:cloud ~0 ~ ~-3 0 0 3 0.4 0 normal @s
    particle minecraft:cloud ~0.2987 ~ ~-2.98509 -0.2987 0 2.98509 0.4 0 normal @s
    particle minecraft:cloud ~0.59444 ~ ~-2.94052 -0.59444 0 2.94052 0.4 0 normal @s
    particle minecraft:cloud ~0.88427 ~ ~-2.86672 -0.88427 0 2.86672 0.4 0 normal @s
    particle minecraft:cloud ~1.1653 ~ ~-2.76443 -1.1653 0 2.76443 0.4 0 normal @s
    particle minecraft:cloud ~1.43476 ~ ~-2.63466 -1.43476 0 2.63466 0.4 0 normal @s
    particle minecraft:cloud ~1.68996 ~ ~-2.47872 -1.68996 0 2.47872 0.4 0 normal @s
    particle minecraft:cloud ~1.92836 ~ ~-2.29813 -1.92836 0 2.29813 0.4 0 normal @s
    particle minecraft:cloud ~2.1476 ~ ~-2.09471 -2.1476 0 2.09471 0.4 0 normal @s
    particle minecraft:cloud ~2.34549 ~ ~-1.87047 -2.34549 0 1.87047 0.4 0 normal @s
    particle minecraft:cloud ~2.52008 ~ ~-1.62764 -2.52008 0 1.62764 0.4 0 normal @s
    particle minecraft:cloud ~2.66962 ~ ~-1.36863 -2.66962 0 1.36863 0.4 0 normal @s
    particle minecraft:cloud ~2.79262 ~ ~-1.09602 -2.79262 0 1.09602 0.4 0 normal @s
    particle minecraft:cloud ~2.88787 ~ ~-0.81252 -2.88787 0 0.81252 0.4 0 normal @s
    particle minecraft:cloud ~2.95442 ~ ~-0.52094 -2.95442 0 0.52094 0.4 0 normal @s
    particle minecraft:cloud ~2.99161 ~ ~-0.22419 -2.99161 0 0.22419 0.4 0 normal @s
    particle minecraft:cloud ~2.99907 ~ ~0.07479 -2.99907 0 -0.07479 0.4 0 normal @s
    particle minecraft:cloud ~2.97672 ~ ~0.37303 -2.97672 0 -0.37303 0.4 0 normal @s
    particle minecraft:cloud ~2.92478 ~ ~0.66756 -2.92478 0 -0.66756 0.4 0 normal @s
    particle minecraft:cloud ~2.84378 ~ ~0.95546 -2.84378 0 -0.95546 0.4 0 normal @s
    particle minecraft:cloud ~2.73452 ~ ~1.23386 -2.73452 0 -1.23386 0.4 0 normal @s
    particle minecraft:cloud ~2.59808 ~ ~1.5 -2.59808 0 -1.5 0.4 0 normal @s
    particle minecraft:cloud ~2.43581 ~ ~1.75123 -2.43581 0 -1.75123 0.4 0 normal @s
    particle minecraft:cloud ~2.24934 ~ ~1.98506 -2.24934 0 -1.98506 0.4 0 normal @s
    particle minecraft:cloud ~2.04052 ~ ~2.19916 -2.04052 0 -2.19916 0.4 0 normal @s
    particle minecraft:cloud ~1.81141 ~ ~2.3914 -1.81141 0 -2.3914 0.4 0 normal @s
    particle minecraft:cloud ~1.56431 ~ ~2.55987 -1.56431 0 -2.55987 0.4 0 normal @s
    particle minecraft:cloud ~1.30165 ~ ~2.70291 -1.30165 0 -2.70291 0.4 0 normal @s
    particle minecraft:cloud ~1.02606 ~ ~2.81908 -1.02606 0 -2.81908 0.4 0 normal @s
    particle minecraft:cloud ~0.74027 ~ ~2.90723 -0.74027 0 -2.90723 0.4 0 normal @s
    particle minecraft:cloud ~0.44713 ~ ~2.96649 -0.44713 0 -2.96649 0.4 0 normal @s
    particle minecraft:cloud ~0.14954 ~ ~2.99627 -0.14954 0 -2.99627 0.4 0 normal @s
    particle minecraft:cloud ~-0.14954 ~ ~2.99627 0.14954 0 -2.99627 0.4 0 normal @s
    particle minecraft:cloud ~-0.44713 ~ ~2.96649 0.44713 0 -2.96649 0.4 0 normal @s
    particle minecraft:cloud ~-0.74027 ~ ~2.90723 0.74027 0 -2.90723 0.4 0 normal @s
    particle minecraft:cloud ~-1.02606 ~ ~2.81908 1.02606 0 -2.81908 0.4 0 normal @s
    particle minecraft:cloud ~-1.30165 ~ ~2.70291 1.30165 0 -2.70291 0.4 0 normal @s
    particle minecraft:cloud ~-1.56431 ~ ~2.55987 1.56431 0 -2.55987 0.4 0 normal @s
    particle minecraft:cloud ~-1.81141 ~ ~2.3914 1.81141 0 -2.3914 0.4 0 normal @s
    particle minecraft:cloud ~-2.04052 ~ ~2.19916 2.04052 0 -2.19916 0.4 0 normal @s
    particle minecraft:cloud ~-2.24934 ~ ~1.98506 2.24934 0 -1.98506 0.4 0 normal @s
    particle minecraft:cloud ~-2.43581 ~ ~1.75123 2.43581 0 -1.75123 0.4 0 normal @s
    particle minecraft:cloud ~-2.59808 ~ ~1.5 2.59808 0 -1.5 0.4 0 normal @s
    particle minecraft:cloud ~-2.73452 ~ ~1.23386 2.73452 0 -1.23386 0.4 0 normal @s
    particle minecraft:cloud ~-2.84378 ~ ~0.95546 2.84378 0 -0.95546 0.4 0 normal @s
    particle minecraft:cloud ~-2.92478 ~ ~0.66756 2.92478 0 -0.66756 0.4 0 normal @s
    particle minecraft:cloud ~-2.97672 ~ ~0.37303 2.97672 0 -0.37303 0.4 0 normal @s
    particle minecraft:cloud ~-2.99907 ~ ~0.07479 2.99907 0 -0.07479 0.4 0 normal @s
    particle minecraft:cloud ~-2.99161 ~ ~-0.22419 2.99161 0 0.22419 0.4 0 normal @s
    particle minecraft:cloud ~-2.95442 ~ ~-0.52094 2.95442 0 0.52094 0.4 0 normal @s
    particle minecraft:cloud ~-2.88787 ~ ~-0.81252 2.88787 0 0.81252 0.4 0 normal @s
    particle minecraft:cloud ~-2.79262 ~ ~-1.09602 2.79262 0 1.09602 0.4 0 normal @s
    particle minecraft:cloud ~-2.66962 ~ ~-1.36863 2.66962 0 1.36863 0.4 0 normal @s
    particle minecraft:cloud ~-2.52008 ~ ~-1.62764 2.52008 0 1.62764 0.4 0 normal @s
    particle minecraft:cloud ~-2.34549 ~ ~-1.87047 2.34549 0 1.87047 0.4 0 normal @s
    particle minecraft:cloud ~-2.1476 ~ ~-2.09471 2.1476 0 2.09471 0.4 0 normal @s
    particle minecraft:cloud ~-1.92836 ~ ~-2.29813 1.92836 0 2.29813 0.4 0 normal @s
    particle minecraft:cloud ~-1.68996 ~ ~-2.47872 1.68996 0 2.47872 0.4 0 normal @s
    particle minecraft:cloud ~-1.43476 ~ ~-2.63466 1.43476 0 2.63466 0.4 0 normal @s
    particle minecraft:cloud ~-1.1653 ~ ~-2.76443 1.1653 0 2.76443 0.4 0 normal @s
    particle minecraft:cloud ~-0.88427 ~ ~-2.86672 0.88427 0 2.86672 0.4 0 normal @s
    particle minecraft:cloud ~-0.59444 ~ ~-2.94052 0.59444 0 2.94052 0.4 0 normal @s
    particle minecraft:cloud ~-0.2987 ~ ~-2.98509 0.2987 0 2.98509 0.4 0 normal @s
    particle minecraft:cloud ~0 ~ ~-1.9 0 0 1.9 0.4 0 normal @s
    particle minecraft:cloud ~0.18918 ~ ~-1.89056 -0.18918 0 1.89056 0.4 0 normal @s
    particle minecraft:cloud ~0.37648 ~ ~-1.86233 -0.37648 0 1.86233 0.4 0 normal @s
    particle minecraft:cloud ~0.56003 ~ ~-1.81559 -0.56003 0 1.81559 0.4 0 normal @s
    particle minecraft:cloud ~0.73803 ~ ~-1.7508 -0.73803 0 1.7508 0.4 0 normal @s
    particle minecraft:cloud ~0.90868 ~ ~-1.66862 -0.90868 0 1.66862 0.4 0 normal @s
    particle minecraft:cloud ~1.07031 ~ ~-1.56985 -1.07031 0 1.56985 0.4 0 normal @s
    particle minecraft:cloud ~1.2213 ~ ~-1.45548 -1.2213 0 1.45548 0.4 0 normal @s
    particle minecraft:cloud ~1.36015 ~ ~-1.32665 -1.36015 0 1.32665 0.4 0 normal @s
    particle minecraft:cloud ~1.48548 ~ ~-1.18463 -1.48548 0 1.18463 0.4 0 normal @s
    particle minecraft:cloud ~1.59605 ~ ~-1.03084 -1.59605 0 1.03084 0.4 0 normal @s
    particle minecraft:cloud ~1.69076 ~ ~-0.8668 -1.69076 0 0.8668 0.4 0 normal @s
    particle minecraft:cloud ~1.76866 ~ ~-0.69415 -1.76866 0 0.69415 0.4 0 normal @s
    particle minecraft:cloud ~1.82899 ~ ~-0.5146 -1.82899 0 0.5146 0.4 0 normal @s
    particle minecraft:cloud ~1.87113 ~ ~-0.32993 -1.87113 0 0.32993 0.4 0 normal @s
    particle minecraft:cloud ~1.89469 ~ ~-0.14199 -1.89469 0 0.14199 0.4 0 normal @s
    particle minecraft:cloud ~1.89941 ~ ~0.04737 -1.89941 0 -0.04737 0.4 0 normal @s
    particle minecraft:cloud ~1.88525 ~ ~0.23625 -1.88525 0 -0.23625 0.4 0 normal @s
    particle minecraft:cloud ~1.85236 ~ ~0.42279 -1.85236 0 -0.42279 0.4 0 normal @s
    particle minecraft:cloud ~1.80106 ~ ~0.60512 -1.80106 0 -0.60512 0.4 0 normal @s
    particle minecraft:cloud ~1.73186 ~ ~0.78145 -1.73186 0 -0.78145 0.4 0 normal @s
    particle minecraft:cloud ~1.64545 ~ ~0.95 -1.64545 0 -0.95 0.4 0 normal @s
    particle minecraft:cloud ~1.54268 ~ ~1.10911 -1.54268 0 -1.10911 0.4 0 normal @s
    particle minecraft:cloud ~1.42458 ~ ~1.2572 -1.42458 0 -1.2572 0.4 0 normal @s
    particle minecraft:cloud ~1.29233 ~ ~1.3928 -1.29233 0 -1.3928 0.4 0 normal @s
    particle minecraft:cloud ~1.14723 ~ ~1.51455 -1.14723 0 -1.51455 0.4 0 normal @s
    particle minecraft:cloud ~0.99073 ~ ~1.62125 -0.99073 0 -1.62125 0.4 0 normal @s
    particle minecraft:cloud ~0.82438 ~ ~1.71184 -0.82438 0 -1.71184 0.4 0 normal @s
    particle minecraft:cloud ~0.64984 ~ ~1.78542 -0.64984 0 -1.78542 0.4 0 normal @s
    particle minecraft:cloud ~0.46884 ~ ~1.84125 -0.46884 0 -1.84125 0.4 0 normal @s
    particle minecraft:cloud ~0.28318 ~ ~1.87878 -0.28318 0 -1.87878 0.4 0 normal @s
    particle minecraft:cloud ~0.09471 ~ ~1.89764 -0.09471 0 -1.89764 0.4 0 normal @s
    particle minecraft:cloud ~-0.09471 ~ ~1.89764 0.09471 0 -1.89764 0.4 0 normal @s
    particle minecraft:cloud ~-0.28318 ~ ~1.87878 0.28318 0 -1.87878 0.4 0 normal @s
    particle minecraft:cloud ~-0.46884 ~ ~1.84125 0.46884 0 -1.84125 0.4 0 normal @s
    particle minecraft:cloud ~-0.64984 ~ ~1.78542 0.64984 0 -1.78542 0.4 0 normal @s
    particle minecraft:cloud ~-0.82438 ~ ~1.71184 0.82438 0 -1.71184 0.4 0 normal @s
    particle minecraft:cloud ~-0.99073 ~ ~1.62125 0.99073 0 -1.62125 0.4 0 normal @s
    particle minecraft:cloud ~-1.14723 ~ ~1.51455 1.14723 0 -1.51455 0.4 0 normal @s
    particle minecraft:cloud ~-1.29233 ~ ~1.3928 1.29233 0 -1.3928 0.4 0 normal @s
    particle minecraft:cloud ~-1.42458 ~ ~1.2572 1.42458 0 -1.2572 0.4 0 normal @s
    particle minecraft:cloud ~-1.54268 ~ ~1.10911 1.54268 0 -1.10911 0.4 0 normal @s
    particle minecraft:cloud ~-1.64545 ~ ~0.95 1.64545 0 -0.95 0.4 0 normal @s
    particle minecraft:cloud ~-1.73186 ~ ~0.78145 1.73186 0 -0.78145 0.4 0 normal @s
    particle minecraft:cloud ~-1.80106 ~ ~0.60512 1.80106 0 -0.60512 0.4 0 normal @s
    particle minecraft:cloud ~-1.85236 ~ ~0.42279 1.85236 0 -0.42279 0.4 0 normal @s
    particle minecraft:cloud ~-1.88525 ~ ~0.23625 1.88525 0 -0.23625 0.4 0 normal @s
    particle minecraft:cloud ~-1.89941 ~ ~0.04737 1.89941 0 -0.04737 0.4 0 normal @s
    particle minecraft:cloud ~-1.89469 ~ ~-0.14199 1.89469 0 0.14199 0.4 0 normal @s
    particle minecraft:cloud ~-1.87113 ~ ~-0.32993 1.87113 0 0.32993 0.4 0 normal @s
    particle minecraft:cloud ~-1.82899 ~ ~-0.5146 1.82899 0 0.5146 0.4 0 normal @s
    particle minecraft:cloud ~-1.76866 ~ ~-0.69415 1.76866 0 0.69415 0.4 0 normal @s
    particle minecraft:cloud ~-1.69076 ~ ~-0.8668 1.69076 0 0.8668 0.4 0 normal @s
    particle minecraft:cloud ~-1.59605 ~ ~-1.03084 1.59605 0 1.03084 0.4 0 normal @s
    particle minecraft:cloud ~-1.48548 ~ ~-1.18463 1.48548 0 1.18463 0.4 0 normal @s
    particle minecraft:cloud ~-1.36015 ~ ~-1.32665 1.36015 0 1.32665 0.4 0 normal @s
    particle minecraft:cloud ~-1.2213 ~ ~-1.45548 1.2213 0 1.45548 0.4 0 normal @s
    particle minecraft:cloud ~-1.07031 ~ ~-1.56985 1.07031 0 1.56985 0.4 0 normal @s
    particle minecraft:cloud ~-0.90868 ~ ~-1.66862 0.90868 0 1.66862 0.4 0 normal @s
    particle minecraft:cloud ~-0.73803 ~ ~-1.7508 0.73803 0 1.7508 0.4 0 normal @s
    particle minecraft:cloud ~-0.56003 ~ ~-1.81559 0.56003 0 1.81559 0.4 0 normal @s
    particle minecraft:cloud ~-0.37648 ~ ~-1.86233 0.37648 0 1.86233 0.4 0 normal @s
    particle minecraft:cloud ~-0.18918 ~ ~-1.89056 0.18918 0 1.89056 0.4 0 normal @s


text:
#> asset:artifact/0093.diamond_armor_set/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:93} run function asset:artifact/0093.diamond_armor_set/give/2.give

repo_name: ProjectTSB/TheSkyBlessing

repo_language: mcfunction

mime_type: text/plain


text:
#> asset:artifact/0093.diamond_armor_set/give/2.give
#
# 神器の作成部 ここでID等を定義する
#
# @user
# @within function asset:artifact/0093.diamond_armor_set/give/1.trigger

# 神器の説明や消費MPなどをここで設定する。
# 最後にasset:artifact/common/giveを実行することで入手可能。

# 神器のID (int) スプレッドシートの値を入れる
    data modify storage asset:artifact ID set value 93
# 神器のベースアイテム
    data modify storage asset:artifact Item set value "minecraft:carrot_on_a_stick"
# 神器の名前 (TextComponentString)
    data modify storage asset:artifact Name set value '{"text":"ダイヤ装備セット","italic":false}'
# 神器の説明文 (TextComponentString[])
    data modify storage asset:artifact Lore set value ['{"text":"エンチャント不可のダイヤ装備を装着する"}']
# MP以外の消費物 (TextComponentString) (オプション)
    # data modify storage asset:artifact CostText set value
# 使用回数 (int) (オプション)
    data modify storage asset:artifact RemainingCount set value 1
# 神器を発動できるスロット (string) Wikiを参照
    data modify storage asset:artifact Slot set value "auto"
# 神器のトリガー (string) Wikiを参照
    data modify storage asset:artifact Trigger set value "onClick"
# 神器の発動条件 (TextComponentString) (オプション)
    # data modify storage asset:artifact Condition set value
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.Damage set value [0,0]
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackType set value [Physical,Magic]
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.ElementType set value [Fire,Water,Thunder,None]
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.BypassResist set value
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.IsRangeAttack set value
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackRange set value
# MP消費量 (int)
    data modify storage asset:artifact MPCost set value 0
# MP必要量 (int) (オプション)
    data modify storage asset:artifact MPRequire set value 180
# 神器のクールダウン (int) (オプション)
    # data modify storage asset:artifact LocalCooldown set value
# グローバルクールダウン (int) (オプション)
    # data modify storage asset:artifact SpecialCooldown set value
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableCooldownMessage set value
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableMPMessage set value
# 扱える神 (string[]) Wikiを参照
    data modify storage asset:artifact CanUsedGod set value "ALL"
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
    # data modify storage asset:artifact CustomNBT set value {}

# 神器の入手用function
    function asset:artifact/common/give


text:
#> asset:artifact/0093.diamond_armor_set/trigger/2.check_condition
#
# 神器の発動条件をチェックします
#
# @within function asset:artifact/0093.diamond_armor_set/trigger/1.trigger

# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く auto/feet/legs/chest/head/mainhand/offhandを記載してね
    function asset:artifact/common/check_condition/auto
# 他にアイテム等確認する場合はここに書く

# CanUsedタグをチェックして3.main.mcfunctionを実行する
    execute if entity @s[tag=CanUsed] run function asset:artifact/0093.diamond_armor_set/trigger/3.main


text:
#> asset:artifact/0093.diamond_armor_set/trigger/3.main
#
# 神器のメイン処理部
#
# @within function asset:artifact/0093.diamond_armor_set/trigger/2.check_condition

# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う auto/feet/legs/chest/head/mainhand/offhandを記載してね
    function asset:artifact/common/use/auto

# ここから先は神器側の効果の処理を書く

# 装備変更成功の時
    execute unless data storage asset:context {Inventory:[{Slot:100b},{Slot:101b},{Slot:102b},{Slot:103b}]} run particle minecraft:happy_villager ~ ~1 ~ 0.4 0.4 0.4 0.1 50
    execute unless data storage asset:context {Inventory:[{Slot:100b},{Slot:101b},{Slot:102b},{Slot:103b}]} run playsound minecraft:block.anvil.land player @a ~ ~ ~ 1 2

# 装備変更失敗の時
    execute if data storage asset:context {Inventory:[{Slot:100b},{Slot:101b},{Slot:102b},{Slot:103b}]} run particle minecraft:smoke ~ ~1 ~ 0 0 0 0.1 50
    execute if data storage asset:context {Inventory:[{Slot:100b},{Slot:101b},{Slot:102b},{Slot:103b}]} run playsound minecraft:item.shield.break player @a ~ ~ ~ 1 0.5

# 装備返却処理
    execute if data storage asset:context {Inventory:[{Slot:103b}]} run summon item ~ ~ ~ {Motion:[0.0,0.1,0.0],Item:{id:"minecraft:diamond_helmet",Count:1b,tag:{display:{Name:'{"text":"簡易ダイヤ防具","italic":false}'},RepairCost:9999,Enchantments:[{}]}}}
    execute if data storage asset:context {Inventory:[{Slot:102b}]} run summon item ~ ~ ~ {Motion:[0.0,0.1,0.0],Item:{id:"minecraft:diamond_chestplate",Count:1b,tag:{display:{Name:'{"text":"簡易ダイヤ防具","italic":false}'},RepairCost:9999,Enchantments:[{}]}}}
    execute if data storage asset:context {Inventory:[{Slot:101b}]} run summon item ~ ~ ~ {Motion:[0.0,0.1,0.0],Item:{id:"minecraft:diamond_leggings",Count:1b,tag:{display:{Name:'{"text":"簡易ダイヤ防具","italic":false}'},RepairCost:9999,Enchantments:[{}]}}}
    execute if data storage asset:context {Inventory:[{Slot:100b}]} run summon item ~ ~ ~ {Motion:[0.0,0.1,0.0],Item:{id:"minecraft:diamond_boots",Count:1b,tag:{display:{Name:'{"text":"簡易ダイヤ防具","italic":false}'},RepairCost:9999,Enchantments:[{}]}}}

# 装備変更
    execute unless data storage asset:context {Inventory:[{Slot:103b}]} run item replace entity @s armor.head with minecraft:diamond_helmet{display:{Name:'{"text":"簡易ダイヤ防具","italic":false}'},RepairCost:9999,Enchantments:[{}]} 1
    execute unless data storage asset:context {Inventory:[{Slot:102b}]} run item replace entity @s armor.chest with minecraft:diamond_chestplate{display:{Name:'{"text":"簡易ダイヤ防具","italic":false}'},RepairCost:9999,Enchantments:[{}]} 1
    execute unless data storage asset:context {Inventory:[{Slot:101b}]} run item replace entity @s armor.legs with minecraft:diamond_leggings{display:{Name:'{"text":"簡易ダイヤ防具","italic":false}'},RepairCost:9999,Enchantments:[{}]} 1
    execute unless data storage asset:context {Inventory:[{Slot:100b}]} run item replace entity @s armor.feet with minecraft:diamond_boots{display:{Name:'{"text":"簡易ダイヤ防具","italic":false}'},RepairCost:9999,Enchantments:[{}]} 1


text:
#> asset:artifact/0093.diamond_armor_set/trigger/1.trigger
#
# 指定したイベントタイミングで実行されるfunction
#
# @within tag/function asset:artifact/**

# storage asset:idのauto/feet/legs/chest/head/mainhand/offhandに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
    execute if data storage asset:context id{auto:93} run function asset:artifact/0093.diamond_armor_set/trigger/2.check_condition


text:
#> asset:artifact/0605.ambition/register
#
# 神器プールへの登録処理
#
# @within tag/function asset:artifact/register

data modify storage asset:artifact RarityRegistry[4] append value 605


text:
#> asset:artifact/0605.ambition/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:605} run function asset:artifact/0605.ambition/give/2.give


text:
#> asset:artifact/0605.ambition/give/2.give
#
# 神器の作成部 ここでID等を定義する
#
# @user
# @within function asset:artifact/0605.ambition/give/1.trigger

# 神器の説明や消費MPなどをここで設定する。
# 最後にasset:artifact/common/giveを実行することで入手可能。

# 神器のID (int) スプレッドシートの値を入れる
    data modify storage asset:artifact ID set value 605
# 神器のベースアイテム
    data modify storage asset:artifact Item set value "minecraft:iron_axe"
# 神器の名前 (TextComponentString)
    data modify storage asset:artifact Name set value '{"text":"下克上", "color":"dark_red"}'
# 神器の説明文 (TextComponentString[])
    data modify storage asset:artifact Lore set value ['{"text":"失ったものが多ければ多いほど","color":"white"}','[{"text":"強さ","color":"red"},{"text":"を増すと伝えられている斧","color":"white"}]','[{"text":"偉業","color":"yellow"},{"text":"を成し遂げ、失ったものを再び","color":"white"}]','[{"text":"手に入れた時、この力は弱まる","color":"white"}]']
# MP以外の消費物 (TextComponentString) (オプション)
    # data modify storage asset:artifact CostText set value
# 使用回数 (int) (オプション)
    # data modify storage asset:artifact RemainingCount set value
# 神器を発動できるスロット (string) Wikiを参照
    data modify storage asset:artifact Slot set value "mainhand"
# 神器のトリガー (string) Wikiを参照
    data modify storage asset:artifact Trigger set value "onAttackByMelee"
# 神器の発動条件 (TextComponentString) (オプション)
    # data modify storage asset:artifact Condition set value
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.Damage set value []
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
    data modify storage asset:artifact AttackInfo.AttackType set value [Physical]
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
    data modify storage asset:artifact AttackInfo.ElementType set value [None]
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.BypassResist set value
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
    data modify storage asset:artifact AttackInfo.IsRangeAttack set value "never"
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackRange set value
# MP消費量 (int)
    data modify storage asset:artifact MPCost set value 20
# MP必要量 (int) (オプション)
    # data modify storage asset:artifact MPRequire set value
# 神器のクールダウン (int) (オプション)
    # data modify storage asset:artifact LocalCooldown set value
# グローバルクールダウン (int) (オプション)
    # data modify storage asset:artifact SpecialCooldown set value
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableCooldownMessage set value
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableMPMessage set value
# 扱える神 (string[]) Wikiを参照
    data modify storage asset:artifact CanUsedGod set value ["Urban", "Rumor"]
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
    # data modify storage asset:artifact CustomNBT set value {}

# 神器の入手用function
    function asset:artifact/common/give


text:
#> asset:artifact/0605.ambition/trigger/2.check_condition
#
# 神器の発動条件をチェックします
#
# @within function asset:artifact/0605.ambition/trigger/1.trigger

# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く
    function asset:artifact/common/check_condition/mainhand
# 他にアイテム等確認する場合はここに書く

# CanUsedタグをチェックして3.main.mcfunctionを実行する
    execute if entity @s[tag=CanUsed] run function asset:artifact/0605.ambition/trigger/3.main


text:
#> asset:artifact/0605.ambition/trigger/3.main
#
# 神器のメイン処理部
#
# @within function asset:artifact/0605.ambition/trigger/2.check_condition

# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う
    function asset:artifact/common/use/mainhand

# ここから先は神器側の効果の処理を書く

# 没収されたアイテムの個数を取得
    execute store result score @s Temporary run function api:lost_items/get_length

# 没収されたアイテム * 4の値を設定
    scoreboard players operation @s Temporary *= $4 Const

# 最大値をきめる
    execute if score @s Temporary matches 2300.. run scoreboard players set @s Temporary 2300

# ダメージ
    # 与えるダメージ
        execute store result storage lib: Argument.Damage float 1 run scoreboard players get @s Temporary
    # 第一属性
        data modify storage lib: Argument.AttackType set value "Physical"
    # 第二属性
        data modify storage lib: Argument.ElementType set value "None"
    # 補正functionを実行
        function lib:damage/modifier
    # 攻撃したモブ1体を対象に
        execute as @e[type=#lib:living,type=!player,tag=Victim] run function lib:damage/

# リセット
    scoreboard players reset @s Temporary
    function lib:damage/reset


text:
#> asset:artifact/0605.ambition/trigger/1.trigger
#
# 指定したイベントタイミングで実行されるfunction
#
# @within tag/function asset:artifact/**

# storage asset:idのmainhandに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
    execute if data storage asset:context id{mainhand:605} run function asset:artifact/0605.ambition/trigger/2.check_condition


text:
#> asset:artifact/0322.ice_cane/register
#
# 神器プールへの登録処理
#
# @within tag/function asset:artifact/register

data modify storage asset:artifact RarityRegistry[1] append value 322


text:
#> asset:artifact/0322.ice_cane/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:322} run function asset:artifact/0322.ice_cane/give/2.give


text:
#> asset:artifact/0322.ice_cane/give/2.give
#
# 神器の作成部 ここでID等を定義する
#
# @user
# @within function asset:artifact/0322.ice_cane/give/1.trigger

# 神器の説明や消費MPなどをここで設定する。
# 最後にasset:artifact/common/giveを実行することで入手可能。

# 神器のID (int) スプレッドシートの値を入れる
    data modify storage asset:artifact ID set value 322
# 神器のベースアイテム
    data modify storage asset:artifact Item set value "minecraft:carrot_on_a_stick"
# 神器の名前 (TextComponentString)
    data modify storage asset:artifact Name set value '{"text":"アイスステッキ","color":"aqua"}'
# 神器の説明文 (TextComponentString[])
    data modify storage asset:artifact Lore set value ['[{"text":"周囲の"},{"text":"水","color":"dark_aqua"},{"text":"を","color":"white"},{"text":"氷ブロック","color":"dark_aqua"},{"text":"に","color":"white"}]','[{"text":"氷ブロック","color":"dark_aqua"},{"text":"を","color":"white"},{"text":"氷塊ブロック","color":"dark_aqua"},{"text":"に","color":"white"}]','[{"text":"氷塊ブロック","color":"dark_aqua"},{"text":"を","color":"white"},{"text":"青氷ブロック","color":"dark_aqua"},{"text":"にする。","color":"white"}]']
# MP以外の消費物 (TextComponentString) (オプション)
    # data modify storage asset:artifact CostText set value
# 使用回数 (int) (オプション)
    # data modify storage asset:artifact RemainingCount set value
# 神器を発動できるスロット (string) Wikiを参照
    data modify storage asset:artifact Slot set value "auto"
# 神器のトリガー (string) Wikiを参照
    data modify storage asset:artifact Trigger set value "onClick"
# 神器の発動条件 (TextComponentString) (オプション)
    # data modify storage asset:artifact Condition set value
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.Damage set value [0,0]
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackType set value [Physical,Magic]
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.ElementType set value [Fire,Water,Thunder,None]
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.BypassResist set value
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.IsRangeAttack set value
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackRange set value
# MP消費量 (int)
    data modify storage asset:artifact MPCost set value 5
# MP必要量 (int) (オプション)
    # data modify storage asset:artifact MPRequire set value
# 神器のクールダウン (int) (オプション)
    data modify storage asset:artifact LocalCooldown set value 40
# グローバルクールダウン (int) (オプション)
    # data modify storage asset:artifact SpecialCooldown set value
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableCooldownMessage set value
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableMPMessage set value
# 扱える神 (string[]) Wikiを参照
    data modify storage asset:artifact CanUsedGod set value ["Flora", "Nyaptov", "Wi-ki"]
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
    # data modify storage asset:artifact CustomNBT set value {}

# 神器の入手用function
    function asset:artifact/common/give


text:
#> asset:artifact/0322.ice_cane/trigger/2.check_condition
#
# 神器の発動条件をチェックします
#
# @within function asset:artifact/0322.ice_cane/trigger/1.trigger

# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く auto/feet/legs/chest/head/mainhand/offhandを記載してね
    function asset:artifact/common/check_condition/auto
# 他にアイテム等確認する場合はここに書く

# プレイヤーのゲームモードがサバイバル・クリエイティブの時にのみ使用可能
    execute if entity @s[gamemode=!survival,gamemode=!creative] run tag @s remove CanUsed
    execute if entity @s[gamemode=!survival,gamemode=!creative] run function lib:message/artifact/can_not_use_here

# CanUsedタグをチェックして3.main.mcfunctionを実行する
    execute if entity @s[tag=CanUsed] run function asset:artifact/0322.ice_cane/trigger/3.main


text:
#> asset:artifact/0322.ice_cane/trigger/3.main
#
# 神器のメイン処理部
#
# @within function asset:artifact/0322.ice_cane/trigger/2.check_condition

# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う auto/feet/legs/chest/head/mainhand/offhandを記載してね
    function asset:artifact/common/use/auto

# ここから先は神器側の効果の処理を書く

# 使用効果
    fill ~-5 ~-3 ~-5 ~5 ~1 ~5 blue_ice replace packed_ice
    fill ~-5 ~-3 ~-5 ~5 ~1 ~5 packed_ice replace ice
    fill ~-5 ~-3 ~-5 ~5 ~1 ~5 ice replace water[level=0]

# 演出
    particle minecraft:spit ~ ~ ~ 2 0.5 2 0.05 100
    playsound minecraft:block.glass.break player @a ~ ~ ~ 0.8 1


text:
#> asset:artifact/0322.ice_cane/trigger/1.trigger
#
# 指定したイベントタイミングで実行されるfunction
#
# @within tag/function asset:artifact/**

# storage asset:idのauto/feet/legs/chest/head/mainhand/offhandに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
    execute if data storage asset:context id{auto:322} run function asset:artifact/0322.ice_cane/trigger/2.check_condition


text:
#> asset:artifact/0960.heavy_charm/register
#
# 神器プールへの登録処理
#
# @within tag/function asset:artifact/register

data modify storage asset:artifact RarityRegistry[1] append value 960


text:
#> asset:artifact/0960.heavy_charm/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:960} run function asset:artifact/0960.heavy_charm/give/2.give


text:
#> asset:artifact/0960.heavy_charm/give/2.give
#
# 神器の作成部 ここでID等を定義する
#
# @user
# @within function asset:artifact/0960.heavy_charm/give/1.trigger

# 神器の説明や消費MPなどをここで設定する。
# 最後にasset:artifact/common/giveを実行することで入手可能。

# 神器のID (int) スプレッドシートの値を入れる
    data modify storage asset:artifact ID set value 960
# 神器のベースアイテム
    data modify storage asset:artifact Item set value "minecraft:stick"
# 神器の名前 (TextComponentString)
    data modify storage asset:artifact Name set value '{"text":"重装のチャーム"}'
# 神器の説明文 (TextComponentString[])
    data modify storage asset:artifact Lore set value ['{"text":"防御力が上がるが、移動速度が下がる"}','{"text":"\\"避けられないなら耐えればいい\\"","color":"gray"}']
# MP以外の消費物 (TextComponentString) (オプション)
    # data modify storage asset:artifact CostText set value
# 使用回数 (int) (オプション)
    # data modify storage asset:artifact RemainingCount set value
# 神器を発動できるスロット (string) Wikiを参照
    data modify storage asset:artifact Slot set value "hotbar"
# 神器のトリガー (string) Wikiを参照
    data modify storage asset:artifact Trigger set value "equipping"
# 神器の発動条件 (TextComponentString) (オプション)
    # data modify storage asset:artifact Condition set value
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.Damage set value [0,0]
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackType set value [Physical,Magic]
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.ElementType set value [Fire,Water,Thunder,None]
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.BypassResist set value
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.IsRangeAttack set value
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackRange set value
# MP消費量 (int)
    data modify storage asset:artifact MPCost set value 0
# MP必要量 (int) (オプション)
    # data modify storage asset:artifact MPRequire set value
# 神器のクールダウン (int) (オプション)
    # data modify storage asset:artifact LocalCooldown set value
# グローバルクールダウン (int) (オプション)
    # data modify storage asset:artifact SpecialCooldown set value
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableCooldownMessage set value
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableMPMessage set value
# 扱える神 (string[]) Wikiを参照
    data modify storage asset:artifact CanUsedGod set value "ALL"
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
    # data modify storage asset:artifact CustomNBT set value {}

# 神器の入手用function
    function asset:artifact/common/give


text:
#> asset:artifact/0960.heavy_charm/trigger/2.check_condition
#
# 神器の発動条件をチェックします
#
# @within function asset:artifact/0960.heavy_charm/trigger/1.trigger

# 神器IDの設定
    data modify storage asset:artifact TargetID set value 960
# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く
    function asset:artifact/common/check_condition/hotbar
# CanUsedタグをチェックして3.main.mcfunctionを実行する
    execute if entity @s[tag=CanUsed] run function asset:artifact/0960.heavy_charm/trigger/3.main


text:
#> asset:artifact/0960.heavy_charm/trigger/3.main
#
# 神器のメイン処理部
#
# @within function asset:artifact/0960.heavy_charm/trigger/2.check_condition

# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う
    function asset:artifact/common/use/hotbar

# ここから先は神器側の効果の処理を書く
    playsound ogg:block.smithing_table.smithing_table2 player @a ~ ~ ~ 1 1
    playsound minecraft:item.armor.equip_iron player @a ~ ~ ~ 1 1
    particle crit ~ ~1 ~ 0 0 0 0.5 10

# 補正を追加
    function asset:artifact/0960.heavy_charm/trigger/add_modifier


text:
#> asset:artifact/0960.heavy_charm/trigger/1.trigger
#
# 指定したイベントタイミングで実行されるfunction
#
# @within tag/function asset:artifact/**

# storage asset:idのheadに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
    execute if data storage asset:context id{hotbar:[960]} run function asset:artifact/0960.heavy_charm/trigger/2.check_condition


text:
#> asset:artifact/0960.heavy_charm/trigger/add_modifier
#
# 補正追加
#
# @within function asset:artifact/0960.heavy_charm/trigger/**main

#> 個数
# @private
#declare score_holder $Count

# 補正を削除
    attribute @s minecraft:generic.armor modifier remove 1-0-1-0-3c000000007
    attribute @s minecraft:generic.movement_speed modifier remove 1-0-1-0-3c000000007
# 個数を取得
    execute store result score $Count Temporary if data storage asset:context New.Items.hotbar[{tag:{TSB:{ID:960}}}]
# 防御が上がるが重くなる
    execute if score $Count Temporary matches 1 run attribute @s minecraft:generic.armor modifier add 1-0-1-0-3c000000007 "960" 2 add
    execute if score $Count Temporary matches 1 run attribute @s minecraft:generic.movement_speed modifier add 1-0-1-0-3c000000007 "960" -0.02 add

    execute if score $Count Temporary matches 2 run attribute @s minecraft:generic.armor modifier add 1-0-1-0-3c000000007 "960" 4 add
    execute if score $Count Temporary matches 2 run attribute @s minecraft:generic.movement_speed modifier add 1-0-1-0-3c000000007 "960" -0.04 add

    execute if score $Count Temporary matches 3 run attribute @s minecraft:generic.armor modifier add 1-0-1-0-3c000000007 "960" 6 add
    execute if score $Count Temporary matches 3 run attribute @s minecraft:generic.movement_speed modifier add 1-0-1-0-3c000000007 "960" -0.06 add

    execute if score $Count Temporary matches 4 run attribute @s minecraft:generic.armor modifier add 1-0-1-0-3c000000007 "960" 8 add
    execute if score $Count Temporary matches 4 run attribute @s minecraft:generic.movement_speed modifier add 1-0-1-0-3c000000007 "960" -0.08 add

    execute if score $Count Temporary matches 5 run attribute @s minecraft:generic.armor modifier add 1-0-1-0-3c000000007 "960" 10 add
    execute if score $Count Temporary matches 5 run attribute @s minecraft:generic.movement_speed modifier add 1-0-1-0-3c000000007 "960" -0.1 add

    execute if score $Count Temporary matches 6 run attribute @s minecraft:generic.armor modifier add 1-0-1-0-3c000000007 "960" 12 add
    execute if score $Count Temporary matches 6 run attribute @s minecraft:generic.movement_speed modifier add 1-0-1-0-3c000000007 "960" -0.12 add

    execute if score $Count Temporary matches 7 run attribute @s minecraft:generic.armor modifier add 1-0-1-0-3c000000007 "960" 14 add
    execute if score $Count Temporary matches 7 run attribute @s minecraft:generic.movement_speed modifier add 1-0-1-0-3c000000007 "960" -0.14 add

    execute if score $Count Temporary matches 8 run attribute @s minecraft:generic.armor modifier add 1-0-1-0-3c000000007 "960" 16 add
    execute if score $Count Temporary matches 8 run attribute @s minecraft:generic.movement_speed modifier add 1-0-1-0-3c000000007 "960" -0.16 add

    execute if score $Count Temporary matches 9 run attribute @s minecraft:generic.armor modifier add 1-0-1-0-3c000000007 "960" 18 add
    execute if score $Count Temporary matches 9 run attribute @s minecraft:generic.movement_speed modifier add 1-0-1-0-3c000000007 "960" -0.18 add

# リセット
    scoreboard players reset $Count Temporary


text:
#> asset:artifact/0960.heavy_charm/trigger/dis_equip/main
#
# 装備を外した時のメイン処理
#
# @within function asset:artifact/0960.heavy_charm/trigger/dis_equip/

# 音
    playsound minecraft:item.armor.equip_generic player @a ~ ~ ~ 1 0.8

# 補正を削除
    attribute @s minecraft:generic.armor modifier remove 1-0-1-0-3c000000007
    attribute @s minecraft:generic.movement_speed modifier remove 1-0-1-0-3c000000007

# 補正を追加
    execute unless entity @s[tag=!DevPrivilege,predicate=player_manager:is_believe/null] run function asset:artifact/0960.heavy_charm/trigger/add_modifier


text:
#> asset:artifact/0625.flame_armor/register
#
# 神器プールへの登録処理
#
# @within tag/function asset:artifact/register

data modify storage asset:artifact RarityRegistry[2] append value 625


text:
#> asset:artifact/0625.flame_armor/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:625} run function asset:artifact/0625.flame_armor/give/2.give


text:
#> asset:artifact/0625.flame_armor/give/2.give
#
# 神器の作成部 ここでID等を定義する
#
# @user
# @within function asset:artifact/0625.flame_armor/give/1.trigger

# 神器の説明や消費MPなどをここで設定する。
# 最後にasset:artifact/common/giveを実行することで入手可能。

# 神器のID (int) スプレッドシートの値を入れる
    data modify storage asset:artifact ID set value 625
# 神器のベースアイテム
    data modify storage asset:artifact Item set value "minecraft:leather_chestplate"
# 神器の名前 (TextComponentString)
    data modify storage asset:artifact Name set value '{"text":"フレイムアーマー","color":"red"}'
# 神器の説明文 (TextComponentString[])
    data modify storage asset:artifact Lore set value ['{"text":"火耐性+3%","color":"red"}','{"text":"一式全て揃えた場合、追加で火耐性+3%","color":"red"}']
# MP以外の消費物 (TextComponentString) (オプション)
    # data modify storage asset:artifact CostText set value
# 使用回数 (int) (オプション)
    # data modify storage asset:artifact RemainingCount set value
# 神器を発動できるスロット (string) Wikiを参照
    data modify storage asset:artifact Slot set value "chest"
# 神器のトリガー (string) Wikiを参照
    data modify storage asset:artifact Trigger set value "equipping"
# 神器の発動条件 (TextComponentString) (オプション)
    # data modify storage asset:artifact Condition set value
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.Damage set value [0,0]
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackType set value [Physical,Magic]
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.ElementType set value [Fire,Water,Thunder,None]
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.BypassResist set value
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.IsRangeAttack set value
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackRange set value
# MP消費量 (int)
    data modify storage asset:artifact MPCost set value 0
# MP必要量 (int) (オプション)
    # data modify storage asset:artifact MPRequire set value
# 神器のクールダウン (int) (オプション)
    # data modify storage asset:artifact LocalCooldown set value
# グローバルクールダウン (int) (オプション)
    # data modify storage asset:artifact SpecialCooldown set value
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableCooldownMessage set value
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableMPMessage set value
# 扱える神 (string[]) Wikiを参照
    data modify storage asset:artifact CanUsedGod set value ["Urban", "Nyaptov", "Rumor"]
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
    data modify storage asset:artifact CustomNBT set value {HideFlags:68,display:{color:16720899},Unbreakable:1b,AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:6,Operation:0,UUID:[I;1,1,625,5],Slot:"chest"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:0.5,Operation:0,UUID:[I;1,1,625,5],Slot:"chest"}]}

# 神器の入手用function
    function asset:artifact/common/give


text:
#> asset:artifact/0625.flame_armor/trigger/4.fullset
#
#
#
# @within function
#   asset:artifact/0624.flame_helm/trigger/3.main
#   asset:artifact/0625.flame_armor/trigger/3.main
#   asset:artifact/0626.flame_leggings/trigger/3.main
#   asset:artifact/0627.flame_boots/trigger/3.main

# 引数の設定
    # UUID
        data modify storage api: Argument.UUID set value [I;1,1,625,0]
    # 補正値
        data modify storage api: Argument.Amount set value 0.03
    # 補正方法
        data modify storage api: Argument.Operation set value "multiply_base"
# 補正の追加
    function api:modifier/defense/fire/add

# 演出
     particle flame ~ ~1.2 ~ 0.4 0.5 0.4 0 20 normal @a
     playsound minecraft:entity.blaze.shoot player @a ~ ~ ~ 1 0.2 0


text:
#> asset:artifact/0625.flame_armor/trigger/2.check_condition
#
# 神器の発動条件をチェックします
#
# @within function asset:artifact/0625.flame_armor/trigger/1.trigger

# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く
    function asset:artifact/common/check_condition/chest
# 他にアイテム等確認する場合はここに書く

# CanUsedタグをチェックして3.main.mcfunctionを実行する
    execute if entity @s[tag=CanUsed] run function asset:artifact/0625.flame_armor/trigger/3.main


text:
#> asset:artifact/0625.flame_armor/trigger/3.main
#
# 神器のメイン処理部
#
# @within function asset:artifact/0625.flame_armor/trigger/2.check_condition

# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う
    function asset:artifact/common/use/chest

# ここから先は神器側の効果の処理を書く

# 引数の設定
    # UUID
        data modify storage api: Argument.UUID set value [I;1,1,625,5]
    # 補正値
        data modify storage api: Argument.Amount set value 0.03
    # 補正方法
        data modify storage api: Argument.Operation set value "multiply_base"
# 補正の追加
    function api:modifier/defense/fire/add

#ちょっとした演出
    particle flame ~ ~1.3 ~ 0.4 0.3 0.4 0 10 normal @a
    playsound minecraft:entity.blaze.shoot player @a ~ ~ ~ 0.4 1

# 一式検知
    execute if data storage asset:context id.all{head:624,chest:625,legs:626,feet:627} run function asset:artifact/0625.flame_armor/trigger/4.fullset


text:
#> asset:artifact/0625.flame_armor/trigger/1.trigger
#
# 指定したイベントタイミングで実行されるfunction
#
# @within tag/function asset:artifact/**

# storage asset:idのchestに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
    execute if data storage asset:context id{chest:625} run function asset:artifact/0625.flame_armor/trigger/2.check_condition


text:
#> asset:artifact/0625.flame_armor/trigger/5.fullset_dis_equip
#
#
#
# @within function
#   asset:artifact/0624.flame_helm/trigger/dis_equip/main
#   asset:artifact/0625.flame_armor/trigger/dis_equip/main
#   asset:artifact/0626.flame_leggings/trigger/dis_equip/main
#   asset:artifact/0627.flame_boots/trigger/dis_equip/main

# UUID
    data modify storage api: Argument.UUID set value [I;1,1,625,0]
# 補正の削除
    function api:modifier/defense/fire/remove


text:
#> asset:artifact/0625.flame_armor/trigger/dis_equip/main
#
# 装備を外した時のメイン処理
#
# @within function asset:artifact/0625.flame_armor/trigger/dis_equip/

# UUID
    data modify storage api: Argument.UUID set value [I;1,1,625,5]
# 補正の削除
    function api:modifier/defense/fire/remove

# 演出
    playsound entity.generic.burn player @a ~ ~ ~ 0.2 1 0

# フルセットの耐性削除
    execute if data storage asset:context id.all{head:624,chest:625,legs:626,feet:627} run function asset:artifact/0625.flame_armor/trigger/5.fullset_dis_equip


text:
#> asset:artifact/0268.heal_lv.10/register
#
# 神器プールへの登録処理
#
# @within tag/function asset:artifact/register

data modify storage asset:artifact RarityRegistry[4] append value 268


text:
#> asset:artifact/0268.heal_lv.10/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:268} run function asset:artifact/0268.heal_lv.10/give/2.give


text:
#> asset:artifact/0268.heal_lv.10/give/2.give
#
# 神器の作成部 ここでID等を定義する
#
# @user
# @within function asset:artifact/0268.heal_lv.10/give/1.trigger

# 神器の説明や消費MPなどをここで設定する。
# 最後にasset:artifact/common/giveを実行することで入手可能。

# 神器のID (int) スプレッドシートの値を入れる
    data modify storage asset:artifact ID set value 268
# 神器のベースアイテム
    data modify storage asset:artifact Item set value "minecraft:carrot_on_a_stick"
# 神器の名前 (TextComponentString)
    data modify storage asset:artifact Name set value '{"text":"ヒール レベル10"}'
# 神器の説明文 (TextComponentString[])
    data modify storage asset:artifact Lore set value ['{"text":"治癒の祈りを通じて"}','{"text":"発動者および味方を回復する。"}','""','{"text":"[詳細]","color":"#ffde6e"}','[{"text":"体力を","color":"white"},{"text":"9.6","color":"#6e99ff"},{"text":"回復する。","color":"white"}]']
# MP以外の消費物 (TextComponentString) (オプション)
    # data modify storage asset:artifact CostText set value
# 使用回数 (int) (オプション)
    # data modify storage asset:artifact RemainingCount set value
# 神器を発動できるスロット (string) Wikiを参照
    data modify storage asset:artifact Slot set value "mainhand"
# 神器のトリガー (string) Wikiを参照
    data modify storage asset:artifact Trigger set value "onClick"
# 神器の発動条件 (TextComponentString) (オプション)
    # data modify storage asset:artifact Condition set value
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.Damage set value [0,0]
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackType set value [Physical,Magic]
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.ElementType set value [Fire,Water,Thunder,None]
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.BypassResist set value
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.IsRangeAttack set value
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackRange set value
# MP消費量 (int)
    data modify storage asset:artifact MPCost set value 15
# MP必要量 (int) (オプション)
    # data modify storage asset:artifact MPRequire set value
# 神器のクールダウン (int) (オプション)
    data modify storage asset:artifact LocalCooldown set value 20
# グローバルクールダウン (int) (オプション)
    # data modify storage asset:artifact SpecialCooldown set value
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    data modify storage asset:artifact DisableCooldownMessage set value true
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableMPMessage set value
# 扱える神 (string[]) Wikiを参照
    data modify storage asset:artifact CanUsedGod set value ["Nyaptov", "Wi-ki", "Rumor"]
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
    # data modify storage asset:artifact CustomNBT set value {}

# 神器の入手用function
    function asset:artifact/common/give


text:
#> asset:artifact/0268.heal_lv.10/trigger/2.check_condition
#
# 神器の発動条件をチェックします
#
# @within function asset:artifact/0268.heal_lv.10/trigger/1.trigger

# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く auto/feet/legs/chest/head/mainhand/offhandを記載してね
    function asset:artifact/common/check_condition/mainhand
# 他にアイテム等確認する場合はここに書く

# CanUsedタグをチェックして3.main.mcfunctionを実行する
    execute if entity @s[tag=CanUsed] run function asset:artifact/0268.heal_lv.10/trigger/3.main


text:
#> asset:artifact/0268.heal_lv.10/trigger/3.main
#
# 神器のメイン処理部
#
# @within function asset:artifact/0268.heal_lv.10/trigger/2.check_condition

# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う auto/feet/legs/chest/head/mainhand/offhandを記載してね
    function asset:artifact/common/use/mainhand

# ここから先は神器側の効果の処理を書く
# 演出
    playsound minecraft:entity.evoker.cast_spell player @a ~ ~ ~ 0.6 0.8
    playsound minecraft:entity.evoker.cast_spell player @a ~ ~ ~ 0.8 1.8
    playsound minecraft:entity.evoker.prepare_summon player @a ~ ~ ~ 0.6 1.17
    playsound minecraft:block.enchantment_table.use player @a ~ ~ ~ 1.0 1.4
    summon minecraft:area_effect_cloud ~ ~0.3 ~ {Age:0,Duration:5,WaitTime:0,Radius:3f,Tags:[],Particle:"dust 1 1 0.5 1"}
    summon minecraft:area_effect_cloud ~ ~0.0 ~ {Age:0,Duration:5,WaitTime:0,Radius:3f,Tags:[],Particle:"dust 1 1 0.5 1"}
    summon minecraft:area_effect_cloud ~ ~0.2 ~ {Age:0,Duration:1,WaitTime:0,Radius:3f,Tags:[],Particle:"totem_of_undying"}
# 回復
    data modify storage lib: Argument.Heal set value 9.6f
    function lib:heal/modifier
    execute as @a[distance=..3,sort=nearest,limit=6] run function lib:heal/
# リセット
    function lib:heal/reset


text:
#> asset:artifact/0268.heal_lv.10/trigger/1.trigger
#
# 指定したイベントタイミングで実行されるfunction
#
# @within tag/function asset:artifact/**

# storage asset:idのauto/feet/legs/chest/head/mainhand/offhandに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
    execute if data storage asset:context id{mainhand:268} run function asset:artifact/0268.heal_lv.10/trigger/2.check_condition


text:
#> asset:artifact/0090.leather_armor_set/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:90} run function asset:artifact/0090.leather_armor_set/give/2.give


text:
#> asset:artifact/0090.leather_armor_set/give/2.give
#
# 神器の作成部 ここでID等を定義する
#
# @user
# @within function asset:artifact/0090.leather_armor_set/give/1.trigger

# 神器の説明や消費MPなどをここで設定する。
# 最後にasset:artifact/common/giveを実行することで入手可能。

# 神器のID (int) スプレッドシートの値を入れる
    data modify storage asset:artifact ID set value 90
# 神器のベースアイテム
    data modify storage asset:artifact Item set value "minecraft:carrot_on_a_stick"
# 神器の名前 (TextComponentString)
    data modify storage asset:artifact Name set value '{"text":"皮装備セット","italic":false}'
# 神器の説明文 (TextComponentString[])
    data modify storage asset:artifact Lore set value ['{"text":"エンチャント不可の皮装備を装着する"}']
# MP以外の消費物 (TextComponentString) (オプション)
    # data modify storage asset:artifact CostText set value
# 使用回数 (int) (オプション)
    data modify storage asset:artifact RemainingCount set value 1
# 神器を発動できるスロット (string) Wikiを参照
    data modify storage asset:artifact Slot set value "auto"
# 神器のトリガー (string) Wikiを参照
    data modify storage asset:artifact Trigger set value "onClick"
# 神器の発動条件 (TextComponentString) (オプション)
    # data modify storage asset:artifact Condition set value
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.Damage set value [0,0]
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackType set value [Physical,Magic]
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.ElementType set value [Fire,Water,Thunder,None]
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.BypassResist set value
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.IsRangeAttack set value
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackRange set value
# MP消費量 (int)
    data modify storage asset:artifact MPCost set value 0
# MP必要量 (int) (オプション)
    # data modify storage asset:artifact MPRequire set value
# 神器のクールダウン (int) (オプション)
    # data modify storage asset:artifact LocalCooldown set value
# グローバルクールダウン (int) (オプション)
    # data modify storage asset:artifact SpecialCooldown set value
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableCooldownMessage set value
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableMPMessage set value
# 扱える神 (string[]) Wikiを参照
    data modify storage asset:artifact CanUsedGod set value "ALL"
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
    # data modify storage asset:artifact CustomNBT set value {}

# 神器の入手用function
    function asset:artifact/common/give


text:
#> asset:artifact/0090.leather_armor_set/trigger/2.check_condition
#
# 神器の発動条件をチェックします
#
# @within function asset:artifact/0090.leather_armor_set/trigger/1.trigger

# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く auto/feet/legs/chest/head/mainhand/offhandを記載してね
    function asset:artifact/common/check_condition/auto
# 他にアイテム等確認する場合はここに書く

# CanUsedタグをチェックして3.main.mcfunctionを実行する
    execute if entity @s[tag=CanUsed] run function asset:artifact/0090.leather_armor_set/trigger/3.main


text:
#> asset:artifact/0090.leather_armor_set/trigger/3.main
#
# 神器のメイン処理部
#
# @within function asset:artifact/0090.leather_armor_set/trigger/2.check_condition

# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う auto/feet/legs/chest/head/mainhand/offhandを記載してね
    function asset:artifact/common/use/auto

# ここから先は神器側の効果の処理を書く

# 装備変更成功の時
    execute as @s[nbt=!{Inventory:[{Slot:100b},{Slot:101b},{Slot:102b},{Slot:103b}]}] at @s run particle minecraft:happy_villager ~ ~1 ~ 0.4 0.4 0.4 0.1 50
    execute as @s[nbt=!{Inventory:[{Slot:100b},{Slot:101b},{Slot:102b},{Slot:103b}]}] at @s run playsound minecraft:block.anvil.land player @a ~ ~ ~ 1 2

# 装備変更失敗の時
    execute as @s[nbt={Inventory:[{Slot:100b},{Slot:101b},{Slot:102b},{Slot:103b}]}] at @s run particle minecraft:smoke ~ ~1 ~ 0 0 0 0.1 50
    execute as @s[nbt={Inventory:[{Slot:100b},{Slot:101b},{Slot:102b},{Slot:103b}]}] at @s run playsound minecraft:item.shield.break player @a ~ ~ ~ 1 0.5

# 装備返却処理
    execute as @s[nbt={Inventory:[{Slot:103b}]}] at @s run summon item ~ ~ ~ {Motion:[0.0,0.1,0.0],Item:{id:"minecraft:leather_helmet",Count:1b,tag:{display:{Name:'{"text":"簡易革防具","italic":false}'},RepairCost:9999,Enchantments:[{}]}}}
    execute as @s[nbt={Inventory:[{Slot:102b}]}] at @s run summon item ~ ~ ~ {Motion:[0.0,0.1,0.0],Item:{id:"minecraft:leather_chestplate",Count:1b,tag:{display:{Name:'{"text":"簡易革防具","italic":false}'},RepairCost:9999,Enchantments:[{}]}}}
    execute as @s[nbt={Inventory:[{Slot:101b}]}] at @s run summon item ~ ~ ~ {Motion:[0.0,0.1,0.0],Item:{id:"minecraft:leather_leggings",Count:1b,tag:{display:{Name:'{"text":"簡易革防具","italic":false}'},RepairCost:9999,Enchantments:[{}]}}}
    execute as @s[nbt={Inventory:[{Slot:100b}]}] at @s run summon item ~ ~ ~ {Motion:[0.0,0.1,0.0],Item:{id:"minecraft:leather_boots",Count:1b,tag:{display:{Name:'{"text":"簡易革防具","italic":false}'},RepairCost:9999,Enchantments:[{}]}}}

# 装備変更
    item replace entity @s[nbt=!{Inventory:[{Slot:103b}]}] armor.head with minecraft:leather_helmet{display:{Name:'{"text":"簡易革防具","italic":false}'},RepairCost:9999,Enchantments:[{}]} 1
    item replace entity @s[nbt=!{Inventory:[{Slot:102b}]}] armor.chest with minecraft:leather_chestplate{display:{Name:'{"text":"簡易革防具","italic":false}'},RepairCost:9999,Enchantments:[{}]} 1
    item replace entity @s[nbt=!{Inventory:[{Slot:101b}]}] armor.legs with minecraft:leather_leggings{display:{Name:'{"text":"簡易革防具","italic":false}'},RepairCost:9999,Enchantments:[{}]} 1
    item replace entity @s[nbt=!{Inventory:[{Slot:100b}]}] armor.feet with minecraft:leather_boots{display:{Name:'{"text":"簡易革防具","italic":false}'},RepairCost:9999,Enchantments:[{}]} 1


text:
#> asset:artifact/0090.leather_armor_set/trigger/1.trigger
#
# 指定したイベントタイミングで実行されるfunction
#
# @within tag/function asset:artifact/**

# storage asset:context idのauto/feet/legs/chest/head/mainhand/offhandに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
    execute if data storage asset:context id{auto:90} run function asset:artifact/0090.leather_armor_set/trigger/2.check_condition


text:
#> asset:artifact/0136.hi_amrita/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:136} run function asset:artifact/0136.hi_amrita/give/2.give


text:
#> asset:artifact/0136.hi_amrita/give/2.give
#
# 神器の作成部 ここでID等を定義する
#
# @user
# @within function asset:artifact/0136.hi_amrita/give/1.trigger

# 神器の説明や消費MPなどをここで設定する。
# 最後にasset:artifact/common/giveを実行することで入手可能。

# 神器のID (int) スプレッドシートの値を入れる
    data modify storage asset:artifact ID set value 136
# 神器のベースアイテム
    data modify storage asset:artifact Item set value "minecraft:potion"
# 神器の名前 (TextComponentString)
    data modify storage asset:artifact Name set value '{"text":"ハイアムリタ","color":"yellow"}'
# 神器の説明文 (TextComponentString[])
    data modify storage asset:artifact Lore set value ['{"text":"MPを100回復する"}']
# MP以外の消費物 (TextComponentString) (オプション)
    # data modify storage asset:artifact CostText set value
# 使用回数 (int) (オプション)
    data modify storage asset:artifact RemainingCount set value 1
# 神器を発動できるスロット (string) Wikiを参照
    data modify storage asset:artifact Slot set value "auto"
# 神器のトリガー (string) Wikiを参照
    data modify storage asset:artifact Trigger set value "itemUse"
# 神器の発動条件 (TextComponentString) (オプション)
    # data modify storage asset:artifact Condition set value
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.Damage set value [0,0]
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackType set value [Physical,Magic]
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.ElementType set value [Fire,Water,Thunder,None]
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.BypassResist set value
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.IsRangeAttack set value
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackRange set value
# MP消費量 (int)
    data modify storage asset:artifact MPCost set value 0
# MP必要量 (int) (オプション)
    # data modify storage asset:artifact MPRequire set value
# 神器のクールダウン (int) (オプション)
    # data modify storage asset:artifact LocalCooldown set value
# グローバルクールダウン (int) (オプション)
    # data modify storage asset:artifact SpecialCooldown set value
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableCooldownMessage set value
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableMPMessage set value
# 扱える神 (string[]) Wikiを参照
    data modify storage asset:artifact CanUsedGod set value "ALL"
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
    data modify storage asset:artifact CustomNBT set value {CustomPotionColor:16318239,HideFlags:32}

# 神器の入手用function
    function asset:artifact/common/give


text:
#> asset:artifact/0136.hi_amrita/trigger/2.check_condition
#
# 神器の発動条件をチェックします
#
# @within function asset:artifact/0136.hi_amrita/trigger/1.trigger

# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く auto/feet/legs/chest/head/mainhand/offhandを記載してね
    function asset:artifact/common/check_condition/auto
# 他にアイテム等確認する場合はここに書く

# CanUsedタグをチェックして3.main.mcfunctionを実行する
    execute if entity @s[tag=CanUsed] run function asset:artifact/0136.hi_amrita/trigger/3.main


text:
#> asset:artifact/0136.hi_amrita/trigger/3.main
#
# 神器のメイン処理部
#
# @within function asset:artifact/0136.hi_amrita/trigger/2.check_condition

#> private
# @private
    #declare score_holder $Fluctuation

# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う auto/feet/legs/chest/head/mainhand/offhandを記載してね
    function asset:artifact/common/use/auto

# ここから先は神器側の効果の処理を書く

# 演出
    particle minecraft:composter ~ ~1 ~ 0.5 0.5 0.5 1 20 force @s
    playsound minecraft:entity.arrow.hit_player player @s ~ ~ ~ 1 1

# MP回復
    scoreboard players set $Fluctuation Lib 100
    function lib:mp/fluctuation


text:
#> asset:artifact/0136.hi_amrita/trigger/1.trigger
#
# 指定したイベントタイミングで実行されるfunction
#
# @within tag/function asset:artifact/**

# storage asset:context idのauto/feet/legs/chest/head/mainhand/offhandに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
    execute if data storage asset:context id{auto:136} run function asset:artifact/0136.hi_amrita/trigger/2.check_condition


text:
#> asset:artifact/0666.soul_fire_armor/register
#
# 神器プールへの登録処理
#
# @within tag/function asset:artifact/register

data modify storage asset:artifact RarityRegistry[4] append value 666


text:
#> asset:artifact/0666.soul_fire_armor/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:666} run function asset:artifact/0666.soul_fire_armor/give/2.give


text:
#> asset:artifact/0666.soul_fire_armor/give/2.give
#
# 神器の作成部 ここでID等を定義する
#
# @user
# @within function asset:artifact/0666.soul_fire_armor/give/1.trigger

# 神器の説明や消費MPなどをここで設定する。
# 最後にasset:artifact/common/giveを実行することで入手可能。

# 神器のID (int) スプレッドシートの値を入れる
    data modify storage asset:artifact ID set value 666
# 神器のベースアイテム
    data modify storage asset:artifact Item set value "minecraft:leather_leggings"
# 神器の名前 (TextComponentString)
    data modify storage asset:artifact Name set value '{"text":"魂炎纏","color":"#01A7AC","bold":true}'
# 神器の説明文 (TextComponentString[])
    data modify storage asset:artifact Lore set value ['{"text":"魂炎を纏う者に代償を。","color":"aqua"}','{"text":"代償背負いし者へ力を。","color":"aqua"}','[{"text":"物理攻撃+5% ","color":"dark_green"},{"text":"火耐性+10% 火攻撃+10% ","color":"red"}]','[{"text":"MP回復量+8% ","color":"green"},{"text":"最大体力-10%","color":"dark_red"}]']
# MP以外の消費物 (TextComponentString) (オプション)
    # data modify storage asset:artifact CostText set value
# 使用回数 (int) (オプション)
    # data modify storage asset:artifact RemainingCount set value
# 神器を発動できるスロット (string) Wikiを参照
    data modify storage asset:artifact Slot set value "legs"
# 神器のトリガー (string) Wikiを参照
    data modify storage asset:artifact Trigger set value "equipping"
# 神器の発動条件 (TextComponentString) (オプション)
    # data modify storage asset:artifact Condition set value
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.Damage set value [0,0]
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackType set value [Physical,Magic]
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.ElementType set value [Fire,Water,Thunder,None]
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.BypassResist set value
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.IsRangeAttack set value
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackRange set value
# MP消費量 (int)
    data modify storage asset:artifact MPCost set value 0
# MP必要量 (int) (オプション)
    # data modify storage asset:artifact MPRequire set value
# 神器のクールダウン (int) (オプション)
    # data modify storage asset:artifact LocalCooldown set value
# グローバルクールダウン (int) (オプション)
    # data modify storage asset:artifact SpecialCooldown set value
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableCooldownMessage set value
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableMPMessage set value
# 扱える神 (string[]) Wikiを参照
    data modify storage asset:artifact CanUsedGod set value ["Urban", "Nyaptov", "Rumor"]
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
    data modify storage asset:artifact CustomNBT set value {HideFlags:68,display:{color:3071974},Unbreakable:1b,AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:7,Operation:0,UUID:[I;1,1,666,4],Slot:"legs"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2.5,Operation:0,UUID:[I;1,1,666,4],Slot:"legs"}]}

# 神器の入手用function
    function asset:artifact/common/give


text:
#> asset:artifact/0666.soul_fire_armor/trigger/2.check_condition
#
# 神器の発動条件をチェックします
#
# @within function asset:artifact/0666.soul_fire_armor/trigger/1.trigger

# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く
    function asset:artifact/common/check_condition/legs
# 他にアイテム等確認する場合はここに書く

# CanUsedタグをチェックして3.main.mcfunctionを実行する
    execute if entity @s[tag=CanUsed] run function asset:artifact/0666.soul_fire_armor/trigger/3.main


text:
#> asset:artifact/0666.soul_fire_armor/trigger/3.main
#
# 神器のメイン処理部
#
# @within function asset:artifact/0666.soul_fire_armor/trigger/2.check_condition

# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う
    function asset:artifact/common/use/legs

# ここから先は神器側の効果の処理を書く

# 演出
    execute unless data storage asset:context id.all{head:664,chest:665,legs:666,feet:667} positioned ~ ~0.4 ~ facing entity @s eyes rotated ~ 0 run function asset:artifact/0664.soul_fire_armor/trigger/particle
    execute unless data storage asset:context id.all{head:664,chest:665,legs:666,feet:667} positioned ~ ~0.6 ~ facing entity @s eyes rotated ~ 0 run function asset:artifact/0664.soul_fire_armor/trigger/particle
    playsound block.fire.ambient player @a ~ ~ ~ 1.5 0.8 0
    playsound particle.soul_escape player @a ~ ~ ~ 2 0 0
    playsound minecraft:block.sculk_sensor.clicking player @a ~ ~ ~ 0.8 0
    playsound ogg:mob.vex.idle1 player @a ~ ~ ~ 1 0 0

# 物理耐性+5%
    data modify storage api: Argument.UUID set value [I;1,1,666,4]
    data modify storage api: Argument.Amount set value 0.05
    data modify storage api: Argument.Operation set value "multiply_base"
    function api:modifier/attack/physical/add

# 火耐性+10%
    data modify storage api: Argument.UUID set value [I;1,1,666,4]
    data modify storage api: Argument.Amount set value 0.1
    data modify storage api: Argument.Operation set value "multiply_base"
    function api:modifier/defense/fire/add

# 火攻撃+10%
    data modify storage api: Argument.UUID set value [I;1,1,666,4]
    data modify storage api: Argument.Amount set value 0.1
    data modify storage api: Argument.Operation set value "multiply_base"
    function api:modifier/attack/fire/add

# MP回復量+8%
    data modify storage api: Argument.UUID set value [I;1,1,666,4]
    data modify storage api: Argument.Amount set value 0.08
    data modify storage api: Argument.Operation set value "multiply_base"
    function api:modifier/mp_regen/add

# 最大体力-10%
    attribute @s generic.max_health modifier add 00000001-0000-0001-0000-029a00000004 "MaxHealthDown" -0.1 multiply_base

# 最大体力を反映するための即時回復
    effect give @s instant_health 1 0

# フルセット検知
    execute if data storage asset:context id.all{head:664,chest:665,legs:666,feet:667} run function asset:artifact/0664.soul_fire_armor/trigger/fullset/


text:
#> asset:artifact/0666.soul_fire_armor/trigger/1.trigger
#
# 指定したイベントタイミングで実行されるfunction
#
# @within tag/function asset:artifact/**

# storage asset:idのlegsに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
    execute if data storage asset:context id{legs:666} run function asset:artifact/0666.soul_fire_armor/trigger/2.check_condition


text:
#> asset:artifact/0666.soul_fire_armor/trigger/dis_equip/main
#
# 装備を外した時のメイン処理
#
# @within function asset:artifact/0666.soul_fire_armor/trigger/dis_equip/

# 演出
    execute if entity @s[tag=!IG.Fullset] positioned ~ ~0.4 ~ run function asset:artifact/0664.soul_fire_armor/trigger/particle2
    execute if entity @s[tag=!IG.Fullset] positioned ~ ~0.6 ~ run function asset:artifact/0664.soul_fire_armor/trigger/particle2
    playsound block.fire.ambient player @a ~ ~ ~ 1.5 0.8 0
    playsound particle.soul_escape player @a ~ ~ ~ 2 0 0
    playsound ogg:mob.vex.idle1 player @a ~ ~ ~ 1 0 0

# 物理耐性
    data modify storage api: Argument.UUID set value [I;1,1,666,4]
    function api:modifier/attack/physical/remove

# 火耐性
    data modify storage api: Argument.UUID set value [I;1,1,666,4]
    function api:modifier/defense/fire/remove

# 火攻撃
    data modify storage api: Argument.UUID set value [I;1,1,666,4]
    function api:modifier/attack/fire/remove

# MP回復量
    data modify storage api: Argument.UUID set value [I;1,1,666,4]
    function api:modifier/mp_regen/remove

# 最大体力-10%
    attribute @s generic.max_health modifier remove 00000001-0000-0001-0000-029a00000004

# フルセット解除
    execute if entity @s[tag=IG.Fullset] run function asset:artifact/0664.soul_fire_armor/trigger/fullset/fullset_dis_equip


text:
#> asset:artifact/0935.ideal_chestplate/register
#
# 神器プールへの登録処理
#
# @within tag/function asset:artifact/register

data modify storage asset:artifact RarityRegistry[4] append value 935


text:
#> asset:artifact/0935.ideal_chestplate/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:935} run function asset:artifact/0935.ideal_chestplate/give/2.give


text:
#> asset:artifact/0935.ideal_chestplate/give/2.give
#
# 神器の作成部 ここでID等を定義する
#
# @user
# @within function asset:artifact/0935.ideal_chestplate/give/1.trigger

# 神器の説明や消費MPなどをここで設定する。
# 最後にasset:artifact/common/giveを実行することで入手可能。

# 神器のID (int) スプレッドシートの値を入れる
    data modify storage asset:artifact ID set value 935
# 神器のベースアイテム
    data modify storage asset:artifact Item set value "minecraft:leather_chestplate"
# 神器の名前 (TextComponentString)
    data modify storage asset:artifact Name set value '{"text":"アイディアル","color":"#E6FFF4","underlined":true}'
# 神器の説明文 (TextComponentString[])
    data modify storage asset:artifact Lore set value ['{"text":"最も理想的な装備","color":"#FF78ED"}','{"text":"全ての耐性を持ちあらゆる状況に","color":"#FF78ED"}','{"text":"対応出来る万能な防具","color":"#FF78ED"}','{"text":"全耐性+5%","color":"white"}']
# MP以外の消費物 (TextComponentString) (オプション)
    # data modify storage asset:artifact CostText set value
# 使用回数 (int) (オプション)
    # data modify storage asset:artifact RemainingCount set value
# 神器を発動できるスロット (string) Wikiを参照
    data modify storage asset:artifact Slot set value "chest"
# 神器のトリガー (string) Wikiを参照
    data modify storage asset:artifact Trigger set value "equipping"
# 神器の発動条件 (TextComponentString) (オプション)
    # data modify storage asset:artifact Condition set value
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.Damage set value [0,0]
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackType set value [Physical,Magic]
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.ElementType set value [Fire,Water,Thunder,None]
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.BypassResist set value
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.IsRangeAttack set value
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackRange set value
# MP消費量 (int)
    data modify storage asset:artifact MPCost set value 0
# MP必要量 (int) (オプション)
    # data modify storage asset:artifact MPRequire set value
# 神器のクールダウン (int) (オプション)
    # data modify storage asset:artifact LocalCooldown set value
# グローバルクールダウン (int) (オプション)
    # data modify storage asset:artifact SpecialCooldown set value
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableCooldownMessage set value
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableMPMessage set value
# 扱える神 (string[]) Wikiを参照
    data modify storage asset:artifact CanUsedGod set value "ALL"
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
    data modify storage asset:artifact CustomNBT set value {display:{color:16777215},HideFlags:69,Unbreakable:1b,Enchantments:[{id:"minecraft:fortune",lvl:1s}],AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:8,Operation:0,UUID:[I;1,1,935,5],Slot:"chest"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2.5,Operation:0,UUID:[I;1,1,935,5],Slot:"chest"}]}

# 神器の入手用function
    function asset:artifact/common/give


text:
#> asset:artifact/0935.ideal_chestplate/trigger/2.check_condition
#
# 神器の発動条件をチェックします
#
# @within function asset:artifact/0935.ideal_chestplate/trigger/1.trigger

# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く
    function asset:artifact/common/check_condition/chest
# 他にアイテム等確認する場合はここに書く

# CanUsedタグをチェックして3.main.mcfunctionを実行する
    execute if entity @s[tag=CanUsed] run function asset:artifact/0935.ideal_chestplate/trigger/3.main


text:
#> asset:artifact/0935.ideal_chestplate/trigger/3.main
#
# 神器のメイン処理部
#
# @within function asset:artifact/0935.ideal_chestplate/trigger/2.check_condition

# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う
    function asset:artifact/common/use/chest

# ここから先は神器側の効果の処理を書く

# 全耐性+5%
    data modify storage api: Argument.UUID set value [I;1,1,935,5]
    data modify storage api: Argument.Amount set value 0.05
    data modify storage api: Argument.Operation set value "multiply_base"
    function api:modifier/defense/base/add

# 演出
    playsound minecraft:block.beacon.power_select player @a ~ ~ ~ 1 2
# [ImportKey]: NobwRALgngDgpmAXGGB7ANlA5qgdmAGjAFdiBLAEyTAHYAzOgVgGYBOVxgWgCYaBDAAycALHTg1OrZgDYu06XWZ9ujBgEYAHGsJhcfALYJkgLE1AS5GAjfQAE2ojD4AnAwGck4AMapiuCEjWMibnDecPauYABufOjERuAAHkgCRFCJAL6pRI4UZMQuiNxEThAOPohJYHDo6GQwTkZqAuX2qMUQRuUe9rghSNJEAFbE+jBIBWAARnAAXmQ9ZURkTgCiVTV1SwCOxFGYAMp2gVSIdFF1C04AQtOz9pvbVVD7fIdIJ+h16QC6QA_3
# 多角形 1
    particle minecraft:end_rod ~ ~ ~ 0 0 -2 1 0
    particle minecraft:end_rod ~ ~ ~ 0.11547 0 -1.8 1 0
    particle minecraft:end_rod ~ ~ ~ 0.23094 0 -1.6 1 0
    particle minecraft:end_rod ~ ~ ~ 0.34641 0 -1.4 1 0
    particle minecraft:end_rod ~ ~ ~ 0.46188 0 -1.2 1 0
    particle minecraft:end_rod ~ ~ ~ 0.57735 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ 0.69282 0 -0.8 1 0
    particle minecraft:end_rod ~ ~ ~ 0.80829 0 -0.6 1 0
    particle minecraft:end_rod ~ ~ ~ 0.92376 0 -0.4 1 0
    particle minecraft:end_rod ~ ~ ~ 1.03923 0 -0.2 1 0
    particle minecraft:end_rod ~ ~ ~ 1.1547 0 0 1 0
    particle minecraft:end_rod ~ ~ ~ 1.27017 0 0.2 1 0
    particle minecraft:end_rod ~ ~ ~ 1.38564 0 0.4 1 0
    particle minecraft:end_rod ~ ~ ~ 1.50111 0 0.6 1 0
    particle minecraft:end_rod ~ ~ ~ 1.61658 0 0.8 1 0
    particle minecraft:end_rod ~ ~ ~ 1.73205 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ 1.61658 0 -0.8 1 0
    particle minecraft:end_rod ~ ~ ~ 1.50111 0 -0.6 1 0
    particle minecraft:end_rod ~ ~ ~ 1.38564 0 -0.4 1 0
    particle minecraft:end_rod ~ ~ ~ 1.27017 0 -0.2 1 0
    particle minecraft:end_rod ~ ~ ~ 1.1547 0 0 1 0
    particle minecraft:end_rod ~ ~ ~ 1.03923 0 0.2 1 0
    particle minecraft:end_rod ~ ~ ~ 0.92376 0 0.4 1 0
    particle minecraft:end_rod ~ ~ ~ 0.80829 0 0.6 1 0
    particle minecraft:end_rod ~ ~ ~ 0.69282 0 0.8 1 0
    particle minecraft:end_rod ~ ~ ~ 0.57735 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ 0.46188 0 1.2 1 0
    particle minecraft:end_rod ~ ~ ~ 0.34641 0 1.4 1 0
    particle minecraft:end_rod ~ ~ ~ 0.23094 0 1.6 1 0
    particle minecraft:end_rod ~ ~ ~ 0.11547 0 1.8 1 0
    particle minecraft:end_rod ~ ~ ~ 1.73205 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ 1.50111 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ 1.27017 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ 1.03923 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ 0.80829 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ 0.57735 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ 0.34641 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ 0.11547 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ -0.11547 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ -0.34641 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ -0.57735 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ -0.80829 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ -1.03923 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ -1.27017 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ -1.50111 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ 0 0 2 1 0
    particle minecraft:end_rod ~ ~ ~ -0.11547 0 1.8 1 0
    particle minecraft:end_rod ~ ~ ~ -0.23094 0 1.6 1 0
    particle minecraft:end_rod ~ ~ ~ -0.34641 0 1.4 1 0
    particle minecraft:end_rod ~ ~ ~ -0.46188 0 1.2 1 0
    particle minecraft:end_rod ~ ~ ~ -0.57735 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ -0.69282 0 0.8 1 0
    particle minecraft:end_rod ~ ~ ~ -0.80829 0 0.6 1 0
    particle minecraft:end_rod ~ ~ ~ -0.92376 0 0.4 1 0
    particle minecraft:end_rod ~ ~ ~ -1.03923 0 0.2 1 0
    particle minecraft:end_rod ~ ~ ~ -1.1547 0 0 1 0
    particle minecraft:end_rod ~ ~ ~ -1.27017 0 -0.2 1 0
    particle minecraft:end_rod ~ ~ ~ -1.38564 0 -0.4 1 0
    particle minecraft:end_rod ~ ~ ~ -1.50111 0 -0.6 1 0
    particle minecraft:end_rod ~ ~ ~ -1.61658 0 -0.8 1 0
    particle minecraft:end_rod ~ ~ ~ -1.73205 0 1 1 0
    particle minecraft:end_rod ~ ~ ~ -1.61658 0 0.8 1 0
    particle minecraft:end_rod ~ ~ ~ -1.50111 0 0.6 1 0
    particle minecraft:end_rod ~ ~ ~ -1.38564 0 0.4 1 0
    particle minecraft:end_rod ~ ~ ~ -1.27017 0 0.2 1 0
    particle minecraft:end_rod ~ ~ ~ -1.1547 0 0 1 0
    particle minecraft:end_rod ~ ~ ~ -1.03923 0 -0.2 1 0
    particle minecraft:end_rod ~ ~ ~ -0.92376 0 -0.4 1 0
    particle minecraft:end_rod ~ ~ ~ -0.80829 0 -0.6 1 0
    particle minecraft:end_rod ~ ~ ~ -0.69282 0 -0.8 1 0
    particle minecraft:end_rod ~ ~ ~ -0.57735 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ -0.46188 0 -1.2 1 0
    particle minecraft:end_rod ~ ~ ~ -0.34641 0 -1.4 1 0
    particle minecraft:end_rod ~ ~ ~ -0.23094 0 -1.6 1 0
    particle minecraft:end_rod ~ ~ ~ -0.11547 0 -1.8 1 0
    particle minecraft:end_rod ~ ~ ~ -1.73205 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ -1.50111 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ -1.27017 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ -1.03923 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ -0.80829 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ -0.57735 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ -0.34641 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ -0.11547 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ 0.11547 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ 0.34641 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ 0.57735 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ 0.80829 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ 1.03923 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ 1.27017 0 -1 1 0
    particle minecraft:end_rod ~ ~ ~ 1.50111 0 -1 1 0


text:
#> asset:artifact/0935.ideal_chestplate/trigger/1.trigger
#
# 指定したイベントタイミングで実行されるfunction
#
# @within tag/function asset:artifact/**

# storage asset:idのchestに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
    execute if data storage asset:context id{chest:935} run function asset:artifact/0935.ideal_chestplate/trigger/2.check_condition


text:
#> asset:artifact/0935.ideal_chestplate/trigger/dis_equip/main
#
# 装備を外した時のメイン処理
#
# @within function asset:artifact/0935.ideal_chestplate/trigger/dis_equip/

# 全耐性+5%削除
    data modify storage api: Argument.UUID set value [I;1,1,935,5]
    function api:modifier/defense/base/remove


text:
#> asset:artifact/0648.thorn_leggings/register
#
# 神器プールへの登録処理
#
# @within tag/function asset:artifact/register

data modify storage asset:artifact RarityRegistry[3] append value 648


text:
#> asset:artifact/0648.thorn_leggings/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:648} run function asset:artifact/0648.thorn_leggings/give/2.give


text:
#> asset:artifact/0648.thorn_leggings/give/2.give
#
# 神器の作成部 ここでID等を定義する
#
# @user
# @within function asset:artifact/0648.thorn_leggings/give/1.trigger

# 神器の説明や消費MPなどをここで設定する。
# 最後にasset:artifact/common/giveを実行することで入手可能。

# 神器のID (int) スプレッドシートの値を入れる
    data modify storage asset:artifact ID set value 648
# 神器のベースアイテム
    data modify storage asset:artifact Item set value "minecraft:leather_leggings"
# 神器の名前 (TextComponentString)
    data modify storage asset:artifact Name set value '{"text":"ソーンレギンス","color":"#1D5923"}'
# 神器の説明文 (TextComponentString[])
    data modify storage asset:artifact Lore set value ['[{"text":"荊の鎧を全て纒いし時、血吸いの荊が目を覚ます","color":"#1D5923"}]','[{"text":"水耐性+5% ","color":"aqua"},{"text":"雷耐性+5%","color":"yellow"}]']
# MP以外の消費物 (TextComponentString) (オプション)
    # data modify storage asset:artifact CostText set value
# 使用回数 (int) (オプション)
    # data modify storage asset:artifact RemainingCount set value
# 神器を発動できるスロット (string) Wikiを参照
    data modify storage asset:artifact Slot set value "legs"
# 神器のトリガー (string) Wikiを参照
    data modify storage asset:artifact Trigger set value "equipping"
# 神器の発動条件 (TextComponentString) (オプション)
    # data modify storage asset:artifact Condition set value
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.Damage set value [0,0]
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackType set value [Physical,Magic]
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.ElementType set value [Fire,Water,Thunder,None]
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.BypassResist set value
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.IsRangeAttack set value
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
    # data modify storage asset:artifact AttackInfo.AttackRange set value
# MP消費量 (int)
    data modify storage asset:artifact MPCost set value 0
# MP必要量 (int) (オプション)
    # data modify storage asset:artifact MPRequire set value
# 神器のクールダウン (int) (オプション)
    # data modify storage asset:artifact LocalCooldown set value
# グローバルクールダウン (int) (オプション)
    # data modify storage asset:artifact SpecialCooldown set value
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableCooldownMessage set value
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
    # data modify storage asset:artifact DisableMPMessage set value
# 扱える神 (string[]) Wikiを参照
    data modify storage asset:artifact CanUsedGod set value ["Flora", "Urban", "Wi-ki"]
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
    data modify storage asset:artifact CustomNBT set value {HideFlags:68,display:{color:2454317},Unbreakable:1b,AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:6,Operation:0,UUID:[I;1,1,648,4],Slot:"legs"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:1,Operation:0,UUID:[I;1,1,648,4],Slot:"legs"}]}

# 神器の入手用function
    function asset:artifact/common/give


text:
#> asset:artifact/0648.thorn_leggings/trigger/2.check_condition
#
# 神器の発動条件をチェックします
#
# @within function asset:artifact/0648.thorn_leggings/trigger/1.trigger

# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く
    function asset:artifact/common/check_condition/legs
# 他にアイテム等確認する場合はここに書く

# CanUsedタグをチェックして3.main.mcfunctionを実行する
    execute if entity @s[tag=CanUsed] run function asset:artifact/0648.thorn_leggings/trigger/3.main


text:
#> asset:artifact/0648.thorn_leggings/trigger/3.main
#
# 神器のメイン処理部
#
# @within function asset:artifact/0648.thorn_leggings/trigger/2.check_condition

# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う
    function asset:artifact/common/use/legs

# ここから先は神器側の効果の処理を書く

# 水耐性+5%
    data modify storage api: Argument.UUID set value [I;1,1,648,4]
    data modify storage api: Argument.Amount set value 0.05
    data modify storage api: Argument.Operation set value "multiply_base"
    function api:modifier/defense/water/add

# 雷耐性+5%
    data modify storage api: Argument.UUID set value [I;1,1,648,4]
    data modify storage api: Argument.Amount set value 0.05
    data modify storage api: Argument.Operation set value "multiply_base"
    function api:modifier/defense/thunder/add

# 演出
    particle dust 0 0.2 0 1 ~ ~0.4 ~ 0.4 0.3 0.4 0 10 normal @a
    playsound minecraft:block.sweet_berry_bush.place player @a ~ ~ ~ 1 1 0

# フルセット
    execute if data storage asset:context id.all{head:646,chest:647,legs:648,feet:649} run function asset:artifact/0647.thorn_armor/trigger/4.fullset


text:
#> asset:artifact/0648.thorn_leggings/trigger/1.trigger
#
# 指定したイベントタイミングで実行されるfunction
#
# @within tag/function asset:artifact/**

# storage asset:idのlegsに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
    execute if data storage asset:context id{legs:648} run function asset:artifact/0648.thorn_leggings/trigger/2.check_condition


text:
#> asset:artifact/0648.thorn_leggings/trigger/dis_equip/main
#
# 装備を外した時のメイン処理
#
# @within function asset:artifact/0648.thorn_leggings/trigger/dis_equip/

#> Private
# @private
    #declare tag HZ.FullSet

# UUID
    data modify storage api: Argument.UUID set value [I;1,1,648,4]
# 補正の削除
    function api:modifier/defense/water/remove

# UUID
    data modify storage api: Argument.UUID set value [I;1,1,648,4]
# 補正の削除
    function api:modifier/defense/thunder/remove

# フルセット解除
    execute if entity @s[tag=HZ.FullSet] run function asset:artifact/0647.thorn_armor/trigger/5.fullset_dis_equip


text:
#> asset:artifact/0184.increasable_cookie/register
#
# 神器プールへの登録処理
#
# @within tag/function asset:artifact/register

data modify storage asset:artifact RarityRegistry[1] append value 184


text:
#> asset:artifact/0184.increasable_cookie/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:184} run function asset:artifact/0184.increasable_cookie/give/2.give