Repository navigation
✨ [Artifact 1422] 魔改造トースターの作成 #2237
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
24
commits into
master
Choose a base branch
from
dev/lapis_artifact1422
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
24 commits
Select commit
Hold shift + click to select a range
5802748
だいたいテンプレートまで
Lapis-LJA 010053f
Merge branch 'master' into dev/lapis_artifact1422
Lapis-LJA 3e6e73a
ミスを修正
Lapis-LJA f29d761
フレーバーテキストを調整
Lapis-LJA c176f4c
:sparkles: 魔改造トースターを1421と同じ処理に統一しEffect434を追加
Lapis-LJA ef01a1c
Merge branch 'dev/lapis_artifact1422' of https://github.com/ProjectTS…
Lapis-LJA ee5aec8
細かいとこ調整
Lapis-LJA b2436fc
:recycle: 魔改造トースターの段階別Speed設定を個別に分離
Lapis-LJA 1e27843
Merge branch 'dev/lapis_artifact1422' of https://github.com/ProjectTS…
Lapis-LJA 1493ca9
一部変更を撒き戻し
Lapis-LJA d86d8c3
score holderを修正
Lapis-LJA a54c72b
:sparkles: 魔改造トースターを7段階チャージと配列設定に対応
Lapis-LJA d3a5e2d
:recycle: 魔改造トースターのチャージ更新をマクロへ統合
Lapis-LJA b232a43
速度調整
Lapis-LJA b8a5788
Merge branch 'dev/lapis_artifact1422' of https://github.com/ProjectTS…
Lapis-LJA 4f80953
色々修正
Lapis-LJA 1c134f5
:recycle: パン発射の段階別パラメーター取得をマクロ化
Lapis-LJA a0c192f
カラーシャードに追加
Lapis-LJA c3614d2
演出位置を調整
Lapis-LJA 6e64487
:recycle: 発射パラメーターをEffect434へ直接設定
Lapis-LJA 540455a
Merge branch 'dev/lapis_artifact1422' of https://github.com/ProjectTS…
Lapis-LJA 791568b
:recycle: チャージ段階ごとの弾速と威力を発射時に直接設定
Lapis-LJA 3c8e8f8
:recycle: 段階別の弾速と威力をcompoundでまとめて設定
Lapis-LJA 24b990b
トリガー表記を修正
Lapis-LJA 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
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/artifact/1422.overhauled_toaster/dis_equip/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/1422.overhauled_toaster/dis_equip/1.trigger | ||
| # | ||
| # 指定したイベントタイミングで実行されるfunction | ||
| # | ||
| # @within tag/function asset:artifact/dis_equip | ||
|
|
||
| # storage asset:contextのidに装備している神器のIDが入っているので比較し、~/2.main.mcfunctionを実行する | ||
| execute if data storage asset:context id{mainhand:1422} run function asset:artifact/1422.overhauled_toaster/dis_equip/2.main |
10 changes: 10 additions & 0 deletions
10
Asset/data/asset/functions/artifact/1422.overhauled_toaster/dis_equip/2.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,10 @@ | ||
| #> asset:artifact/1422.overhauled_toaster/dis_equip/2.main | ||
| # | ||
| # 装備解除時にチャージを解除する | ||
| # | ||
| # @within function asset:artifact/1422.overhauled_toaster/dis_equip/1.trigger | ||
|
|
||
| # チャージ用Effectを削除する | ||
| data modify storage api: Argument.ID set value 415 | ||
| function api:entity/mob/effect/remove/from_id | ||
| function api:entity/mob/effect/reset |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/artifact/1422.overhauled_toaster/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/1422.overhauled_toaster/give/1.trigger | ||
| # | ||
| # 神器の取得処理の呼び出し時に実行されるfunction | ||
| # | ||
| # @within tag/function asset:artifact/give | ||
|
|
||
| execute if data storage asset:context {id:1422} run function asset:artifact/1422.overhauled_toaster/give/2.give |
68 changes: 68 additions & 0 deletions
68
Asset/data/asset/functions/artifact/1422.overhauled_toaster/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/1422.overhauled_toaster/give/2.give | ||
| # | ||
| # 神器の作成部 ここでID等を定義する | ||
| # | ||
| # @user | ||
| # @within function asset:artifact/1422.overhauled_toaster/give/1.trigger | ||
|
|
||
| # 神器の説明や消費MPなどをここで設定する。 | ||
| # 最後にasset:artifact/common/giveを実行することで入手可能。 | ||
|
|
||
| # 神器のID (int) スプレッドシートの値を入れる | ||
| data modify storage asset:artifact ID set value 1422 | ||
| # 神器のベースアイテム | ||
| data modify storage asset:artifact Item set value "minecraft:ender_eye" | ||
| # 神器の名前 (TextComponentString) | ||
| data modify storage asset:artifact Name set value '{"text":"魔改造トースター","color":"#d7a657"}' | ||
| # 神器の説明文 (TextComponentString[]) | ||
| data modify storage asset:artifact Lore set value ['{"text":"長押しで最大7段階のチャージを行い"}','{"text":"チャージ段階に応じたダメージと速度のパンを6枚射出する"}','{"text":"朝も昼も夜も、これから毎日永遠にパンですよね!","color":"gray"}'] | ||
| # 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション) | ||
| data modify storage asset:artifact ConsumeItem.Item set value '{"translate":"item.minecraft.bread"}' | ||
| 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 "releaseUsingItem" | ||
| # 神器の発動条件 (TextComponentString) (オプション) | ||
| # data modify storage asset:artifact Condition set value | ||
| # 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション) | ||
| data modify storage asset:artifact AttackInfo.Damage set value "40-120x6" | ||
| # 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション) | ||
| data modify storage asset:artifact AttackInfo.AttackType set value [Physical] | ||
| # 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション) | ||
| data modify storage asset:artifact AttackInfo.ElementType set value [Fire] | ||
| # 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション) | ||
| # data modify storage asset:artifact AttackInfo.BypassResist set value | ||
| # 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション) | ||
| data modify storage asset:artifact AttackInfo.IsRangeAttack set value "never" | ||
| # 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション) | ||
| data modify storage asset:artifact AttackInfo.AttackRange set value 20 | ||
| # MP消費量 (int) | ||
| data modify storage asset:artifact MPCost set value 20 | ||
| # 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 70 | ||
| # グローバルクールダウン (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 ["Urban", "Nyaptov", "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/1422.overhauled_toaster/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/1422.overhauled_toaster/register | ||
| # | ||
| # 神器プールへの登録処理 | ||
| # | ||
| # @within tag/function asset:artifact/register | ||
|
|
||
| data modify storage asset:artifact RarityRegistry[4] append value [1422] | ||
| data modify storage asset:artifact RarityRegistryWithColor.Red[4] append value [1422] |
8 changes: 8 additions & 0 deletions
8
.../asset/functions/artifact/1422.overhauled_toaster/release_using_item/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/1422.overhauled_toaster/release_using_item/1.trigger | ||
| # | ||
| # 指定したイベントタイミングで実行されるfunction | ||
| # | ||
| # @within tag/function asset:artifact/using_item/release/ | ||
|
|
||
| # storage asset:contextのidに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する | ||
| execute if data storage asset:context id{mainhand:1422} run function asset:artifact/1422.overhauled_toaster/release_using_item/2.check_condition |
13 changes: 13 additions & 0 deletions
13
...unctions/artifact/1422.overhauled_toaster/release_using_item/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,13 @@ | ||
| #> asset:artifact/1422.overhauled_toaster/release_using_item/2.check_condition | ||
| # | ||
| # 神器の発動条件をチェックします | ||
| # | ||
| # @within function asset:artifact/1422.overhauled_toaster/release_using_item/1.trigger | ||
|
|
||
| # チャージ用Effectを取得する | ||
| data modify storage api: Argument.ID set value 415 | ||
| function api:entity/mob/effect/get/from_id | ||
| execute unless data storage api: Return.Effect run return fail | ||
|
|
||
| # 3.main.mcfunctionを実行する | ||
| function asset:artifact/1422.overhauled_toaster/release_using_item/3.main |
23 changes: 23 additions & 0 deletions
23
...ata/asset/functions/artifact/1422.overhauled_toaster/release_using_item/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,23 @@ | ||
| #> asset:artifact/1422.overhauled_toaster/release_using_item/3.main | ||
| # | ||
| # チャージ段階に応じたパンを射出する | ||
| # | ||
| # @within function asset:artifact/1422.overhauled_toaster/release_using_item/2.check_condition | ||
|
|
||
| # 発射用Effectへ弾速・威力・射程を渡す | ||
| data modify storage api: Argument.ID set value 434 | ||
| execute if data storage api: Return.Effect{Stack:1} run data modify storage api: Argument.FieldOverride set value {Speed:1,Damage:40} | ||
| execute if data storage api: Return.Effect{Stack:2} run data modify storage api: Argument.FieldOverride set value {Speed:1,Damage:70} | ||
| execute if data storage api: Return.Effect{Stack:3} run data modify storage api: Argument.FieldOverride set value {Speed:1,Damage:120} | ||
| execute if data storage api: Return.Effect{Stack:4} run data modify storage api: Argument.FieldOverride set value {Speed:2,Damage:120} | ||
| execute if data storage api: Return.Effect{Stack:5} run data modify storage api: Argument.FieldOverride set value {Speed:2,Damage:120} | ||
| execute if data storage api: Return.Effect{Stack:6} run data modify storage api: Argument.FieldOverride set value {Speed:2,Damage:120} | ||
| execute if data storage api: Return.Effect{Stack:7} run data modify storage api: Argument.FieldOverride set value {Speed:4,Damage:120} | ||
| data modify storage api: Argument.FieldOverride.Range set value 40 | ||
| function api:entity/mob/effect/give | ||
| function api:entity/mob/effect/reset | ||
|
|
||
| # チャージ用Effectを削除する | ||
| data modify storage api: Argument.ID set value 415 | ||
| function api:entity/mob/effect/remove/from_id | ||
| function api:entity/mob/effect/reset |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/artifact/1422.overhauled_toaster/using_item/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/1422.overhauled_toaster/using_item/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:1422} run function asset:artifact/1422.overhauled_toaster/using_item/2.check_condition |
30 changes: 30 additions & 0 deletions
30
.../asset/functions/artifact/1422.overhauled_toaster/using_item/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,30 @@ | ||
| #> asset:artifact/1422.overhauled_toaster/using_item/2.check_condition | ||
| # | ||
| # 神器の発動条件をチェックします | ||
| # | ||
| # @within function asset:artifact/1422.overhauled_toaster/using_item/1.trigger | ||
|
|
||
| #> Private | ||
| # @private | ||
| #declare score_holder $A1422.Count | ||
|
|
||
| # チャージ中は開始時の消費とクールダウン判定を繰り返さない | ||
| data modify storage api: Argument.ID set value 415 | ||
| function api:entity/mob/effect/get/from_id | ||
| execute if data storage api: Return.Effect run return run function asset:artifact/1422.overhauled_toaster/using_item/charge/ | ||
|
|
||
| # 発射が終わるまで次のチャージを開始しない | ||
| data modify storage api: Argument.ID set value 434 | ||
| function api:entity/mob/effect/get/from_id | ||
| execute if data storage api: Return.Effect run return fail | ||
|
|
||
| # 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く | ||
| function asset:artifact/common/check_condition/mainhand | ||
| execute if entity @s[tag=!CanUsed] run return fail | ||
| execute store result score $A1422.Count Temporary run clear @s bread 0 | ||
| execute unless score $A1422.Count Temporary matches 1.. run tag @s remove CanUsed | ||
| scoreboard players reset $A1422.Count | ||
| execute if entity @s[tag=!CanUsed] run function lib:message/artifact/dont_have_require_items | ||
|
|
||
| # CanUsedタグをチェックして3.main.mcfunctionを実行する | ||
| execute if entity @s[tag=CanUsed] run function asset:artifact/1422.overhauled_toaster/using_item/3.main |
16 changes: 16 additions & 0 deletions
16
Asset/data/asset/functions/artifact/1422.overhauled_toaster/using_item/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,16 @@ | ||
| #> asset:artifact/1422.overhauled_toaster/using_item/3.main | ||
| # | ||
| # 神器のメイン処理部 | ||
| # | ||
| # @within function asset:artifact/1422.overhauled_toaster/using_item/2.check_condition | ||
|
|
||
| # 基本的な使用時の処理(MP消費や使用回数の処理など)を行う | ||
| function asset:artifact/common/use/mainhand | ||
|
|
||
| # ここから先は神器側の効果の処理を書く | ||
|
|
||
| # パンを1個消費 | ||
| clear @s bread 1 | ||
|
|
||
| # チャージ用エフェクト | ||
| function asset:artifact/1422.overhauled_toaster/using_item/charge/update.m {Stack:1,Pitch:1.7} |
16 changes: 16 additions & 0 deletions
16
Asset/data/asset/functions/artifact/1422.overhauled_toaster/using_item/charge/.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/1422.overhauled_toaster/using_item/charge/ | ||
| # | ||
| # 使用継続時間からチャージ段階を更新する | ||
| # | ||
| # @within function asset:artifact/1422.overhauled_toaster/using_item/2.check_condition | ||
|
|
||
| # チャージ段階が変わるときだけEffectを更新する | ||
| execute if data storage asset:context UsingItemTime{mainhand:3} run function asset:artifact/1422.overhauled_toaster/using_item/charge/update.m {Stack:2,Pitch:1.75} | ||
| execute if data storage asset:context UsingItemTime{mainhand:5} run function asset:artifact/1422.overhauled_toaster/using_item/charge/update.m {Stack:3,Pitch:1.8} | ||
| execute if data storage asset:context UsingItemTime{mainhand:7} run function asset:artifact/1422.overhauled_toaster/using_item/charge/update.m {Stack:4,Pitch:1.85} | ||
| execute if data storage asset:context UsingItemTime{mainhand:9} run function asset:artifact/1422.overhauled_toaster/using_item/charge/update.m {Stack:5,Pitch:1.9} | ||
| execute if data storage asset:context UsingItemTime{mainhand:11} run function asset:artifact/1422.overhauled_toaster/using_item/charge/update.m {Stack:6,Pitch:1.95} | ||
| execute if data storage asset:context UsingItemTime{mainhand:13} run function asset:artifact/1422.overhauled_toaster/using_item/charge/update.m {Stack:7,Pitch:2.0} | ||
|
|
||
| # 長押し中の音 | ||
| playsound block.furnace.fire_crackle player @a ~ ~ ~ 1 0.8 | ||
19 changes: 19 additions & 0 deletions
19
...ta/asset/functions/artifact/1422.overhauled_toaster/using_item/charge/update.m.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,19 @@ | ||
| #> asset:artifact/1422.overhauled_toaster/using_item/charge/update.m | ||
| # | ||
| # チャージ段階を更新して音を再生する | ||
| # | ||
| # @input args: | ||
| # Stack: int | ||
| # Pitch: double | ||
| # @within function | ||
| # asset:artifact/1422.overhauled_toaster/using_item/3.main | ||
| # asset:artifact/1422.overhauled_toaster/using_item/charge/ | ||
|
|
||
| # チャージ段階の演出 | ||
| $execute anchored eyes positioned ^ ^ ^0.5 run playsound minecraft:block.note_block.chime player @a ~ ~ ~ 1 $(Pitch) | ||
|
|
||
| # 表示用Effectのスタックを更新する | ||
| data modify storage api: Argument.ID set value 415 | ||
| $data modify storage api: Argument.Stack set value $(Stack) | ||
| function api:entity/mob/effect/give | ||
| function api:entity/mob/effect/reset |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/effect/0434.overhauled_toaster_shooting/_/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,7 @@ | ||
| #> asset:effect/0434.overhauled_toaster_shooting/_/register | ||
| # | ||
| # Effectの定義を呼び出す | ||
| # | ||
| # @within tag/function asset:effect/register | ||
|
|
||
| execute if data storage asset:context {id:434} run function asset:effect/0434.overhauled_toaster_shooting/register |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/effect/0434.overhauled_toaster_shooting/_/tick.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:effect/0434.overhauled_toaster_shooting/_/tick | ||
| # | ||
| # Effectのtick処理を呼び出す | ||
| # | ||
| # @within tag/function asset:effect/tick | ||
|
|
||
| execute if data storage asset:context {id:434} run function asset:effect/0434.overhauled_toaster_shooting/tick/ |
41 changes: 41 additions & 0 deletions
41
Asset/data/asset/functions/effect/0434.overhauled_toaster_shooting/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,41 @@ | ||
| #> asset:effect/0434.overhauled_toaster_shooting/register | ||
| # | ||
| # Effectのデータを指定 | ||
| # | ||
| # @within function asset:effect/0434.overhauled_toaster_shooting/_/register | ||
|
|
||
| # ExtendsSafe (boolean) (default = false) | ||
| # data modify storage asset:effect ExtendsSafe set value true | ||
| # ID (int) | ||
| data modify storage asset:effect ID set value 434 | ||
| # 名前 (TextComponentString) | ||
| data modify storage asset:effect Name set value '{"text":"パン発射!!!"}' | ||
| # 説明文 (TextComponentString[]) | ||
| data modify storage asset:effect Description set value ['{"text":"パンを連続して射出する"}'] | ||
| # 効果時間 (int) (default = API || error) | ||
| data modify storage asset:effect Duration set value 6 | ||
| # スタック (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 false | ||
| # エフェクトのスタックををUIに表示するか (boolean) (default = true) | ||
| # data modify storage asset:effect StackVisible set value | ||
|
|
||
| # フィールド | ||
| data modify storage asset:effect Field.Damage set value 40 | ||
| data modify storage asset:effect Field.Speed set value 1 | ||
| data modify storage asset:effect Field.Range set value 40 |
16 changes: 16 additions & 0 deletions
16
Asset/data/asset/functions/effect/0434.overhauled_toaster_shooting/tick/.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:effect/0434.overhauled_toaster_shooting/tick/ | ||
| # | ||
| # Effectのtick処理 | ||
| # | ||
| # @within function asset:effect/0434.overhauled_toaster_shooting/_/tick | ||
|
|
||
| # 発射直前・発射中の音 | ||
| execute anchored eyes positioned ^-0.35 ^ ^0.5 run function asset:effect/0434.overhauled_toaster_shooting/tick/sound | ||
|
|
||
| # 残りDurationが5から0の間に1枚ずつ発射する | ||
| execute if data storage asset:context {Duration:5} anchored eyes positioned ^-0.35 ^-0.05 ^ run function asset:effect/0434.overhauled_toaster_shooting/tick/shoot | ||
| execute if data storage asset:context {Duration:4} anchored eyes positioned ^-0.35 ^-0.15 ^ run function asset:effect/0434.overhauled_toaster_shooting/tick/shoot | ||
| execute if data storage asset:context {Duration:3} anchored eyes positioned ^-0.35 ^-0.25 ^ run function asset:effect/0434.overhauled_toaster_shooting/tick/shoot | ||
| execute if data storage asset:context {Duration:2} anchored eyes positioned ^-0.35 ^-0.35 ^ run function asset:effect/0434.overhauled_toaster_shooting/tick/shoot | ||
| execute if data storage asset:context {Duration:1} anchored eyes positioned ^-0.35 ^-0.45 ^ run function asset:effect/0434.overhauled_toaster_shooting/tick/shoot | ||
| execute if data storage asset:context {Duration:0} anchored eyes positioned ^-0.35 ^-0.55 ^ run function asset:effect/0434.overhauled_toaster_shooting/tick/shoot |
15 changes: 15 additions & 0 deletions
15
Asset/data/asset/functions/effect/0434.overhauled_toaster_shooting/tick/shoot.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:effect/0434.overhauled_toaster_shooting/tick/shoot | ||
| # | ||
| # チャージ段階の弾速と威力でパンを射出する | ||
| # | ||
| # @within function asset:effect/0434.overhauled_toaster_shooting/tick/ | ||
|
|
||
| # チャージ段階の弾速とダメージを取得する | ||
| data modify storage api: Argument.FieldOverride.Speed set from storage asset:context this.Speed | ||
| data modify storage api: Argument.FieldOverride.Damage set from storage asset:context this.Damage | ||
|
|
||
| # 召喚 | ||
| data modify storage api: Argument.ID set value 1159 | ||
| data modify storage api: Argument.FieldOverride.Range set from storage asset:context this.Range | ||
| execute store result storage api: Argument.FieldOverride.UserID int 1 run scoreboard players get @s UserID | ||
| function api:object/summon |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/effect/0434.overhauled_toaster_shooting/tick/sound.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:effect/0434.overhauled_toaster_shooting/tick/sound | ||
| # | ||
| # 音 | ||
| # | ||
| # @within function asset:effect/0434.overhauled_toaster_shooting/tick/ | ||
|
|
||
| playsound block.piston.contract player @a ~ ~ ~ 1 1.2 | ||
| playsound block.fire.ambient player @a ~ ~ ~ 1 1.3 |
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
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
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
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
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.