diff --git a/Asset/data/asset/functions/artifact/1466.insulator_helmet/give/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1466.insulator_helmet/give/1.trigger.mcfunction new file mode 100644 index 0000000000..a6b5f178db --- /dev/null +++ b/Asset/data/asset/functions/artifact/1466.insulator_helmet/give/1.trigger.mcfunction @@ -0,0 +1,7 @@ +#> asset:artifact/1466.insulator_helmet/give/1.trigger +# +# 神器の取得処理の呼び出し時に実行されるfunction +# +# @within tag/function asset:artifact/give + +execute if data storage asset:context {id:1466} run function asset:artifact/1466.insulator_helmet/give/2.give diff --git a/Asset/data/asset/functions/artifact/1466.insulator_helmet/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/1466.insulator_helmet/give/2.give.mcfunction new file mode 100644 index 0000000000..17f610a254 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1466.insulator_helmet/give/2.give.mcfunction @@ -0,0 +1,78 @@ +#> asset:artifact/1466.insulator_helmet/give/2.give +# +# 神器の作成部 ここでID等を定義する +# +# @user +# @within function asset:artifact/1466.insulator_helmet/give/1.trigger + +# 神器の説明や消費MPなどをここで設定する。 +# 最後にasset:artifact/common/giveを実行することで入手可能。 + +# 神器のID (int) スプレッドシートの値を入れる + data modify storage asset:artifact ID set value 1466 +# 神器のベースアイテム + data modify storage asset:artifact Item set value "minecraft:leather_helmet" +# 神器の名前 (TextComponentString) + data modify storage asset:artifact Name set value '{"text":"絶縁体"}' +# 神器の説明文 (TextComponentString[]) + data modify storage asset:artifact Lore set value ['{"text": "マナを部分的に遮断するヘルメット。"}', '{"text": "属性の出力を大きく制限する代わりにダメージに強い。"}'] +# 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション) + # data modify storage asset:artifact ConsumeItem.Item set value '{"translate":"item.minecraft.stick"}' + # data modify storage asset:artifact ConsumeItem.Count set value 1 + # data modify storage asset:artifact ConsumeItem.Extra set value +# 使用回数 (int) (オプション) + # data modify storage asset:artifact RemainingCount set value +# 神器を発動できるスロット (string) Wikiを参照 + data modify storage asset:artifact Slot set value "head" +# 神器のトリガー (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 +# MP回復量 (int) + # data modify storage asset:artifact MPHealWhenHit set value +# 神器のクールダウン (int) (オプション) + # data modify storage asset:artifact LocalCooldown set value +# 種別クールダウン ({Type: string, Duration: int}) (オプション) + # data modify storage asset:artifact TypeCooldown.Type set value + # data modify storage asset:artifact TypeCooldown.Duration 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 +# 破壊時の音を鳴らさないかどうか (boolean) (オプション) + # data modify storage asset:artifact DisableBreakSound set value +# 装備時効果 ({ID: int, Visible: boolean}[]) (オプション) + # data modify storage asset:artifact Equipment.Effects set value +# 装備時ステータス補正 ({Type: string, Amount: double, Operation: string, StackReduction?: double}[]) (オプション) + data modify storage asset:artifact Equipment.Modifiers set value [] + data modify storage asset:artifact Equipment.Modifiers append value {Type:"attack/fire",Amount:-0.25d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"attack/water",Amount:-0.25d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"attack/thunder",Amount:-0.25d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"defense/base",Amount:0.10d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"generic.armor",Amount:5d,Operation:"add"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"generic.armor_toughness",Amount:2.5d,Operation:"add"} +# 扱える神 (string[]) Wikiを参照 + data modify storage asset:artifact CanUsedGod set value ["Flora", "Urban", "Nyaptov"] +# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション) + data modify storage asset:artifact CustomNBT set value {HideFlags:68,Unbrekable:1b,display:{color:16383998},Unbreakable:1b} + +# 神器の入手用function + function asset:artifact/common/give diff --git a/Asset/data/asset/functions/artifact/1466.insulator_helmet/register.mcfunction b/Asset/data/asset/functions/artifact/1466.insulator_helmet/register.mcfunction new file mode 100644 index 0000000000..f997fc4952 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1466.insulator_helmet/register.mcfunction @@ -0,0 +1,8 @@ +#> asset:artifact/1466.insulator_helmet/register +# +# 神器プールへの登録処理 +# +# @within tag/function asset:artifact/register + +data modify storage asset:artifact RarityRegistry[4] append value [1466, 1467, 1468, 1469] +data modify storage asset:artifact RarityRegistryWithColor.Blue[4] append value [1466, 1467, 1468, 1469] diff --git a/Asset/data/asset/functions/artifact/1466.insulator_helmet/trigger/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1466.insulator_helmet/trigger/1.trigger.mcfunction new file mode 100644 index 0000000000..48d5ed7205 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1466.insulator_helmet/trigger/1.trigger.mcfunction @@ -0,0 +1,8 @@ +#> asset:artifact/1466.insulator_helmet/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{head:1466} run function asset:artifact/1466.insulator_helmet/trigger/2.check_condition diff --git a/Asset/data/asset/functions/artifact/1466.insulator_helmet/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/1466.insulator_helmet/trigger/2.check_condition.mcfunction new file mode 100644 index 0000000000..bcc3b183cc --- /dev/null +++ b/Asset/data/asset/functions/artifact/1466.insulator_helmet/trigger/2.check_condition.mcfunction @@ -0,0 +1,12 @@ +#> asset:artifact/1466.insulator_helmet/trigger/2.check_condition +# +# 神器の発動条件をチェックします +# +# @within function asset:artifact/1466.insulator_helmet/trigger/1.trigger + +# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く + function asset:artifact/common/check_condition/head +# 他にアイテム等確認する場合はここに書く + +# CanUsedタグをチェックして3.main.mcfunctionを実行する + execute if entity @s[tag=CanUsed] run function asset:artifact/1466.insulator_helmet/trigger/3.main diff --git a/Asset/data/asset/functions/artifact/1466.insulator_helmet/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/1466.insulator_helmet/trigger/3.main.mcfunction new file mode 100644 index 0000000000..5781bd2542 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1466.insulator_helmet/trigger/3.main.mcfunction @@ -0,0 +1,13 @@ +#> asset:artifact/1466.insulator_helmet/trigger/3.main +# +# 神器のメイン処理部 +# +# @within function asset:artifact/1466.insulator_helmet/trigger/2.check_condition + +# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う + function asset:artifact/common/use/head + +# ここから先は神器側の効果の処理を書く + playsound block.beacon.deactivate player @a ~ ~ ~ 1.0 1.0 + playsound block.chain.break player @a ~ ~ ~ 1.0 0.5 + # (パーティクルはあえてナシ) diff --git a/Asset/data/asset/functions/artifact/1467.insulator_chestplate/give/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1467.insulator_chestplate/give/1.trigger.mcfunction new file mode 100644 index 0000000000..7bf726b821 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1467.insulator_chestplate/give/1.trigger.mcfunction @@ -0,0 +1,7 @@ +#> asset:artifact/1467.insulator_chestplate/give/1.trigger +# +# 神器の取得処理の呼び出し時に実行されるfunction +# +# @within tag/function asset:artifact/give + +execute if data storage asset:context {id:1467} run function asset:artifact/1467.insulator_chestplate/give/2.give diff --git a/Asset/data/asset/functions/artifact/1467.insulator_chestplate/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/1467.insulator_chestplate/give/2.give.mcfunction new file mode 100644 index 0000000000..9c64d6dca7 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1467.insulator_chestplate/give/2.give.mcfunction @@ -0,0 +1,76 @@ +#> asset:artifact/1467.insulator_chestplate/give/2.give +# +# 神器の作成部 ここでID等を定義する +# +# @user +# @within function asset:artifact/1467.insulator_chestplate/give/1.trigger + +# 神器の説明や消費MPなどをここで設定する。 +# 最後にasset:artifact/common/giveを実行することで入手可能。 + +# 神器のID (int) スプレッドシートの値を入れる + data modify storage asset:artifact ID set value 1467 +# 神器のベースアイテム + data modify storage asset:artifact Item set value "minecraft:leather_chestplate" +# 神器の名前 (TextComponentString) + data modify storage asset:artifact Name set value '{"text": "絶縁体"}' +# 神器の説明文 (TextComponentString[]) + data modify storage asset:artifact Lore set value ['{"text": "マナを部分的に遮断するチェストプレート。"}', '{"text": "属性の出力を大きく制限する代わりにダメージに強い。"}'] +# 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション) + # data modify storage asset:artifact ConsumeItem.Item set value '{"translate":"item.minecraft.stick"}' + # data modify storage asset:artifact ConsumeItem.Count set value 1 + # data modify storage asset:artifact ConsumeItem.Extra 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 +# MP回復量 (int) + # data modify storage asset:artifact MPHealWhenHit set value +# 神器のクールダウン (int) (オプション) + # data modify storage asset:artifact LocalCooldown set value +# 種別クールダウン ({Type: string, Duration: int}) (オプション) + # data modify storage asset:artifact TypeCooldown.Type set value + # data modify storage asset:artifact TypeCooldown.Duration 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 +# 破壊時の音を鳴らさないかどうか (boolean) (オプション) + # data modify storage asset:artifact DisableBreakSound set value +# 装備時ステータス補正 ({Type: string, Amount: double, Operation: string, StackReduction?: double}[]) (オプション) + data modify storage asset:artifact Equipment.Modifiers set value [] + data modify storage asset:artifact Equipment.Modifiers append value {Type:"attack/fire",Amount:-0.25d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"attack/water",Amount:-0.25d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"attack/thunder",Amount:-0.25d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"defense/base",Amount:0.10d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"generic.armor",Amount:8d,Operation:"add"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"generic.armor_toughness",Amount:2.5d,Operation:"add"} +# 扱える神 (string[]) Wikiを参照 + data modify storage asset:artifact CanUsedGod set value ["Flora", "Urban", "Nyaptov"] +# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション) + data modify storage asset:artifact CustomNBT set value {HideFlags:68,Unbrekable:1b,display:{color:16383998},Unbreakable:1b} + +# 神器の入手用function + function asset:artifact/common/give diff --git a/Asset/data/asset/functions/artifact/1467.insulator_chestplate/trigger/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1467.insulator_chestplate/trigger/1.trigger.mcfunction new file mode 100644 index 0000000000..2ed0e4e418 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1467.insulator_chestplate/trigger/1.trigger.mcfunction @@ -0,0 +1,8 @@ +#> asset:artifact/1467.insulator_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:1467} run function asset:artifact/1467.insulator_chestplate/trigger/2.check_condition diff --git a/Asset/data/asset/functions/artifact/1467.insulator_chestplate/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/1467.insulator_chestplate/trigger/2.check_condition.mcfunction new file mode 100644 index 0000000000..2276c2ae3a --- /dev/null +++ b/Asset/data/asset/functions/artifact/1467.insulator_chestplate/trigger/2.check_condition.mcfunction @@ -0,0 +1,12 @@ +#> asset:artifact/1467.insulator_chestplate/trigger/2.check_condition +# +# 神器の発動条件をチェックします +# +# @within function asset:artifact/1467.insulator_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/1467.insulator_chestplate/trigger/3.main diff --git a/Asset/data/asset/functions/artifact/1467.insulator_chestplate/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/1467.insulator_chestplate/trigger/3.main.mcfunction new file mode 100644 index 0000000000..428949272c --- /dev/null +++ b/Asset/data/asset/functions/artifact/1467.insulator_chestplate/trigger/3.main.mcfunction @@ -0,0 +1,12 @@ +#> asset:artifact/1467.insulator_chestplate/trigger/3.main +# +# 神器のメイン処理部 +# +# @within function asset:artifact/1467.insulator_chestplate/trigger/2.check_condition + +# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う + function asset:artifact/common/use/chest + +# ここから先は神器側の効果の処理を書く + playsound block.beacon.deactivate player @a ~ ~ ~ 1.0 1.0 + playsound block.chain.break player @a ~ ~ ~ 1.0 0.5 diff --git a/Asset/data/asset/functions/artifact/1468.insulator_leggings/give/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1468.insulator_leggings/give/1.trigger.mcfunction new file mode 100644 index 0000000000..d0a77a6b23 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1468.insulator_leggings/give/1.trigger.mcfunction @@ -0,0 +1,7 @@ +#> asset:artifact/1468.insulator_leggings/give/1.trigger +# +# 神器の取得処理の呼び出し時に実行されるfunction +# +# @within tag/function asset:artifact/give + +execute if data storage asset:context {id:1468} run function asset:artifact/1468.insulator_leggings/give/2.give diff --git a/Asset/data/asset/functions/artifact/1468.insulator_leggings/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/1468.insulator_leggings/give/2.give.mcfunction new file mode 100644 index 0000000000..4379002c07 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1468.insulator_leggings/give/2.give.mcfunction @@ -0,0 +1,76 @@ +#> asset:artifact/1468.insulator_leggings/give/2.give +# +# 神器の作成部 ここでID等を定義する +# +# @user +# @within function asset:artifact/1468.insulator_leggings/give/1.trigger + +# 神器の説明や消費MPなどをここで設定する。 +# 最後にasset:artifact/common/giveを実行することで入手可能。 + +# 神器のID (int) スプレッドシートの値を入れる + data modify storage asset:artifact ID set value 1468 +# 神器のベースアイテム + data modify storage asset:artifact Item set value "minecraft:leather_leggings" +# 神器の名前 (TextComponentString) + data modify storage asset:artifact Name set value '{"text": "絶縁体"}' +# 神器の説明文 (TextComponentString[]) + data modify storage asset:artifact Lore set value ['{"text": "マナを部分的に遮断するレギンス。"}', '{"text": "属性の出力を大きく制限する代わりにダメージに強い。"}'] +# 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション) + # data modify storage asset:artifact ConsumeItem.Item set value '{"translate":"item.minecraft.stick"}' + # data modify storage asset:artifact ConsumeItem.Count set value 1 + # data modify storage asset:artifact ConsumeItem.Extra 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 +# MP回復量 (int) + # data modify storage asset:artifact MPHealWhenHit set value +# 神器のクールダウン (int) (オプション) + # data modify storage asset:artifact LocalCooldown set value +# 種別クールダウン ({Type: string, Duration: int}) (オプション) + # data modify storage asset:artifact TypeCooldown.Type set value + # data modify storage asset:artifact TypeCooldown.Duration 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 +# 破壊時の音を鳴らさないかどうか (boolean) (オプション) + # data modify storage asset:artifact DisableBreakSound set value +# 装備時ステータス補正 ({Type: string, Amount: double, Operation: string, StackReduction?: double}[]) (オプション) + data modify storage asset:artifact Equipment.Modifiers set value [] + data modify storage asset:artifact Equipment.Modifiers append value {Type:"attack/fire",Amount:-0.25d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"attack/water",Amount:-0.25d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"attack/thunder",Amount:-0.25d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"defense/base",Amount:0.10d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"generic.armor",Amount:7d,Operation:"add"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"generic.armor_toughness",Amount:2.5d,Operation:"add"} +# 扱える神 (string[]) Wikiを参照 + data modify storage asset:artifact CanUsedGod set value ["Flora", "Urban", "Nyaptov"] +# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション) + data modify storage asset:artifact CustomNBT set value {HideFlags:68,Unbrekable:1b,display:{color:16383998},Unbreakable:1b} + +# 神器の入手用function + function asset:artifact/common/give diff --git a/Asset/data/asset/functions/artifact/1468.insulator_leggings/trigger/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1468.insulator_leggings/trigger/1.trigger.mcfunction new file mode 100644 index 0000000000..0ec8590bf3 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1468.insulator_leggings/trigger/1.trigger.mcfunction @@ -0,0 +1,8 @@ +#> asset:artifact/1468.insulator_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:1468} run function asset:artifact/1468.insulator_leggings/trigger/2.check_condition diff --git a/Asset/data/asset/functions/artifact/1468.insulator_leggings/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/1468.insulator_leggings/trigger/2.check_condition.mcfunction new file mode 100644 index 0000000000..a68a2a95df --- /dev/null +++ b/Asset/data/asset/functions/artifact/1468.insulator_leggings/trigger/2.check_condition.mcfunction @@ -0,0 +1,12 @@ +#> asset:artifact/1468.insulator_leggings/trigger/2.check_condition +# +# 神器の発動条件をチェックします +# +# @within function asset:artifact/1468.insulator_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/1468.insulator_leggings/trigger/3.main diff --git a/Asset/data/asset/functions/artifact/1468.insulator_leggings/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/1468.insulator_leggings/trigger/3.main.mcfunction new file mode 100644 index 0000000000..f6d0a415bd --- /dev/null +++ b/Asset/data/asset/functions/artifact/1468.insulator_leggings/trigger/3.main.mcfunction @@ -0,0 +1,12 @@ +#> asset:artifact/1468.insulator_leggings/trigger/3.main +# +# 神器のメイン処理部 +# +# @within function asset:artifact/1468.insulator_leggings/trigger/2.check_condition + +# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う + function asset:artifact/common/use/legs + +# ここから先は神器側の効果の処理を書く + playsound block.beacon.deactivate player @a ~ ~ ~ 1.0 1.0 + playsound block.chain.break player @a ~ ~ ~ 1.0 0.5 diff --git a/Asset/data/asset/functions/artifact/1469.insulator_boots/give/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1469.insulator_boots/give/1.trigger.mcfunction new file mode 100644 index 0000000000..f11cedf333 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1469.insulator_boots/give/1.trigger.mcfunction @@ -0,0 +1,7 @@ +#> asset:artifact/1469.insulator_boots/give/1.trigger +# +# 神器の取得処理の呼び出し時に実行されるfunction +# +# @within tag/function asset:artifact/give + +execute if data storage asset:context {id:1469} run function asset:artifact/1469.insulator_boots/give/2.give diff --git a/Asset/data/asset/functions/artifact/1469.insulator_boots/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/1469.insulator_boots/give/2.give.mcfunction new file mode 100644 index 0000000000..89eb17b815 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1469.insulator_boots/give/2.give.mcfunction @@ -0,0 +1,76 @@ +#> asset:artifact/1469.insulator_boots/give/2.give +# +# 神器の作成部 ここでID等を定義する +# +# @user +# @within function asset:artifact/1469.insulator_boots/give/1.trigger + +# 神器の説明や消費MPなどをここで設定する。 +# 最後にasset:artifact/common/giveを実行することで入手可能。 + +# 神器のID (int) スプレッドシートの値を入れる + data modify storage asset:artifact ID set value 1469 +# 神器のベースアイテム + data modify storage asset:artifact Item set value "minecraft:leather_boots" +# 神器の名前 (TextComponentString) + data modify storage asset:artifact Name set value '{"text": "絶縁体"}' +# 神器の説明文 (TextComponentString[]) + data modify storage asset:artifact Lore set value ['{"text": "マナを部分的に遮断するブーツ。"}', '{"text": "属性の出力を大きく制限する代わりにダメージに強い。"}'] +# 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション) + # data modify storage asset:artifact ConsumeItem.Item set value '{"translate":"item.minecraft.stick"}' + # data modify storage asset:artifact ConsumeItem.Count set value 1 + # data modify storage asset:artifact ConsumeItem.Extra set value +# 使用回数 (int) (オプション) + # data modify storage asset:artifact RemainingCount set value +# 神器を発動できるスロット (string) Wikiを参照 + data modify storage asset:artifact Slot set value "feet" +# 神器のトリガー (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 +# MP回復量 (int) + # data modify storage asset:artifact MPHealWhenHit set value +# 神器のクールダウン (int) (オプション) + # data modify storage asset:artifact LocalCooldown set value +# 種別クールダウン ({Type: string, Duration: int}) (オプション) + # data modify storage asset:artifact TypeCooldown.Type set value + # data modify storage asset:artifact TypeCooldown.Duration 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 +# 破壊時の音を鳴らさないかどうか (boolean) (オプション) + # data modify storage asset:artifact DisableBreakSound set value +# 装備時ステータス補正 ({Type: string, Amount: double, Operation: string, StackReduction?: double}[]) (オプション) + data modify storage asset:artifact Equipment.Modifiers set value [] + data modify storage asset:artifact Equipment.Modifiers append value {Type:"attack/fire",Amount:-0.25d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"attack/water",Amount:-0.25d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"attack/thunder",Amount:-0.25d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"defense/base",Amount:0.10d,Operation:"multiply_base"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"generic.armor",Amount:7d,Operation:"add"} + data modify storage asset:artifact Equipment.Modifiers append value {Type:"generic.armor_toughness",Amount:2.5d,Operation:"add"} +# 扱える神 (string[]) Wikiを参照 + data modify storage asset:artifact CanUsedGod set value ["Flora", "Urban", "Nyaptov"] +# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション) + data modify storage asset:artifact CustomNBT set value {HideFlags:68,Unbrekable:1b,display:{color:16383998},Unbreakable:1b} + +# 神器の入手用function + function asset:artifact/common/give diff --git a/Asset/data/asset/functions/artifact/1469.insulator_boots/trigger/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1469.insulator_boots/trigger/1.trigger.mcfunction new file mode 100644 index 0000000000..7ef9cd945d --- /dev/null +++ b/Asset/data/asset/functions/artifact/1469.insulator_boots/trigger/1.trigger.mcfunction @@ -0,0 +1,8 @@ +#> asset:artifact/1469.insulator_boots/trigger/1.trigger +# +# 指定したイベントタイミングで実行されるfunction +# +# @within tag/function asset:artifact/** + +# storage asset:idのfeetに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する + execute if data storage asset:context id{feet:1469} run function asset:artifact/1469.insulator_boots/trigger/2.check_condition diff --git a/Asset/data/asset/functions/artifact/1469.insulator_boots/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/1469.insulator_boots/trigger/2.check_condition.mcfunction new file mode 100644 index 0000000000..cf25c40431 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1469.insulator_boots/trigger/2.check_condition.mcfunction @@ -0,0 +1,12 @@ +#> asset:artifact/1469.insulator_boots/trigger/2.check_condition +# +# 神器の発動条件をチェックします +# +# @within function asset:artifact/1469.insulator_boots/trigger/1.trigger + +# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く + function asset:artifact/common/check_condition/feet +# 他にアイテム等確認する場合はここに書く + +# CanUsedタグをチェックして3.main.mcfunctionを実行する + execute if entity @s[tag=CanUsed] run function asset:artifact/1469.insulator_boots/trigger/3.main diff --git a/Asset/data/asset/functions/artifact/1469.insulator_boots/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/1469.insulator_boots/trigger/3.main.mcfunction new file mode 100644 index 0000000000..c0ce5d6a13 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1469.insulator_boots/trigger/3.main.mcfunction @@ -0,0 +1,12 @@ +#> asset:artifact/1469.insulator_boots/trigger/3.main +# +# 神器のメイン処理部 +# +# @within function asset:artifact/1469.insulator_boots/trigger/2.check_condition + +# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う + function asset:artifact/common/use/feet + +# ここから先は神器側の効果の処理を書く + playsound block.beacon.deactivate player @a ~ ~ ~ 1.0 1.0 + playsound block.chain.break player @a ~ ~ ~ 1.0 0.5 diff --git a/Asset/data/asset/tags/functions/artifact/equip.json b/Asset/data/asset/tags/functions/artifact/equip.json index 49f53e2155..eb6fcd2448 100644 --- a/Asset/data/asset/tags/functions/artifact/equip.json +++ b/Asset/data/asset/tags/functions/artifact/equip.json @@ -1,5 +1,9 @@ { "values": [ + "asset:artifact/1466.insulator_helmet/trigger/1.trigger", + "asset:artifact/1467.insulator_chestplate/trigger/1.trigger", + "asset:artifact/1468.insulator_leggings/trigger/1.trigger", + "asset:artifact/1469.insulator_boots/trigger/1.trigger", "asset:artifact/1325.calamity_chain/trigger/1.trigger", "asset:artifact/1318.blue_bouquet/trigger/1.trigger", "asset:artifact/1317.oblivious_feather/trigger/1.trigger", diff --git a/Asset/data/asset/tags/functions/artifact/give.json b/Asset/data/asset/tags/functions/artifact/give.json index 16715fe3c7..be319c14fd 100644 --- a/Asset/data/asset/tags/functions/artifact/give.json +++ b/Asset/data/asset/tags/functions/artifact/give.json @@ -1,5 +1,9 @@ { "values": [ + "asset:artifact/1469.insulator_boots/give/1.trigger", + "asset:artifact/1468.insulator_leggings/give/1.trigger", + "asset:artifact/1467.insulator_chestplate/give/1.trigger", + "asset:artifact/1466.insulator_helmet/give/1.trigger", "asset:artifact/1252.fox_candle/give/1.trigger", "asset:artifact/1343.coffee_milk_pack/give/1.trigger", "asset:artifact/1342.fruit_milk_pack/give/1.trigger", diff --git a/Asset/data/asset/tags/functions/artifact/register.json b/Asset/data/asset/tags/functions/artifact/register.json index 7e92660e5a..fac58acba8 100644 --- a/Asset/data/asset/tags/functions/artifact/register.json +++ b/Asset/data/asset/tags/functions/artifact/register.json @@ -1,5 +1,6 @@ { "values": [ + "asset:artifact/1466.insulator_helmet/register", "asset:artifact/1252.fox_candle/register", "asset:artifact/1343.coffee_milk_pack/register", "asset:artifact/1342.fruit_milk_pack/register",