-
Notifications
You must be signed in to change notification settings - Fork 0
✨ [Artifact 1364 - 1366] かき氷(イチゴ、ブルーハワイ、メロン)を作成 #1898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Lapis-LJA
wants to merge
5
commits into
master
Choose a base branch
from
dev/lapis_artifact1364-1366
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/artifact/1364.shaved_ice_strawberry/give/1.trigger.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #> asset:artifact/1364.shaved_ice_strawberry/give/1.trigger | ||
| # | ||
| # 神器の取得処理の呼び出し時に実行されるfunction | ||
| # | ||
| # @within tag/function asset:artifact/give | ||
|
|
||
| execute if data storage asset:context {id:1364} run function asset:artifact/1364.shaved_ice_strawberry/give/2.give |
68 changes: 68 additions & 0 deletions
68
Asset/data/asset/functions/artifact/1364.shaved_ice_strawberry/give/2.give.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| #> asset:artifact/1364.shaved_ice_strawberry/give/2.give | ||
| # | ||
| # 神器の作成部 ここでID等を定義する | ||
| # | ||
| # @user | ||
| # @within function asset:artifact/1364.shaved_ice_strawberry/give/1.trigger | ||
|
|
||
| # 神器の説明や消費MPなどをここで設定する。 | ||
| # 最後にasset:artifact/common/giveを実行することで入手可能。 | ||
|
|
||
| # 神器のID (int) スプレッドシートの値を入れる | ||
| data modify storage asset:artifact ID set value 1364 | ||
| # 神器のベースアイテム | ||
| data modify storage asset:artifact Item set value "minecraft:cookie" | ||
| # 神器の名前 (TextComponentString) | ||
| data modify storage asset:artifact Name set value '{"text":"かき氷(イチゴ)","color":"#ff457d"}' | ||
| # 神器の説明文 (TextComponentString[]) | ||
| data modify storage asset:artifact Lore set value ['{"translate":"体力を5回復し、%1$sを10秒間得る","color":"white","with":[{"text":"水攻撃+6%","color":"aqua"}]}','{"translate":"-%1$s水攻撃バフは最大2スタックまで重複する","color":"white","with":[{"text":"\\u0003","font":"space"}]}','{"translate":"-%1$s3スタックになるとバフが解除され、10の固定ダメージを受ける","color":"white","with":[{"text":"\\u0003","font":"space"}]}'] | ||
| # 消費アイテム ({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 5 | ||
| # 神器を発動できるスロット (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 | ||
| # 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 true | ||
| # 扱える神 (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 | ||
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/artifact/1364.shaved_ice_strawberry/register.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #> asset:artifact/1364.shaved_ice_strawberry/register | ||
| # | ||
| # 神器プールへの登録処理 | ||
| # | ||
| # @within tag/function asset:artifact/register | ||
|
|
||
| # 加工機ではなく日替わり商人に登録する | ||
| # data modify storage asset:artifact RarityRegistry[4] append value [1364] | ||
|
|
||
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/artifact/1364.shaved_ice_strawberry/trigger/1.trigger.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #> asset:artifact/1364.shaved_ice_strawberry/trigger/1.trigger | ||
| # | ||
| # 指定したイベントタイミングで実行されるfunction | ||
| # | ||
| # @within tag/function asset:artifact/** | ||
|
|
||
| # storage asset:idのautoに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する | ||
| execute if data storage asset:context id{auto:1364} run function asset:artifact/1364.shaved_ice_strawberry/trigger/2.check_condition |
12 changes: 12 additions & 0 deletions
12
.../asset/functions/artifact/1364.shaved_ice_strawberry/trigger/2.check_condition.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #> asset:artifact/1364.shaved_ice_strawberry/trigger/2.check_condition | ||
| # | ||
| # 神器の発動条件をチェックします | ||
| # | ||
| # @within function asset:artifact/1364.shaved_ice_strawberry/trigger/1.trigger | ||
|
|
||
| # 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く | ||
| function asset:artifact/common/check_condition/auto | ||
| # 他にアイテム等確認する場合はここに書く | ||
|
|
||
| # CanUsedタグをチェックして3.main.mcfunctionを実行する | ||
| execute if entity @s[tag=CanUsed] run function asset:artifact/1364.shaved_ice_strawberry/trigger/3.main |
22 changes: 22 additions & 0 deletions
22
Asset/data/asset/functions/artifact/1364.shaved_ice_strawberry/trigger/3.main.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| #> asset:artifact/1364.shaved_ice_strawberry/trigger/3.main | ||
| # | ||
| # 神器のメイン処理部 | ||
| # | ||
| # @within function asset:artifact/1364.shaved_ice_strawberry/trigger/2.check_condition | ||
|
|
||
| # 基本的な使用時の処理(MP消費や使用回数の処理など)を行う | ||
| function asset:artifact/common/use/auto | ||
|
|
||
| # ここから先は神器側の効果の処理を書く | ||
|
|
||
| # 他のかき氷のところの数値調整も忘れずに!!!!!!!!!!! | ||
|
|
||
|
haiiro2gou marked this conversation as resolved.
|
||
| # バフがあるかチェック | ||
| data modify storage api: Argument.ID set value 348 | ||
| function api:entity/mob/effect/get/from_id | ||
|
|
||
| # スタックがNでないなら回復とバフ | ||
| execute unless data storage api: Return.Effect{Stack:2} run function asset:artifact/1364.shaved_ice_strawberry/trigger/heal_and_buff | ||
|
|
||
| # スタックがNなら回復とバフ | ||
|
|
||
| execute if data storage api: Return.Effect{Stack:2} run function asset:artifact/1364.shaved_ice_strawberry/trigger/damage_and_clear_buff | ||
23 changes: 23 additions & 0 deletions
23
...et/functions/artifact/1364.shaved_ice_strawberry/trigger/damage_and_clear_buff.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #> asset:artifact/1364.shaved_ice_strawberry/trigger/damage_and_clear_buff | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1364.shaved_ice_strawberry/trigger/3.main | ||
|
|
||
| # 演出 | ||
| playsound minecraft:block.amethyst_cluster.break player @a ~ ~ ~ 1 0.8 | ||
|
|
||
| # バフ解除 | ||
| data modify storage api: Argument.ID set value 348 | ||
| function api:entity/mob/effect/remove/from_id | ||
| function api:entity/mob/effect/reset | ||
|
|
||
| # ダメージ | ||
| data modify storage api: Argument.Damage set value 10 | ||
| data modify storage api: Argument.AttackType set value "Physical" | ||
| data modify storage api: Argument.ElementType set value "Water" | ||
| data modify storage api: Argument.FixedDamage set value true | ||
| data modify storage api: Argument.DeathMessage append value '[{"translate": "%1$sは頭がキーンとした","with":[{"selector":"@s"}]}]' | ||
| function api:damage/modifier | ||
| function api:damage/ | ||
| function api:damage/reset |
16 changes: 16 additions & 0 deletions
16
...data/asset/functions/artifact/1364.shaved_ice_strawberry/trigger/heal_and_buff.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #> asset:artifact/1364.shaved_ice_strawberry/trigger/heal_and_buff | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1364.shaved_ice_strawberry/trigger/3.main | ||
|
|
||
| # 体力を回復する | ||
| data modify storage api: Argument.Heal set value 5 | ||
| function api:heal/modifier | ||
| function api:heal/ | ||
| function api:heal/reset | ||
|
|
||
| # バフ | ||
| data modify storage api: Argument.ID set value 348 | ||
| function api:entity/mob/effect/give | ||
| function api:entity/mob/effect/reset |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/artifact/1365.shaved_ice_blue_hawaii/give/1.trigger.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #> asset:artifact/1365.shaved_ice_blue_hawaii/give/1.trigger | ||
| # | ||
| # 神器の取得処理の呼び出し時に実行されるfunction | ||
| # | ||
| # @within tag/function asset:artifact/give | ||
|
|
||
| execute if data storage asset:context {id:1365} run function asset:artifact/1365.shaved_ice_blue_hawaii/give/2.give |
68 changes: 68 additions & 0 deletions
68
Asset/data/asset/functions/artifact/1365.shaved_ice_blue_hawaii/give/2.give.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| #> asset:artifact/1365.shaved_ice_blue_hawaii/give/2.give | ||
| # | ||
| # 神器の作成部 ここでID等を定義する | ||
| # | ||
| # @user | ||
| # @within function asset:artifact/1365.shaved_ice_blue_hawaii/give/1.trigger | ||
|
|
||
| # 神器の説明や消費MPなどをここで設定する。 | ||
| # 最後にasset:artifact/common/giveを実行することで入手可能。 | ||
|
|
||
| # 神器のID (int) スプレッドシートの値を入れる | ||
| data modify storage asset:artifact ID set value 1365 | ||
| # 神器のベースアイテム | ||
| data modify storage asset:artifact Item set value "minecraft:cookie" | ||
| # 神器の名前 (TextComponentString) | ||
| data modify storage asset:artifact Name set value '{"text":"かき氷(ブルーハワイ)","color":"#36a1ff"}' | ||
| # 神器の説明文 (TextComponentString[]) | ||
| data modify storage asset:artifact Lore set value ['{"translate":"体力を5回復し、%1$sを10秒間得る","color":"white","with":[{"text":"水攻撃+6%","color":"aqua"}]}','{"translate":"-%1$s水攻撃バフは最大2スタックまで重複する","color":"white","with":[{"text":"\\u0003","font":"space"}]}','{"translate":"-%1$s3スタックになるとバフが解除され、10の固定ダメージを受ける","color":"white","with":[{"text":"\\u0003","font":"space"}]}'] | ||
|
haiiro2gou marked this conversation as resolved.
|
||
| # 消費アイテム ({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 5 | ||
| # 神器を発動できるスロット (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 | ||
| # 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 true | ||
| # 扱える神 (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 | ||
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/artifact/1365.shaved_ice_blue_hawaii/register.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #> asset:artifact/1365.shaved_ice_blue_hawaii/register | ||
| # | ||
| # 神器プールへの登録処理 | ||
| # | ||
| # @within tag/function asset:artifact/register | ||
|
|
||
| # 加工機ではなく日替わり商人に登録する | ||
| # data modify storage asset:artifact RarityRegistry[4] append value [1365] | ||
|
|
||
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/artifact/1365.shaved_ice_blue_hawaii/trigger/1.trigger.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #> asset:artifact/1365.shaved_ice_blue_hawaii/trigger/1.trigger | ||
| # | ||
| # 指定したイベントタイミングで実行されるfunction | ||
| # | ||
| # @within tag/function asset:artifact/** | ||
|
|
||
| # storage asset:idのautoに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する | ||
| execute if data storage asset:context id{auto:1365} run function asset:artifact/1365.shaved_ice_blue_hawaii/trigger/2.check_condition |
12 changes: 12 additions & 0 deletions
12
...asset/functions/artifact/1365.shaved_ice_blue_hawaii/trigger/2.check_condition.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #> asset:artifact/1365.shaved_ice_blue_hawaii/trigger/2.check_condition | ||
| # | ||
| # 神器の発動条件をチェックします | ||
| # | ||
| # @within function asset:artifact/1365.shaved_ice_blue_hawaii/trigger/1.trigger | ||
|
|
||
| # 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く | ||
| function asset:artifact/common/check_condition/auto | ||
| # 他にアイテム等確認する場合はここに書く | ||
|
|
||
| # CanUsedタグをチェックして3.main.mcfunctionを実行する | ||
| execute if entity @s[tag=CanUsed] run function asset:artifact/1365.shaved_ice_blue_hawaii/trigger/3.main |
22 changes: 22 additions & 0 deletions
22
Asset/data/asset/functions/artifact/1365.shaved_ice_blue_hawaii/trigger/3.main.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| #> asset:artifact/1365.shaved_ice_blue_hawaii/trigger/3.main | ||
| # | ||
| # 神器のメイン処理部 | ||
| # | ||
| # @within function asset:artifact/1365.shaved_ice_blue_hawaii/trigger/2.check_condition | ||
|
|
||
| # 基本的な使用時の処理(MP消費や使用回数の処理など)を行う | ||
| function asset:artifact/common/use/auto | ||
|
|
||
| # ここから先は神器側の効果の処理を書く | ||
|
|
||
| # 他のかき氷のところの数値調整も忘れずに!!!!!!!!!!! | ||
|
|
||
|
haiiro2gou marked this conversation as resolved.
|
||
| # バフがあるかチェック | ||
| data modify storage api: Argument.ID set value 348 | ||
| function api:entity/mob/effect/get/from_id | ||
|
|
||
| # スタックがNでないなら回復とバフ | ||
| execute unless data storage api: Return.Effect{Stack:2} run function asset:artifact/1365.shaved_ice_blue_hawaii/trigger/heal_and_buff | ||
|
|
||
| # スタックがNなら回復とバフ | ||
|
|
||
| execute if data storage api: Return.Effect{Stack:2} run function asset:artifact/1365.shaved_ice_blue_hawaii/trigger/damage_and_clear_buff | ||
23 changes: 23 additions & 0 deletions
23
...t/functions/artifact/1365.shaved_ice_blue_hawaii/trigger/damage_and_clear_buff.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #> asset:artifact/1365.shaved_ice_blue_hawaii/trigger/damage_and_clear_buff | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1365.shaved_ice_blue_hawaii/trigger/3.main | ||
|
|
||
| # 演出 | ||
| playsound minecraft:block.amethyst_cluster.break player @a ~ ~ ~ 1 0.8 | ||
|
|
||
| # バフ解除 | ||
| data modify storage api: Argument.ID set value 348 | ||
| function api:entity/mob/effect/remove/from_id | ||
| function api:entity/mob/effect/reset | ||
|
|
||
| # ダメージ | ||
| data modify storage api: Argument.Damage set value 10 | ||
| data modify storage api: Argument.AttackType set value "Physical" | ||
| data modify storage api: Argument.ElementType set value "Water" | ||
| data modify storage api: Argument.FixedDamage set value true | ||
| data modify storage api: Argument.DeathMessage append value '[{"translate": "%1$sは頭がキーンとした","with":[{"selector":"@s"}]}]' | ||
| function api:damage/modifier | ||
| function api:damage/ | ||
| function api:damage/reset |
16 changes: 16 additions & 0 deletions
16
...ata/asset/functions/artifact/1365.shaved_ice_blue_hawaii/trigger/heal_and_buff.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #> asset:artifact/1365.shaved_ice_blue_hawaii/trigger/heal_and_buff | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1365.shaved_ice_blue_hawaii/trigger/3.main | ||
|
|
||
| # 体力を回復する | ||
| data modify storage api: Argument.Heal set value 5 | ||
| function api:heal/modifier | ||
| function api:heal/ | ||
| function api:heal/reset | ||
|
|
||
| # バフ | ||
| data modify storage api: Argument.ID set value 348 | ||
| function api:entity/mob/effect/give | ||
| function api:entity/mob/effect/reset |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/artifact/1366.shaved_ice_melon/give/1.trigger.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #> asset:artifact/1366.shaved_ice_melon/give/1.trigger | ||
| # | ||
| # 神器の取得処理の呼び出し時に実行されるfunction | ||
| # | ||
| # @within tag/function asset:artifact/give | ||
|
|
||
| execute if data storage asset:context {id:1366} run function asset:artifact/1366.shaved_ice_melon/give/2.give |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.