Repository navigation
[Artifact 1598-1599] 堕天の作成 #2116
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
firgde
wants to merge
33
commits into
master
Choose a base branch
from
dev/firgde_artifact1598-1599
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
33 commits
Select commit
Hold shift + click to select a range
4057042
基本のArtifactを作成
firgde f337645
リロードのトリガーを変更&使用不可のときにメッセージを表示するように
firgde 7e6f3f3
演出を追加
firgde ddc246c
特殊vfxを追加
firgde 81c9501
回復効果を追加
firgde dd9dcbf
Loreを追加
firgde 2df3806
クールダウンを調整
firgde 811a983
回復効果を残留ダメージに差し替え
firgde d78e14c
Loreや攻撃情報を更新
firgde 7c282d5
残留攻撃のtransformationをテクスチャに合わせて変更
firgde 0194b29
Loreを微調整
firgde e0b8c90
残留攻撃の挙動を修正
firgde ccc886d
演出を追加
firgde c7b9ebb
残留攻撃のbrightnessを最大に
firgde 75bed70
残留攻撃に出現演出を追加
firgde 10f8b88
Loreを微調整
firgde f803370
tagの消し忘れを修正
firgde 5d87391
init処理をsummonに移行
firgde 78c9acc
アニメーションの開始タイミングを調整
firgde ff202d9
攻撃情報を更新
firgde 51d0dd2
ダメージ処理をシングルダメージセッションに
firgde e24d0b5
再帰処理にタグを使わないように
firgde f6a0796
攻撃情報を明記
firgde bb35b33
Field名の誤植を修正
firgde 1f2e7e9
各種パラメーターを神器から設定できるように
firgde 017bea7
変数類に命名規則を適用
firgde 087295b
アニメーションが正しく再生されるように
firgde 649f088
Merge branch 'master' into dev/firgde_artifact1598-1599
Lapis-LJA 15a6eff
ダメージをdoubleに
firgde e1a03d5
特殊条件が前提を満たしているときにのみチェックされるように
firgde c3087c5
シングルダメージセッションを削除
firgde a6c300e
全信仰で使えるように
firgde 37e617c
Merge branch 'dev/firgde_artifact1598-1599' of https://github.com/Pro…
firgde 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/1598.banisher/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/1598.banisher/give/1.trigger | ||
| # | ||
| # 神器の取得処理の呼び出し時に実行されるfunction | ||
| # | ||
| # @within tag/function asset:artifact/give | ||
|
|
||
| execute if data storage asset:context {id:1598} run function asset:artifact/1598.banisher/give/2.give |
68 changes: 68 additions & 0 deletions
68
Asset/data/asset/functions/artifact/1598.banisher/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/1598.banisher/give/2.give | ||
| # | ||
| # 神器の作成部 ここでID等を定義する | ||
| # | ||
| # @user | ||
| # @within function asset:artifact/1598.banisher/give/1.trigger | ||
|
|
||
| # 神器の説明や消費MPなどをここで設定する。 | ||
| # 最後にasset:artifact/common/giveを実行することで入手可能。 | ||
|
|
||
| # 神器のID (int) スプレッドシートの値を入れる | ||
| data modify storage asset:artifact ID set value 1598 | ||
| # 神器のベースアイテム | ||
| data modify storage asset:artifact Item set value "minecraft:carrot_on_a_stick" | ||
| # 神器の名前 (TextComponentString) | ||
| data modify storage asset:artifact Name set value '{"text": "堕天", "color": "#e1c6f5"}' | ||
| # 神器の説明文 (TextComponentString[]) | ||
| data modify storage asset:artifact Lore set value ['{"text": "天使を攻撃すると、命中した場所に天使の輪を召喚する。"}', '{"text": "輪は8秒間残り、内側にいる天使に毎秒ダメージを与え続ける。"}', '{"text": "弾が尽きても、非戦闘時ならリロードが可能だ。"}', '{"text": "「力ある者、天より堕とされる運命にあり」", "color": "gray"}'] | ||
| # 消費アイテム ({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 4 | ||
| # 神器を発動できるスロット (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 "200 / 200x8" | ||
| # 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション) | ||
| data modify storage asset:artifact AttackInfo.AttackType set value [Magic] | ||
| # 攻撃に関する情報 -攻撃属性 (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 "condition" | ||
| # 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション) | ||
| data modify storage asset:artifact AttackInfo.AttackRange set value 30 | ||
| # MP消費量 (int) | ||
| data modify storage asset:artifact MPCost set value 15 | ||
| # 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 "longRange" | ||
| data modify storage asset:artifact TypeCooldown.Duration set value 8 | ||
| # グローバルクールダウン (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/1598.banisher/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/1598.banisher/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:1598} run function asset:artifact/1598.banisher/trigger/2.check_condition |
12 changes: 12 additions & 0 deletions
12
Asset/data/asset/functions/artifact/1598.banisher/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/1598.banisher/trigger/2.check_condition | ||
| # | ||
| # 神器の発動条件をチェックします | ||
| # | ||
| # @within function asset:artifact/1598.banisher/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/1598.banisher/trigger/3.main |
42 changes: 42 additions & 0 deletions
42
Asset/data/asset/functions/artifact/1598.banisher/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,42 @@ | ||
| #> asset:artifact/1598.banisher/trigger/3.main | ||
| # | ||
| # 神器のメイン処理部 | ||
| # | ||
| # @within function asset:artifact/1598.banisher/trigger/2.check_condition | ||
|
|
||
| #> SpreadLib | ||
| # @private | ||
| #declare tag A1598.SpreadMarker | ||
|
|
||
| # 基本的な使用時の処理(MP消費や使用回数の処理など)を行う | ||
| function asset:artifact/common/use/mainhand | ||
|
|
||
| # ここから先は神器側の効果の処理を書く | ||
| # 前方拡散 | ||
| summon marker ~ ~ ~ {Tags:["A1598.SpreadMarker"]} | ||
| data modify storage lib: Argument.Distance set value 0.8 | ||
| data modify storage lib: Argument.Spread set value 0.1 | ||
| execute as @e[type=marker,tag=A1598.SpreadMarker,distance=..0.01,limit=1] run function lib:forward_spreader/circle | ||
|
|
||
| # 発射 | ||
| execute facing entity @e[type=marker,tag=A1598.SpreadMarker,distance=..1,limit=1] feet anchored eyes positioned ^-0.14 ^-0.05 ^0.35 run function asset:artifact/1598.banisher/trigger/rec | ||
|
|
||
| # 演出 | ||
| playsound entity.firework_rocket.blast player @a ~ ~ ~ 1.0 0.7 | ||
| playsound entity.evoker.cast_spell player @a ~ ~ ~ 1.0 1.75 | ||
| playsound entity.illusioner.prepare_mirror player @a ~ ~ ~ 1.0 2.0 | ||
| # 特殊vfx | ||
| data modify storage api: Argument.FieldOverride.Item set value {id:"minecraft:stick",Count:1b} | ||
| data modify storage api: Argument.FieldOverride.Scale set value [0.5f,0.5f,0.0f] | ||
| data modify storage api: Argument.FieldOverride.Frames set value [20640,20641,20642,20643,20644,20645,20646] | ||
| data modify storage api: Argument.FieldOverride.LockRotation set value false | ||
| data modify storage api: Argument.FieldOverride.Transformation.left_rotation set value {axis:[1.0f, 0.0f, 0.0f], angle:1.577f} | ||
| data modify storage api: Argument.ID set value 2001 | ||
| execute anchored eyes positioned ^-0.14 ^-0.05 ^0.35 run function api:object/summon | ||
|
|
||
| # 消費時の処理 | ||
| function asset:artifact/1598.banisher/trigger/reload | ||
|
|
||
| # リセット | ||
| kill @e[type=marker,tag=A1598.SpreadMarker,distance=..1,limit=1] | ||
| data remove storage lib: Argument |
23 changes: 23 additions & 0 deletions
23
Asset/data/asset/functions/artifact/1598.banisher/trigger/damage/.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/1598.banisher/trigger/damage/ | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1598.banisher/trigger/rec | ||
|
|
||
| # 攻撃情報設定 | ||
| #通常 | ||
| data modify storage api: Argument.Damage set value 200.0d | ||
| #天使が対象の場合は残留攻撃を召喚 | ||
| execute if entity @s[tag=Enemy.Boss] as @p[tag=this] run function asset:artifact/1598.banisher/trigger/damage/boss | ||
|
|
||
| data modify storage api: Argument.AttackType set value "Magic" | ||
| data modify storage api: Argument.ElementType set value "None" | ||
| execute as @p[tag=this] run function api:damage/modifier | ||
| function api:damage/ | ||
| function api:damage/reset | ||
|
|
||
| # 演出 | ||
| particle crit ~ ~ ~ 0.2 0.5 0.2 1.0 25 | ||
| particle enchanted_hit ~ ~ ~ 0.2 0.5 0.2 1.0 20 | ||
| playsound item.trident.return player @a ~ ~ ~ 1.0 2.0 | ||
| playsound block.enchantment_table.use player @a ~ ~ ~ 1.0 1.2 |
22 changes: 22 additions & 0 deletions
22
Asset/data/asset/functions/artifact/1598.banisher/trigger/damage/boss.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/1598.banisher/trigger/damage/boss | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1598.banisher/trigger/damage/ | ||
|
|
||
| # 残留攻撃(Object 1188)を召喚 | ||
| data modify storage api: Argument.ID set value 1188 | ||
| execute store result storage api: Argument.FieldOverride.UserID int 1 run scoreboard players get @s UserID | ||
|
|
||
| # 攻撃情報 | ||
| data modify storage api: Argument.FieldOverride.Damage set value 200.0d | ||
| data modify storage api: Argument.FieldOverride.AttackType set value "Magic" | ||
| data modify storage api: Argument.FieldOverride.ElementType set value "None" | ||
|
|
||
| # 存在時間 | ||
| data modify storage api: Argument.FieldOverride.Tick set value 160 | ||
|
|
||
| # 攻撃間隔 | ||
| data modify storage api: Argument.FieldOverride.AttackInterval set value 20 | ||
|
|
||
| execute positioned ^ ^ ^0.5 run function api:object/summon |
18 changes: 18 additions & 0 deletions
18
Asset/data/asset/functions/artifact/1598.banisher/trigger/rec.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,18 @@ | ||
| #> asset:artifact/1598.banisher/trigger/rec | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1598.banisher/trigger/** | ||
|
|
||
| # 着弾検知 | ||
| execute unless block ^ ^ ^0.5 #lib:no_collision/ run return 0 | ||
| # ダメージ処理 | ||
| execute positioned ~-0.5 ~-0.5 ~-0.5 as @e[type=#lib:living_without_player,tag=Enemy,tag=!Uninterferable,dx=0,limit=1] run return run function asset:artifact/1598.banisher/trigger/damage/ | ||
|
|
||
| # 演出 | ||
| particle dust 0.22 0.082 0.345 0.2 ~ ~ ~ 0.1 0.1 0.1 0 7 | ||
| particle dust 0.478 0.176 0.553 0.2 ~ ~ ~ 0.1 0.1 0.1 0 5 | ||
| particle dust 0.973 0.769 0.973 0.5 ~ ~ ~ 0.0 0.0 0.0 0 1 | ||
|
|
||
| # 再帰 | ||
| execute positioned ^ ^ ^0.5 if entity @s[distance=..30] run function asset:artifact/1598.banisher/trigger/rec |
13 changes: 13 additions & 0 deletions
13
Asset/data/asset/functions/artifact/1598.banisher/trigger/reload.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,13 @@ | ||
| #> asset:artifact/1598.banisher/trigger/reload | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1598.banisher/trigger/3.main | ||
|
|
||
| # 使用回数が残っているならキャンセル | ||
| execute if data storage asset:context Items.mainhand.id run return fail | ||
|
|
||
| # アイテム置き換え | ||
| data modify storage api: Argument.ID set value 1599 | ||
| data modify storage api: Argument.Slot set value "mainhand" | ||
| function api:artifact/replace/from_id |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/artifact/1599.banisher_empty/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/1599.banisher_empty/give/1.trigger | ||
| # | ||
| # 神器の取得処理の呼び出し時に実行されるfunction | ||
| # | ||
| # @within tag/function asset:artifact/give | ||
|
|
||
| execute if data storage asset:context {id:1599} run function asset:artifact/1599.banisher_empty/give/2.give |
68 changes: 68 additions & 0 deletions
68
Asset/data/asset/functions/artifact/1599.banisher_empty/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/1599.banisher_empty/give/2.give | ||
| # | ||
| # 神器の作成部 ここでID等を定義する | ||
| # | ||
| # @user | ||
| # @within function asset:artifact/1599.banisher_empty/give/1.trigger | ||
|
|
||
| # 神器の説明や消費MPなどをここで設定する。 | ||
| # 最後にasset:artifact/common/giveを実行することで入手可能。 | ||
|
|
||
| # 神器のID (int) スプレッドシートの値を入れる | ||
| data modify storage asset:artifact ID set value 1599 | ||
| # 神器のベースアイテム | ||
| data modify storage asset:artifact Item set value "minecraft:stick" | ||
| # 神器の名前 (TextComponentString) | ||
| data modify storage asset:artifact Name set value '{"text": "堕天 <Empty>", "color": "#635671"}' | ||
| # 神器の説明文 (TextComponentString[]) | ||
| data modify storage asset:artifact Lore set value ['{"text": "非戦闘時にのみ、リロードができる。"}', '{"text": "天からの遣いを堕とすべく、力を使い果たした銃。", "color": "gray"}', '{"text": "集中の乱れを好まないようだ。", "color": "gray"}'] | ||
| # 消費アイテム ({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 "mainhand" | ||
| # 神器のトリガー (string) Wikiを参照 | ||
| data modify storage asset:artifact Trigger set value "sneak" | ||
| # 神器の発動条件 (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 50 | ||
| # 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 | ||
| # 扱える神 (string[]) Wikiを参照 | ||
| data modify storage asset:artifact CanUsedGod set value ["Wi-ki", "Rumor"] | ||
| # カスタム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/1599.banisher_empty/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/1599.banisher_empty/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:1599} run function asset:artifact/1599.banisher_empty/trigger/2.check_condition |
15 changes: 15 additions & 0 deletions
15
Asset/data/asset/functions/artifact/1599.banisher_empty/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,15 @@ | ||
| #> asset:artifact/1599.banisher_empty/trigger/2.check_condition | ||
| # | ||
| # 神器の発動条件をチェックします | ||
| # | ||
| # @within function asset:artifact/1599.banisher_empty/trigger/1.trigger | ||
|
|
||
| # 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く | ||
| function asset:artifact/common/check_condition/mainhand | ||
| # 他にアイテム等確認する場合はここに書く | ||
| # 戦闘時ならCanUsed剝奪 | ||
| execute if entity @s[tag=CanUsed] if predicate lib:in_battle run tellraw @s {"text":"戦闘中はリロードができない!","color":"red"} | ||
| execute if entity @s[tag=CanUsed] if predicate lib:in_battle run tag @s remove CanUsed | ||
|
|
||
| # CanUsedタグをチェックして3.main.mcfunctionを実行する | ||
| execute if entity @s[tag=CanUsed] run function asset:artifact/1599.banisher_empty/trigger/3.main |
18 changes: 18 additions & 0 deletions
18
Asset/data/asset/functions/artifact/1599.banisher_empty/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,18 @@ | ||
| #> asset:artifact/1599.banisher_empty/trigger/3.main | ||
| # | ||
| # 神器のメイン処理部 | ||
| # | ||
| # @within function asset:artifact/1599.banisher_empty/trigger/2.check_condition | ||
|
|
||
| # 基本的な使用時の処理(MP消費や使用回数の処理など)を行う | ||
| function asset:artifact/common/use/mainhand | ||
|
|
||
| # ここから先は神器側の効果の処理を書く | ||
| # リロード | ||
| data modify storage api: Argument.ID set value 1598 | ||
| data modify storage api: Argument.Slot set value "mainhand" | ||
| function api:artifact/replace/from_id | ||
|
|
||
| # 演出 | ||
| playsound block.iron_door.open player @a ~ ~ ~ 2.0 1.7 | ||
| playsound block.amethyst_block.break player @a ~ ~ ~ 1.0 0.5 |
15 changes: 15 additions & 0 deletions
15
Asset/data/asset/functions/object/1188.banishing_ring/init/.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,15 @@ | ||
| #> asset:object/1188.banishing_ring/init/ | ||
| # | ||
| # Objectのinit時の処理 | ||
| # | ||
| # @within asset:object/alias/1188/init | ||
|
|
||
| # 存在時間 | ||
| execute store result score @s General.Object.Tick run data get storage asset:context this.Tick | ||
|
|
||
| # アニメーション開始(存在時間 - 3) | ||
| scoreboard players operation @s O1188.InterpolationTick = @s General.Object.Tick | ||
| scoreboard players remove @s O1188.InterpolationTick 3 | ||
|
|
||
| # Intervalに規定値を代入 | ||
| data modify storage asset:context this.Interval set from storage asset:context this.AttackInterval |
9 changes: 9 additions & 0 deletions
9
Asset/data/asset/functions/object/1188.banishing_ring/load.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,9 @@ | ||
| #> asset:object/1188.banishing_ring/load | ||
| # | ||
| # Objectに利用するスコアボード等の初期化処理 | ||
| # | ||
| # @within tag/function asset:object/load | ||
|
|
||
| #> 定義類はここに | ||
| # @within function asset:object/1188.banishing_ring/** | ||
| scoreboard objectives add O1188.InterpolationTick dummy |
24 changes: 24 additions & 0 deletions
24
Asset/data/asset/functions/object/1188.banishing_ring/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,24 @@ | ||
| #> asset:object/1188.banishing_ring/register | ||
| # | ||
| # Objectのデータを指定 | ||
| # | ||
| # @within function asset:object/alias/1188/register | ||
|
|
||
| # 継承(オプション) | ||
| # data modify storage asset:object Extends append value | ||
| # function asset:object/extends | ||
| # 他のObjectに継承されることを許可するか (boolean) (オプション) | ||
| # data modify storage asset:object ExtendsSafe set value | ||
| # 継承されることを前提とした、抽象的なObjectであるかどうか(boolean) | ||
| data modify storage asset:object IsAbstract set value false | ||
| # Tickするかどうか(boolean) (オプション) | ||
| # data modify storage asset:object IsTicking set value | ||
|
|
||
| # ID (int) | ||
| data modify storage asset:object ID set value 1188 | ||
| # フィールド(オプション) | ||
| data modify storage asset:object Field.Damage set value -1 | ||
| data modify storage asset:object Field.DamageType set value "" | ||
| data modify storage asset:object Field.ElementType set value "" | ||
| data modify storage asset:object Field.Interval set value -1 | ||
| data modify storage asset:object Field.UserID set value -1 |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[MUST] 1598 と 1599 の扱える神をそろえる
1598 は
"ALL"、撃ち切った後の 1599 は["Wi-ki", "Rumor"]なので、Flora・Urban・Nyaptov の信仰だと 1599 でリロードできない。値は調整で決まるはずなので、今はどちらかに合わせておくだけでいい。