-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c959118
commit 11d529a
Showing
14 changed files
with
190 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/artifact/0740.flower_of_hazy_moon/give/1.trigger.mcfunction
This file contains 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/0740.flower_of_hazy_moon/give/1.trigger | ||
# | ||
# 神器の取得処理の呼び出し時に実行されるfunction | ||
# | ||
# @within tag/function asset:artifact/give | ||
|
||
execute if data storage asset:context {id:740} run function asset:artifact/0740.flower_of_hazy_moon/give/2.give |
59 changes: 59 additions & 0 deletions
59
Asset/data/asset/functions/artifact/0740.flower_of_hazy_moon/give/2.give.mcfunction
This file contains 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,59 @@ | ||
#> asset:artifact/0740.flower_of_hazy_moon/give/2.give | ||
# | ||
# 神器の作成部 ここでID等を定義する | ||
# | ||
# @user | ||
# @within function asset:artifact/0740.flower_of_hazy_moon/give/1.trigger | ||
|
||
# 神器の説明や消費MPなどをここで設定する。 | ||
# 最後にasset:artifact/common/giveを実行することで入手可能。 | ||
|
||
# 神器のID (int) スプレッドシートの値を入れる | ||
data modify storage asset:artifact ID set value 740 | ||
# 神器のベースアイテム | ||
data modify storage asset:artifact Item set value "minecraft:stick" | ||
# 神器の名前 (TextComponentString) | ||
data modify storage asset:artifact Name set value '{"text":"朧月の妖花","color":"#FFFFA3"}' | ||
# 神器の説明文 (TextComponentString[]) | ||
data modify storage asset:artifact Lore set value ['[{"text":"魔法攻撃+15% ","color":"dark_purple"},{"text":"被回復量-25%","color":"dark_red"}]','[{"text":"微かに月光が射す時のみに咲く花","color":"gray"}]','[{"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 150 | ||
# MP必要量 (int) (オプション) | ||
data modify storage asset:artifact MPRequire set value 0 | ||
# 神器のクールダウン (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", "Wi-ki", "Rumor"] | ||
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション) | ||
# data modify storage asset:artifact CustomNBT set value {} | ||
|
||
# 神器の入手用function | ||
function asset:artifact/common/give |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/artifact/0740.flower_of_hazy_moon/register.mcfunction
This file contains 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/0740.flower_of_hazy_moon/register | ||
# | ||
# 神器プールへの登録処理 | ||
# | ||
# @within tag/function asset:artifact/register | ||
|
||
data modify storage asset:artifact RarityRegistry[3] append value 740 |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/artifact/0740.flower_of_hazy_moon/trigger/1.trigger.mcfunction
This file contains 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/0740.flower_of_hazy_moon/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:[740]} run function asset:artifact/0740.flower_of_hazy_moon/trigger/2.check_condition |
16 changes: 16 additions & 0 deletions
16
...ta/asset/functions/artifact/0740.flower_of_hazy_moon/trigger/2.check_condition.mcfunction
This file contains 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/0740.flower_of_hazy_moon/trigger/2.check_condition | ||
# | ||
# 神器の発動条件をチェックします | ||
# | ||
# @within function asset:artifact/0740.flower_of_hazy_moon/trigger/1.trigger | ||
|
||
# ID指定する | ||
data modify storage asset:artifact TargetID set value 740 | ||
# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く | ||
function asset:artifact/common/check_condition/hotbar | ||
|
||
# 他にアイテム等確認する場合はここに書く | ||
execute if entity @s[tag=KK.Modifier] run tag @s remove CanUsed | ||
|
||
# CanUsedタグをチェックして3.main.mcfunctionを実行する | ||
execute if entity @s[tag=CanUsed] run function asset:artifact/0740.flower_of_hazy_moon/trigger/3.main |
33 changes: 33 additions & 0 deletions
33
Asset/data/asset/functions/artifact/0740.flower_of_hazy_moon/trigger/3.main.mcfunction
This file contains 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,33 @@ | ||
#> asset:artifact/0740.flower_of_hazy_moon/trigger/3.main | ||
# | ||
# 神器のメイン処理部 | ||
# | ||
# @within function asset:artifact/0740.flower_of_hazy_moon/trigger/2.check_condition | ||
|
||
# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う | ||
function asset:artifact/common/use/hotbar | ||
|
||
# ここから先は神器側の効果の処理を書く | ||
|
||
# 演出 | ||
particle end_rod ~ ~1.3 ~ 0 0 0 0.05 10 normal @a | ||
particle end_rod ~ ~1.3 ~ 0 0 0 0.075 70 normal @a | ||
particle campfire_cosy_smoke ~ ~1.3 ~ 0.2 0.2 0.2 0.1 10 normal @a | ||
particle campfire_cosy_smoke ~ ~1.3 ~ 0.2 0.2 0.2 0.15 70 normal @a | ||
playsound minecraft:entity.allay.ambient_without_item player @a ~ ~ ~ 1 0.8 | ||
playsound minecraft:entity.allay.ambient_with_item player @a ~ ~ ~ 1 0.5 | ||
|
||
# 魔法攻撃+15% | ||
data modify storage api: Argument.UUID set value [I;1,1,740,7] | ||
data modify storage api: Argument.Amount set value 0.15 | ||
data modify storage api: Argument.Operation set value "multiply_base" | ||
function api:modifier/attack/magic/add | ||
|
||
# 被回復量-25% | ||
data modify storage api: Argument.UUID set value [I;1,1,740,7] | ||
data modify storage api: Argument.Amount set value -0.25 | ||
data modify storage api: Argument.Operation set value "multiply_base" | ||
function api:modifier/receive_heal/add | ||
|
||
# 効果付与のフラグ設定 | ||
tag @s add KK.Modifier |
6 changes: 6 additions & 0 deletions
6
Asset/data/asset/functions/artifact/0740.flower_of_hazy_moon/trigger/_index.d.mcfunction
This file contains 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,6 @@ | ||
#> asset:artifact/0740.flower_of_hazy_moon/trigger/_index.d | ||
# @private | ||
|
||
#> tag | ||
# @within function asset:artifact/0740.flower_of_hazy_moon/trigger/** | ||
#declare tag KK.Modifier |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/artifact/0740.flower_of_hazy_moon/trigger/dis_equip/.mcfunction
This file contains 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/0740.flower_of_hazy_moon/trigger/dis_equip/ | ||
# | ||
# 装備を外した時に外した部位にのみのidが入った状態でトリガーされる | ||
# | ||
# @within tag/function asset:artifact/dis_equip | ||
|
||
execute if data storage asset:context id{hotbar:[740]} run function asset:artifact/0740.flower_of_hazy_moon/trigger/dis_equip/main |
18 changes: 18 additions & 0 deletions
18
.../data/asset/functions/artifact/0740.flower_of_hazy_moon/trigger/dis_equip/main.mcfunction
This file contains 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,18 @@ | ||
#> asset:artifact/0740.flower_of_hazy_moon/trigger/dis_equip/main | ||
# | ||
# 装備を外した時のメイン処理 | ||
# | ||
# @within function asset:artifact/0740.flower_of_hazy_moon/trigger/dis_equip/ | ||
|
||
#> prv | ||
# @private | ||
#declare score_holder $KK.ItemCount | ||
|
||
# まだ持ってるか確認する | ||
execute store result score $KK.ItemCount Temporary if data storage asset:context New.Items.hotbar[{tag:{TSB:{ID:740}}}] | ||
|
||
# なければ削除 | ||
execute if score $KK.ItemCount Temporary matches ..0 run function asset:artifact/0740.flower_of_hazy_moon/trigger/dis_equip/remove_modifier | ||
|
||
# リセット | ||
scoreboard players reset $KK.ItemCount Temporary |
25 changes: 25 additions & 0 deletions
25
.../functions/artifact/0740.flower_of_hazy_moon/trigger/dis_equip/remove_modifier.mcfunction
This file contains 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,25 @@ | ||
#> asset:artifact/0740.flower_of_hazy_moon/trigger/dis_equip/remove_modifier | ||
# | ||
# | ||
# | ||
# @within function asset:artifact/0740.flower_of_hazy_moon/trigger/dis_equip/main | ||
|
||
#> Private | ||
# @private | ||
#declare score_holder $Fluctuation | ||
|
||
# MP消費 | ||
scoreboard players set $Fluctuation Lib -150 | ||
data modify storage lib: Argument.DisableLog set value 1b | ||
function lib:mp/fluctuation | ||
|
||
# 魔法攻撃 | ||
data modify storage api: Argument.UUID set value [I;1,1,740,7] | ||
function api:modifier/attack/magic/remove | ||
|
||
# 被回復量 | ||
data modify storage api: Argument.UUID set value [I;1,1,740,7] | ||
function api:modifier/receive_heal/remove | ||
|
||
# Tag削除 | ||
tag @s remove KK.Modifier |
This file contains 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
This file contains 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
This file contains 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
This file contains 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