Repository navigation
[Artifact1465] ヴァースティル・プラズマの作成 #2089
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
56
commits into
master
Choose a base branch
from
dev/firgde_artifact1465
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
56 commits
Select commit
Hold shift + click to select a range
f0b71f4
ArtifactとEffectの基本機能を作成
firgde 95bf7fa
攻撃1 スパーク
firgde a2bbbd2
ObjectのEntityを変更
firgde 97db26a
攻撃2 ビーム
firgde fae7c8e
攻撃2 ビーム
firgde 8de8ed1
Merge branch 'dev/firgde_artifact1465' of https://github.com/ProjectT…
firgde f7fb80a
記述を修正
firgde cf30668
攻撃2にノックバック追加
firgde cac824c
攻撃3 貫通レーザー
firgde bde71d5
ノックバックを調整
firgde d815bdf
音量調節
firgde 3f826d1
チャージ用バフのスタックが変動したときのみにMPを消費するように
firgde 3f62b6e
攻撃判定を強化
firgde d6cafe2
攻撃2を調節
firgde 1d27028
ダメージ量をFieldで管理
firgde fe461cf
チャージ時のMP消費チェックを修正
firgde 2a629dd
ツールチップを整備
firgde b781eee
演出を追加
firgde 80994c3
playsoundで再生する音をogg名前空間のものに変更
firgde 01fe0d4
攻撃1の発射数を増加
firgde b0bc9db
MP回復量を半分に
firgde a186c03
攻撃2の視認性を改善
firgde 92f4a96
UserIDが正しく紐づいていない問題を修正
firgde ea84040
Effectの説明を追加
firgde b5c2522
EffectのID表記が規則に合うように
firgde ef5ccd8
範囲攻撃に関する情報を適切なものに変更
firgde 1ad0847
playsoundのタイプを修正
firgde 96870e7
実行位置の修正
firgde e1248a2
セレクターを修正
firgde d36576c
スコアリセット時のobjectiveを明記
firgde 19cb086
攻撃情報を神器依存に
firgde bd3724a
ツールチップを分かりやすく
firgde 5b97c88
不要なFieldを削除
firgde a1ffded
重複した処理を一つのfunctionに
firgde 70da323
カラーシャードの加工結果に登録
firgde 34096a9
Merge branch 'master' into dev/firgde_artifact1465
Lapis-LJA 56525c6
ダメージ処理を再帰後に一括で実行するように
firgde c51b359
Fieldの設定忘れを修正
firgde 82fe94f
MP回復量の指定にasset:contextを用いるように
firgde c89910b
消費MP周りの処理にAPIを用いるように
firgde 8d68a56
Merge branch 'dev/firgde_artifact1465' of https://github.com/ProjectT…
firgde 9c56a6b
判定を綺麗に
firgde 24128ae
Merge branch 'master' into dev/firgde_artifact1465
firgde 24beb56
Merge branch 'master' into dev/firgde_artifact1465
firgde ee35139
Merge branch 'master' of https://github.com/ProjectTSB/Asset into dev…
firgde ba4080b
長押し/長押し解除トリガーに対応
firgde 747c615
Merge branch 'dev/firgde_artifact1465' of https://github.com/ProjectT…
firgde 52e11e8
装備解除時にチャージがキャンセルされるように
firgde 008028f
セレクターを修正
firgde 9c7130d
エフェクト付与処理の消し忘れを修正
firgde 658b8d2
タグの指定忘れを修正
firgde 2d024e0
タグの修正漏れを修正
firgde 34c44ed
各種パラメーターを神器から設定できるように
firgde a61b9e8
射程の設定をdistance基準に
firgde c977378
変数類に命名規則を適用
firgde e052cf0
スコアリセット時のobjective指定を削除
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/1465.versatile_plasma/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,7 @@ | ||
| #> asset:artifact/1465.versatile_plasma/dis_equip/1.trigger | ||
| # | ||
| # 装備を外した時に外した部位にのみのidが入った状態でトリガーされる | ||
| # | ||
| # @within tag/function asset:artifact/dis_equip | ||
|
|
||
| execute if data storage asset:context id{mainhand:1465} run function asset:artifact/1465.versatile_plasma/dis_equip/2.main |
10 changes: 10 additions & 0 deletions
10
Asset/data/asset/functions/artifact/1465.versatile_plasma/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/1465.versatile_plasma/dis_equip/2.main | ||
| # | ||
| # 装備を外した時のメイン処理 | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/dis_equip/* | ||
|
|
||
| # Effect374を削除 | ||
| data modify storage api: Argument.ID set value 374 | ||
| 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/1465.versatile_plasma/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/1465.versatile_plasma/give/1.trigger | ||
| # | ||
| # 神器の取得処理の呼び出し時に実行されるfunction | ||
| # | ||
| # @within tag/function asset:artifact/give | ||
|
|
||
| execute if data storage asset:context {id:1465} run function asset:artifact/1465.versatile_plasma/give/2.give |
68 changes: 68 additions & 0 deletions
68
Asset/data/asset/functions/artifact/1465.versatile_plasma/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/1465.versatile_plasma/give/2.give | ||
| # | ||
| # 神器の作成部 ここでID等を定義する | ||
| # | ||
| # @user | ||
| # @within function asset:artifact/1465.versatile_plasma/give/1.trigger | ||
|
|
||
| # 神器の説明や消費MPなどをここで設定する。 | ||
| # 最後にasset:artifact/common/giveを実行することで入手可能。 | ||
|
|
||
| # 神器のID (int) スプレッドシートの値を入れる | ||
| data modify storage asset:artifact ID set value 1465 | ||
| # 神器のベースアイテム | ||
| data modify storage asset:artifact Item set value "minecraft:ender_eye" | ||
| # 神器の名前 (TextComponentString) | ||
| data modify storage asset:artifact Name set value '{"text": "ヴァースティル・プラズマ", "color": "#D4FFBA"}' | ||
| # 神器の説明文 (TextComponentString[]) | ||
| data modify storage asset:artifact Lore set value ['{"text": "チャージ段階に応じて異なる方法で攻撃する。"}', '{"text": "1段:短射程の小さい弾を、幅広めにばらまく"}', '{"text": "2段:三方位に、ノックバックするビームを撃つ"}', '{"text": "3段:貫通ビームを撃つ"}', '{"text": "チャージを2層重ねると25、3層重ねると追加で35のMPを消費する。"}'] | ||
| # 消費アイテム ({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 "releaseUsingItem" | ||
| # 神器の発動条件 (TextComponentString) (オプション) | ||
| # data modify storage asset:artifact Condition set value | ||
| # 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション) | ||
| data modify storage asset:artifact AttackInfo.Damage set value "30 / 150 / 300" | ||
| # 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション) | ||
| data modify storage asset:artifact AttackInfo.AttackType set value [Physical] | ||
| # 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション) | ||
| data modify storage asset:artifact AttackInfo.ElementType set value [Thunder] | ||
| # 攻撃に関する情報 -防御無視 (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 "???" | ||
| # MP消費量 (int) | ||
| # data modify storage asset:artifact MPCost set value | ||
| # MP必要量 (int) (オプション) | ||
| # data modify storage asset:artifact MPRequire set value | ||
| # MP回復量 (int) | ||
| data modify storage asset:artifact MPHealWhenHit set value 5 | ||
| # 神器のクールダウン (int) (オプション) | ||
| data modify storage asset:artifact LocalCooldown set value 100 | ||
| # 種別クールダウン ({Type: string, Duration: int}) (オプション) | ||
| data modify storage asset:artifact TypeCooldown.Type set value "longRange" | ||
| data modify storage asset:artifact TypeCooldown.Duration set value 50 | ||
| # グローバルクールダウン (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", "Wi-ki"] | ||
| # カスタム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/1465.versatile_plasma/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/1465.versatile_plasma/register | ||
| # | ||
| # 神器プールへの登録処理 | ||
| # | ||
| # @within tag/function asset:artifact/register | ||
|
|
||
| data modify storage asset:artifact RarityRegistry[3] append value [1465] | ||
| data modify storage asset:artifact RarityRegistryWithColor.Red[3] append value [1465] |
8 changes: 8 additions & 0 deletions
8
...ta/asset/functions/artifact/1465.versatile_plasma/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/1465.versatile_plasma/release_using_item/1.trigger | ||
| # | ||
| # | ||
| # | ||
| # @within tag/function asset:artifact/using_item/release/ | ||
|
|
||
| # storage asset:idのmainhandに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する | ||
| execute if data storage asset:context id{mainhand:1465} run function asset:artifact/1465.versatile_plasma/release_using_item/2.check_condition |
18 changes: 18 additions & 0 deletions
18
.../functions/artifact/1465.versatile_plasma/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,18 @@ | ||
| #> asset:artifact/1465.versatile_plasma/release_using_item/2.check_condition | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/release_using_item/1.trigger | ||
|
|
||
| # チャージ時間で攻撃を分ける | ||
| data modify storage api: Argument.ID set value 374 | ||
| function api:entity/mob/effect/get/from_id | ||
|
|
||
| execute if data storage api: Return.Effect{Stack:1} run function asset:artifact/1465.versatile_plasma/release_using_item/3.1.spark/ | ||
| execute if data storage api: Return.Effect{Stack:2} anchored eyes positioned ^ ^-0.25 ^ run function asset:artifact/1465.versatile_plasma/release_using_item/3.2.beam/ | ||
| execute if data storage api: Return.Effect{Stack:3} run function asset:artifact/1465.versatile_plasma/release_using_item/3.3.laser/ | ||
|
|
||
| # Effect374を削除 | ||
| data modify storage api: Argument.ID set value 374 | ||
| function api:entity/mob/effect/remove/from_id | ||
| function api:entity/mob/effect/reset |
24 changes: 24 additions & 0 deletions
24
...a/asset/functions/artifact/1465.versatile_plasma/release_using_item/3.1.spark/.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:artifact/1465.versatile_plasma/release_using_item/3.1.spark/ | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/release_using_item/2.check_condition | ||
|
|
||
| #> Private | ||
| # @within function asset:artifact/1465.versatile_plasma/release_using_item/3.1.spark/* | ||
| #declare score_holder $A1465.Rec | ||
|
|
||
| # 36回実行 | ||
| scoreboard players set $A1465.Rec Temporary 36 | ||
|
|
||
| # 初回だけOffsetが固定 | ||
| data modify storage asset:temp Args.OffsetX set value 0 | ||
| data modify storage asset:temp Args.OffsetY set value 0 | ||
| data modify storage asset:temp Args.OffsetZ set value 2.5 | ||
|
|
||
| # 再帰 | ||
| execute anchored eyes positioned ^ ^ ^ run function asset:artifact/1465.versatile_plasma/release_using_item/3.1.spark/rec | ||
|
|
||
| # リセット | ||
| scoreboard players reset $A1465.Rec | ||
| data remove storage asset:temp Args |
19 changes: 19 additions & 0 deletions
19
...sset/functions/artifact/1465.versatile_plasma/release_using_item/3.1.spark/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,19 @@ | ||
| #> asset:artifact/1465.versatile_plasma/release_using_item/3.1.spark/rec | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/release_using_item/3.1.spark/* | ||
|
|
||
| # rec減算 | ||
| scoreboard players remove $A1465.Rec Temporary 1 | ||
|
|
||
| # マクロでObject召喚 | ||
| function asset:artifact/1465.versatile_plasma/release_using_item/3.1.spark/summon.m with storage asset:temp Args | ||
|
|
||
| # ランダムなoffsetを設定 | ||
| execute store result storage asset:temp Args.OffsetX float 0.1 run random value -20..20 | ||
| execute store result storage asset:temp Args.OffsetY float 0.1 run random value -5..5 | ||
| execute store result storage asset:temp Args.OffsetZ float 0.1 run random value 5..35 | ||
|
|
||
| # 再帰 | ||
| execute if score $A1465.Rec Temporary matches 1.. run function asset:artifact/1465.versatile_plasma/release_using_item/3.1.spark/rec |
18 changes: 18 additions & 0 deletions
18
...functions/artifact/1465.versatile_plasma/release_using_item/3.1.spark/summon.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,18 @@ | ||
| #> asset:artifact/1465.versatile_plasma/release_using_item/3.1.spark/summon.m | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/release_using_item/3.1.spark/rec | ||
|
|
||
| data modify storage api: Argument.ID set value 1168 | ||
| # 攻撃情報 | ||
| data modify storage api: Argument.FieldOverride.Damage set value 30 | ||
| data modify storage api: Argument.FieldOverride.AdditionalMPHeal set value 5 | ||
| data modify storage api: Argument.FieldOverride.AttackType set value "Physical" | ||
| data modify storage api: Argument.FieldOverride.ElementType set value "Thunder" | ||
|
|
||
| # 存在時間 | ||
| execute store result storage api: Argument.FieldOverride.Tick int 1 run random value 2..7 | ||
|
|
||
| execute store result storage api: Argument.FieldOverride.UserID int 1 run scoreboard players get @s UserID | ||
| $execute positioned ^$(OffsetX) ^$(OffsetY) ^$(OffsetZ) run function api:object/summon |
15 changes: 15 additions & 0 deletions
15
...ta/asset/functions/artifact/1465.versatile_plasma/release_using_item/3.2.beam/.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/1465.versatile_plasma/release_using_item/3.2.beam/ | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/release_using_item/2.check_condition | ||
|
|
||
| # 3発撃つ | ||
| execute rotated ~-30 ~ run function asset:artifact/1465.versatile_plasma/release_using_item/3.2.beam/summon | ||
|
|
||
| execute rotated ~ ~ run function asset:artifact/1465.versatile_plasma/release_using_item/3.2.beam/summon | ||
|
|
||
| execute rotated ~30 ~ run function asset:artifact/1465.versatile_plasma/release_using_item/3.2.beam/summon | ||
|
|
||
| # 演出 | ||
| playsound block.respawn_anchor.deplete player @a ~ ~ ~ 2 2 |
20 changes: 20 additions & 0 deletions
20
...et/functions/artifact/1465.versatile_plasma/release_using_item/3.2.beam/summon.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,20 @@ | ||
| #> asset:artifact/1465.versatile_plasma/release_using_item/3.2.beam/summon | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/release_using_item/3.2.beam/ | ||
|
|
||
| data modify storage api: Argument.ID set value 1169 | ||
|
|
||
| # 攻撃情報 | ||
| data modify storage api: Argument.FieldOverride.Damage set value 150 | ||
| data modify storage api: Argument.FieldOverride.AdditionalMPHeal set value 5 | ||
| data modify storage api: Argument.FieldOverride.AttackType set value "Physical" | ||
| data modify storage api: Argument.FieldOverride.ElementType set value "Thunder" | ||
|
|
||
| # 発射体のField | ||
| data modify storage api: Argument.FieldOverride.Speed set value 2 | ||
| data modify storage api: Argument.FieldOverride.Range set value 50 | ||
|
|
||
| execute store result storage api: Argument.FieldOverride.UserID int 1 run scoreboard players get @s UserID | ||
| function api:object/summon |
19 changes: 19 additions & 0 deletions
19
...a/asset/functions/artifact/1465.versatile_plasma/release_using_item/3.3.laser/.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/1465.versatile_plasma/release_using_item/3.3.laser/ | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/release_using_item/2.check_condition | ||
|
|
||
| #> Private | ||
| # @within function asset:artifact/1465.versatile_plasma/release_using_item/3.3.laser/** | ||
| #declare tag A1465.Hit | ||
| #declare tag A1465.HitTarget | ||
|
|
||
| # 再帰処理 | ||
| execute anchored eyes positioned ^ ^ ^ run function asset:artifact/1465.versatile_plasma/release_using_item/3.3.laser/rec | ||
| tag @s remove A1465.Hit | ||
| function asset:artifact/1465.versatile_plasma/release_using_item/3.3.laser/damage | ||
|
|
||
| # 演出 | ||
| playsound ogg:block.vault.open_shutter player @a ~ ~ ~ 2 2 | ||
| playsound ogg:block.vault.break player @a ~ ~ ~ 1 1 |
17 changes: 17 additions & 0 deletions
17
...t/functions/artifact/1465.versatile_plasma/release_using_item/3.3.laser/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,17 @@ | ||
| #> asset:artifact/1465.versatile_plasma/release_using_item/3.3.laser/damage | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/release_using_item/3.3.laser/ | ||
|
|
||
| # ダメージ | ||
| data modify storage api: Argument.Damage set value 300 | ||
| data modify storage api: Argument.AdditionalMPHeal set value 5 | ||
| data modify storage api: Argument.AttackType set value "Physical" | ||
| data modify storage api: Argument.ElementType set value "Thunder" | ||
| function api:damage/modifier | ||
| execute as @e[type=#lib:living_without_player,tag=A1465.HitTarget,distance=..20] run function api:damage/ | ||
| function api:damage/reset | ||
|
|
||
| # A1465.HitTargetタグ削除 | ||
| tag @e[type=#lib:living_without_player,tag=A1465.HitTarget,distance=..20] remove A1465.HitTarget |
19 changes: 19 additions & 0 deletions
19
...sset/functions/artifact/1465.versatile_plasma/release_using_item/3.3.laser/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,19 @@ | ||
| #> asset:artifact/1465.versatile_plasma/release_using_item/3.3.laser/rec | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/release_using_item/3.3.laser/* | ||
|
|
||
| # 着弾検知 | ||
| execute unless block ^ ^ ^0.5 #lib:no_collision/ run tag @s add A1465.Hit | ||
|
|
||
| # 命中 | ||
| execute positioned ~-0.5 ~-0.5 ~-0.5 run tag @e[type=#lib:living_without_player,tag=Enemy,tag=!A1465.HitTarget,tag=!Uninterferable,dx=0,limit=1] add A1465.HitTarget | ||
|
|
||
| # 演出 | ||
| particle dust 0.8 1.0 0.5 1.0 ~ ~ ~ 0.0 0.0 0.0 1 1 | ||
| particle dust 0.5 1.0 0.5 1.5 ~ ~ ~ 0.0 0.0 0.0 1 1 | ||
| particle dust 0.8 0.8 0.3 0.5 ~ ~ ~ 0.0 0.0 0.0 1 1 | ||
|
|
||
| # 再帰 | ||
| execute positioned ^ ^ ^0.5 if entity @s[tag=!A1465.Hit,distance=..20] run function asset:artifact/1465.versatile_plasma/release_using_item/3.3.laser/rec |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/artifact/1465.versatile_plasma/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/1465.versatile_plasma/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:1465} run function asset:artifact/1465.versatile_plasma/using_item/2.check_condition |
17 changes: 17 additions & 0 deletions
17
...ta/asset/functions/artifact/1465.versatile_plasma/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,17 @@ | ||
| #> asset:artifact/1465.versatile_plasma/using_item/2.check_condition | ||
| # | ||
| # 神器の発動条件をチェックします | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/using_item/1.trigger | ||
|
|
||
| # チャージ段階のEffect取得 | ||
| data modify storage api: Argument.ID set value 374 | ||
| function api:entity/mob/effect/get/from_id | ||
| # チャージ中ならば強制的にチャージ続行 | ||
| execute if data storage api: Return.Effect run return run function asset:artifact/1465.versatile_plasma/using_item/charge | ||
|
|
||
| # 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く | ||
| function asset:artifact/common/check_condition/mainhand | ||
|
|
||
| # CanUsedタグをチェックして3.main.mcfunctionを実行する | ||
| execute if entity @s[tag=CanUsed] run function asset:artifact/1465.versatile_plasma/using_item/3.main |
16 changes: 16 additions & 0 deletions
16
Asset/data/asset/functions/artifact/1465.versatile_plasma/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/1465.versatile_plasma/using_item/3.main | ||
| # | ||
| # 神器のメイン処理部 | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/using_item/2.check_condition | ||
|
|
||
| # 基本的な使用時の処理(MP消費や使用回数の処理など)を行う | ||
| function asset:artifact/common/use/mainhand | ||
|
|
||
| # チャージ用Effectを付与 | ||
| data modify storage api: Argument.ID set value 374 | ||
| function api:entity/mob/effect/give | ||
| function api:entity/mob/effect/reset | ||
|
|
||
| # 演出 | ||
| playsound block.iron_door.open player @a ~ ~ ~ 2 0.5 |
9 changes: 9 additions & 0 deletions
9
Asset/data/asset/functions/artifact/1465.versatile_plasma/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,9 @@ | ||
| #> asset:artifact/1465.versatile_plasma/using_item/charge | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/using_item/2.check_condition | ||
|
|
||
| # 長押しした時間からEffect374のスタックを更新 | ||
| execute if data storage asset:context UsingItemTime{mainhand:25} run function asset:artifact/1465.versatile_plasma/using_item/charge/check/2 | ||
| execute if data storage asset:context UsingItemTime{mainhand:50} run function asset:artifact/1465.versatile_plasma/using_item/charge/check/3 | ||
22 changes: 22 additions & 0 deletions
22
Asset/data/asset/functions/artifact/1465.versatile_plasma/using_item/charge/2.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/1465.versatile_plasma/using_item/charge/2 | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/using_item/charge/** | ||
|
|
||
| # スタック数を増やす | ||
| data modify storage api: Argument.ID set value 374 | ||
| data modify storage api: Argument.Stack set value 2 | ||
| function api:entity/mob/effect/give | ||
| function api:entity/mob/effect/reset | ||
|
|
||
| # MP消費 | ||
| data modify storage api: Argument.Fluctuation set value -25 | ||
| data modify storage api: Argument.DisableLog set value 1b | ||
| function api:mp/fluctuation | ||
|
|
||
| # 演出 | ||
| playsound block.piston.extend player @a ~ ~ ~ 2 2 | ||
| particle dust 0.8 1.0 0.5 2.0 ~ ~ ~ 0.5 1.0 0.5 1 8 | ||
| particle dust 0.5 1.0 0.5 2.5 ~ ~ ~ 0.5 1.0 0.5 1 8 | ||
| particle dust 0.8 0.8 0.3 1.5 ~ ~ ~ 0.5 1.0 0.5 1 8 |
23 changes: 23 additions & 0 deletions
23
Asset/data/asset/functions/artifact/1465.versatile_plasma/using_item/charge/3.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/1465.versatile_plasma/using_item/charge/3 | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:artifact/1465.versatile_plasma/using_item/charge/** | ||
|
|
||
| # スタック数を増やす | ||
| data modify storage api: Argument.ID set value 374 | ||
| data modify storage api: Argument.Stack set value 3 | ||
| function api:entity/mob/effect/give | ||
| function api:entity/mob/effect/reset | ||
|
|
||
| # MP消費 | ||
| data modify storage api: Argument.Fluctuation set value -35 | ||
| data modify storage api: Argument.DisableLog set value 1b | ||
| function api:mp/fluctuation | ||
|
|
||
| # 演出 | ||
| playsound block.piston.extend player @a ~ ~ ~ 2 2 | ||
| playsound block.trial_spawner.detect_player player @a ~ ~ ~ 2 0.5 | ||
| particle dust 0.8 1.0 0.5 2.0 ~ ~ ~ 0.5 1.0 0.5 1 8 | ||
| particle dust 0.5 1.0 0.5 2.5 ~ ~ ~ 0.5 1.0 0.5 1 8 | ||
| particle dust 0.8 0.8 0.3 1.5 ~ ~ ~ 0.5 1.0 0.5 1 8 |
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.