-
Notifications
You must be signed in to change notification settings - Fork 1
[Artifact1582] 鬼神の返り血 #2081
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
base: master
Are you sure you want to change the base?
[Artifact1582] 鬼神の返り血 #2081
Changes from all commits
3f6b96e
ffc25ed
4c8b473
8f7aaa5
038103c
81ae55d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #> asset:artifact/1582.demons_splatter/give/1.trigger | ||
| # | ||
| # 神器の取得処理の呼び出し時に実行されるfunction | ||
| # | ||
| # @within tag/function asset:artifact/give | ||
|
|
||
| execute if data storage asset:context {id:1582} run function asset:artifact/1582.demons_splatter/give/2.give |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| #> asset:artifact/1582.demons_splatter/give/2.give | ||
| # | ||
| # 神器の作成部 ここでID等を定義する | ||
| # | ||
| # @user | ||
| # @within function asset:artifact/1582.demons_splatter/give/1.trigger | ||
|
|
||
| # 神器の説明や消費MPなどをここで設定する。 | ||
| # 最後にasset:artifact/common/giveを実行することで入手可能。 | ||
|
|
||
| # 神器のID (int) スプレッドシートの値を入れる | ||
| data modify storage asset:artifact ID set value 1582 | ||
| # 神器のベースアイテム | ||
| data modify storage asset:artifact Item set value "minecraft:carrot_on_a_stick" | ||
| # 神器の名前 (TextComponentString) | ||
| data modify storage asset:artifact Name set value '{"text":"鬼神の返り血","color":"#8A0714"}' | ||
| # 神器の説明文 (TextComponentString[]) | ||
| data modify storage asset:artifact Lore set value ['{"text":"鬼神の怨嗟のこもった返り血","color":"white"}','{"text":"使用者に生命力と引き換えに圧倒的な力を与える","color":"white"}','[{"text":"攻撃+250%","color":"green"},{"text":"と","color":"white"},{"text":"最大体力-99.9%","color":"red"},{"text":"を30秒間得る","color":"white"}]'] | ||
| # 消費アイテム ({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 "onClick" | ||
| # 神器の発動条件 (TextComponentString) (オプション) | ||
| # data modify storage asset:artifact Condition set value | ||
| # 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション) | ||
| # data modify storage asset:artifact AttackInfo.Damage set value [0,0] | ||
| # 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション) | ||
| # data modify storage asset:artifact AttackInfo.AttackType set value [Physical,Magic] | ||
| # 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション) | ||
| # data modify storage asset:artifact AttackInfo.ElementType set value [Fire,Water,Thunder,None] | ||
| # 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション) | ||
| # data modify storage asset:artifact AttackInfo.BypassResist set value | ||
| # 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション) | ||
| # data modify storage asset:artifact AttackInfo.IsRangeAttack set value | ||
| # 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション) | ||
| # data modify storage asset:artifact AttackInfo.AttackRange set value | ||
| # MP消費量 (int) | ||
| data modify storage asset:artifact MPCost set value 0 | ||
| # MP必要量 (int) (オプション) | ||
| # data modify storage asset:artifact MPRequire set value | ||
| # MP回復量 (int) | ||
| #data modify storage asset:artifact MPHealWhenHit set value | ||
| # 神器のクールダウン (int) (オプション) | ||
| data modify storage asset:artifact LocalCooldown set value 600 | ||
| # 種別クールダウン ({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 ["Flora","Urban","Wi-ki","Rumor"] | ||
| # カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション) | ||
| # data modify storage asset:artifact CustomNBT set value {} | ||
|
|
||
| # 神器の入手用function | ||
| function asset:artifact/common/give | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #> asset:artifact/1582.demons_splatter/register | ||
| # | ||
| # 神器プールへの登録処理 | ||
| # | ||
| # @within tag/function asset:artifact/register | ||
|
|
||
| data modify storage asset:artifact RarityRegistry[4] append value [1582] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #> asset:artifact/1582.demons_splatter/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:1582} run function asset:artifact/1582.demons_splatter/trigger/2.check_condition |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #> asset:artifact/1582.demons_splatter/trigger/2.check_condition | ||
| # | ||
| # 神器の発動条件をチェックします | ||
| # | ||
| # @within function asset:artifact/1582.demons_splatter/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/1582.demons_splatter/trigger/3.main |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #> asset:artifact/1582.demons_splatter/trigger/3.main | ||
| # | ||
| # 神器のメイン処理部 | ||
| # | ||
| # @within function asset:artifact/1582.demons_splatter/trigger/2.check_condition | ||
|
|
||
| # 基本的な使用時の処理(MP消費や使用回数の処理など)を行う | ||
| function asset:artifact/common/use/mainhand | ||
|
|
||
| # ここから先は神器側の効果の処理を書く | ||
| # --- 【効果音(おどろおどろしい呪いの音)】 --- | ||
| playsound minecraft:entity.zombie_villager.converted player @a ~ ~ ~ 1.0 0.6 | ||
| playsound minecraft:entity.warden.heartbeat player @a ~ ~ ~ 2.0 0.8 | ||
| particle minecraft:dust 0.3 0.0 0.0 2.0 ~ ~1 ~ 0.5 1.0 0.5 0 40 normal | ||
| particle minecraft:large_smoke ~ ~1 ~ 0.4 1.0 0.4 0.02 20 normal | ||
| particle minecraft:block minecraft:redstone_block ~ ~1 ~ 0.5 0.8 0.5 0.1 30 normal | ||
| playsound minecraft:entity.ravager.roar player @a ~ ~ ~ 2.0 0.6 | ||
| # 効果付与 | ||
| data modify storage api: Argument.ID set value 376 | ||
| data modify storage api: Argument.Duration set value 600 | ||
| #data modify storage api: Argument.Stack set value <スタック数> # オプション | ||
| #data modify storage api: Argument.DurationOperation set value "replace" # オプション | ||
| #data modify storage api: Argument.StackOperation set value "replace" # オプション | ||
| data modify storage api: Argument.FieldOverride.Amount set value 2.5d | ||
| function api:entity/mob/effect/give | ||
| function api:entity/mob/effect/reset |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #> asset:effect/0376.demons_blood/_/end | ||
| # | ||
| # Effectの効果の終了時に実行されるfunction | ||
| # | ||
| # @within tag/function asset:effect/end | ||
|
|
||
| execute if data storage asset:context {id:376} run function asset:effect/0376.demons_blood/end/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #> asset:effect/0376.demons_blood/_/given | ||
| # | ||
| # Effectが付与された時に実行されるfunction | ||
| # | ||
| # @within tag/function asset:effect/given | ||
|
|
||
| execute if data storage asset:context {id:376} run function asset:effect/0376.demons_blood/given/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #> asset:effect/0376.demons_blood/_/register | ||
| # | ||
| # | ||
| # | ||
| # @within tag/function asset:effect/register | ||
|
|
||
| execute if data storage asset:context {id:376} run function asset:effect/0376.demons_blood/register |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #> asset:effect/0376.demons_blood/_/remove | ||
| # | ||
| # Effectが神器や牛乳によって削除された時に実行されるfunction | ||
| # | ||
| # @within tag/function asset:effect/remove | ||
|
|
||
| execute if data storage asset:context {id:376} run function asset:effect/0376.demons_blood/remove/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #> asset:effect/0376.demons_blood/end/ | ||
| # | ||
| # Effectの効果が切れた時の処理 | ||
| # | ||
| # @within function asset:effect/0376.demons_blood/_/end | ||
|
|
||
| # 補正削除 | ||
| function asset:effect/0376.demons_blood/modify/remove |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #> asset:effect/0376.demons_blood/given/ | ||
| # | ||
| # Effectが付与された時の処理 | ||
| # | ||
| # @within function asset:effect/0376.demons_blood/_/given | ||
|
|
||
| # 補正付与 | ||
| function asset:effect/0376.demons_blood/modify/add |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #> asset:effect/0376.demons_blood/modify/add | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:effect/0376.demons_blood/given/ | ||
|
|
||
| # 攻撃バフ | ||
| data modify storage api: Argument.UUID set value [I;1,3,376,0] | ||
| data modify storage api: Argument.UUID set from storage asset:context this.UUID | ||
| data modify storage api: Argument.Amount set from storage asset:context this.Amount | ||
| data modify storage api: Argument.Operation set value "multiply_base" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. baseになってますね |
||
| function api:modifier/attack/base/add | ||
| # 最大体力-999% | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. コメント変え忘れ |
||
| attribute @s minecraft:generic.max_health modifier add f47ac10b-58cc-4372-a567-0e02b2c3d479 "17Y.Health" -0.999 multiply | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://www.soltoder.com/mc-uuid-converter/ |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #> asset:effect/0376.demons_blood/modify/remove | ||
| # | ||
| # | ||
| # | ||
| # @within function | ||
| # asset:effect/0376.demons_blood/end/ | ||
| # asset:effect/0376.demons_blood/remove/ | ||
|
|
||
| # 攻撃バフ削除 | ||
| data modify storage api: Argument.UUID set value [I;1,3,376,0] | ||
| function api:modifier/attack/base/remove | ||
| # 最大Hpをもとに | ||
| attribute @s minecraft:generic.max_health modifier remove f47ac10b-58cc-4372-a567-0e02b2c3d479 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| #> asset:effect/0376.demons_blood/register | ||
| # | ||
| # Effectのデータを指定 | ||
| # | ||
| # @within function asset:effect/0376.demons_blood/_/register | ||
|
|
||
| # ExtendsSafe (boolean) (default = false) | ||
| # data modify storage asset:effect ExtendsSafe set value true | ||
| # ID (int) | ||
| data modify storage asset:effect ID set value 376 | ||
| # 名前 (TextComponentString) | ||
| data modify storage asset:effect Name set value '{"text":"鬼神の血の呪い","color":"#8A0714"}' | ||
| # 説明文 (TextComponentString[]) | ||
| data modify storage asset:effect Description set value ['{"text":"鬼神の血をその身に纏い、生命力を犠牲に圧倒的な力を得る","color":"white"}','{"text":"攻撃+250%","color":"green"}','{"text":"最大体力-99.9%","color":"red"}'] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 今のところ、効果量は具体的に書かない方針なので、「与ダメージが極端に上昇するが、最大体力が極端に低下する」かなぁ |
||
| # 効果時間 (int) (default = API || error) | ||
| #data modify storage asset:effect Duration set value | ||
| # スタック (int) (default = API || 1) | ||
| # data modify storage asset:effect Stack set value | ||
| # 効果時間の操作方法 (default = API || "replace") | ||
| # data modify storage asset:effect DurationOperation set value | ||
| # スタックの操作方法 (default = API || "replace") | ||
| # data modify storage asset:effect StackOperation set value | ||
| # 最大効果時間 (int) (default = 2147483647) | ||
| # data modify storage asset:effect MaxDuration set value | ||
| # 最大スタック (int) (default = 2147483647) | ||
| # data modify storage asset:effect MaxStack set value | ||
| # 悪い効果か否か (boolean) | ||
| data modify storage asset:effect IsBadEffect set value false | ||
| # 死亡時のエフェクトの処理 (default = "remove") | ||
| # data modify storage asset:effect ProcessOnDied set value | ||
| # 消すのに必要なレベル (int) (default = 1) | ||
| data modify storage asset:effect RequireClearLv set value 3 | ||
| # エフェクトをUIに表示するか (boolean) (default = true) | ||
| # data modify storage asset:effect Visible set value | ||
| # エフェクトのスタックををUIに表示するか (boolean) (default = true) | ||
| data modify storage asset:effect StackVisible set value false | ||
|
|
||
| # フィールド | ||
| # data modify storage asset:effect Field set value {} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #> asset:effect/0376.demons_blood/remove/ | ||
| # | ||
| # Effectが削除された時の処理 | ||
| # | ||
| # @within function asset:effect/0376.demons_blood/_/remove | ||
|
|
||
| # 補正削除 | ||
| function asset:effect/0376.demons_blood/modify/remove |
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.
フレーバーテキストより先に効果書いたほうが良いっすね