-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dev/uran2471_0797
- Loading branch information
Showing
17 changed files
with
234 additions
and
1 deletion.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/artifact/1177.spinnrade/give/1.trigger.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:artifact/1177.spinnrade/give/1.trigger | ||
# | ||
# 神器の取得処理の呼び出し時に実行されるfunction | ||
# | ||
# @within tag/function asset:artifact/give | ||
|
||
execute if data storage asset:context {id:1177} run function asset:artifact/1177.spinnrade/give/2.give |
65 changes: 65 additions & 0 deletions
65
Asset/data/asset/functions/artifact/1177.spinnrade/give/2.give.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#> asset:artifact/1177.spinnrade/give/2.give | ||
# | ||
# 神器の作成部 ここでID等を定義する | ||
# | ||
# @user | ||
# @within function asset:artifact/1177.spinnrade/give/1.trigger | ||
|
||
# 神器の説明や消費MPなどをここで設定する。 | ||
# 最後にasset:artifact/common/giveを実行することで入手可能。 | ||
|
||
# 神器のID (int) スプレッドシートの値を入れる | ||
data modify storage asset:artifact ID set value 1177 | ||
# 神器のベースアイテム | ||
data modify storage asset:artifact Item set value "minecraft:bow" | ||
# 神器の名前 (TextComponentString) | ||
data modify storage asset:artifact Name set value '{"text":"救済の弓","color":"#ff69b4"}' | ||
# 神器の説明文 (TextComponentString[]) | ||
data modify storage asset:artifact Lore set value ['{"text":"強力な追尾性能を持つ矢を放つ","color":"white"}','{"text":"クラスの皆には内緒だよ☆","color":"gray"}'] | ||
# MP以外の消費物 (TextComponentString) (オプション) | ||
data modify storage asset:artifact ConsumeItem.Item set value '{"translate":"item.minecraft.arrow"}' | ||
data modify storage asset:artifact ConsumeItem.Count set value 1 | ||
# 使用回数 (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 "shot" | ||
# 神器の発動条件 (TextComponentString) (オプション) | ||
# data modify storage asset:artifact Condition set value | ||
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション) | ||
data modify storage asset:artifact AttackInfo.Damage set value [620,780] | ||
# 攻撃に関する情報 -攻撃タイプ (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 "never" | ||
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション) | ||
# data modify storage asset:artifact AttackInfo.AttackRange set value | ||
# MP消費量 (int) | ||
data modify storage asset:artifact MPCost set value 30 | ||
# MP必要量 (int) (オプション) | ||
# data modify storage asset:artifact MPRequire set value | ||
# 神器のクールダウン (int) (オプション) | ||
# data modify storage asset:artifact LocalCooldown set value 20 | ||
# 種別クールダウン ({Type: string, Duration: int}) (オプション) | ||
data modify storage asset:artifact TypeCooldown.Type set value "longRange" | ||
data modify storage asset:artifact TypeCooldown.Duration set value 20 | ||
# グローバルクールダウン (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", "Wi-ki", "Nyaptov", "Rumor"] | ||
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション) | ||
# data modify storage asset:artifact CustomNBT set value {} | ||
|
||
# 神器の入手用function | ||
function asset:artifact/common/give |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/artifact/1177.spinnrade/register.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:artifact/1177.spinnrade/register | ||
# | ||
# 神器プールへの登録処理 | ||
# | ||
# @within tag/function asset:artifact/register | ||
|
||
data modify storage asset:artifact RarityRegistry[4] append value [1177] |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/artifact/1177.spinnrade/trigger/1.trigger.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#> asset:artifact/1177.spinnrade/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:1177} run function asset:artifact/1177.spinnrade/trigger/2.check_condition |
22 changes: 22 additions & 0 deletions
22
Asset/data/asset/functions/artifact/1177.spinnrade/trigger/2.check_condition.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#> asset:artifact/1177.spinnrade/trigger/2.check_condition | ||
# | ||
# 神器の発動条件をチェックします | ||
# | ||
# @within function asset:artifact/1177.spinnrade/trigger/1.trigger | ||
|
||
# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く | ||
function asset:artifact/common/check_condition/mainhand | ||
# 他にアイテム等確認する場合はここに書く | ||
|
||
# 矢がクリティカルか見る | ||
execute if entity @e[type=#arrows,tag=ShotArrow,nbt={crit:1b},distance=..5,sort=nearest,limit=1] run tag @s add WP.FullCharge | ||
# 矢を消す | ||
kill @e[type=#arrows,tag=ShotArrow,distance=..5] | ||
# 発動しなかったら矢を返す | ||
execute unless entity @s[tag=CanUsed] run summon item ~ ~ ~ {PickupDelay:0s,Item:{id:"minecraft:arrow",Count:1b}} | ||
|
||
# CanUsedタグをチェックして3.main.mcfunctionを実行する | ||
execute if entity @s[tag=CanUsed] run function asset:artifact/1177.spinnrade/trigger/3.main | ||
|
||
# タグ消す | ||
tag @s remove WP.FullCharge |
23 changes: 23 additions & 0 deletions
23
Asset/data/asset/functions/artifact/1177.spinnrade/trigger/3.main.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#> asset:artifact/1177.spinnrade/trigger/3.main | ||
# | ||
# 神器のメイン処理部 | ||
# | ||
# @within function asset:artifact/1177.spinnrade/trigger/2.check_condition | ||
|
||
# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う | ||
function asset:artifact/common/use/mainhand | ||
|
||
# ここから先は神器側の効果の処理を書く | ||
|
||
# 演出 | ||
playsound minecraft:entity.breeze.shoot player @a ~ ~ ~ 1 2 | ||
playsound minecraft:item.trident.riptide_1 player @a ~ ~ ~ 1 2 | ||
playsound minecraft:entity.puffer_fish.death player @a ~ ~ ~ 1 1.4 | ||
# 矢を召喚する | ||
data modify storage api: Argument.ID set value 1087 | ||
execute if entity @s[tag=WP.FullCharge] run data modify storage api: Argument.FieldOverride.Damage set value 780 | ||
execute unless entity @s[tag=WP.FullCharge] run data modify storage api: Argument.FieldOverride.Damage set value 620 | ||
execute if entity @s[tag=WP.FullCharge] run data modify storage api: Argument.FieldOverride.Speed set value 8 | ||
execute unless entity @s[tag=WP.FullCharge] run data modify storage api: Argument.FieldOverride.Speed set value 4 | ||
execute store result storage api: Argument.FieldOverride.UserID int 1 run scoreboard players get @s UserID | ||
execute anchored eyes positioned ^ ^ ^ run function api:object/summon |
6 changes: 6 additions & 0 deletions
6
Asset/data/asset/functions/artifact/1177.spinnrade/trigger/_index.d.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#> asset:artifact/1177.spinnrade/trigger/_index.d | ||
# @private | ||
|
||
#> tag | ||
# @within function asset:artifact/1177.spinnrade/trigger/** | ||
#declare tag WP.FullCharge |
9 changes: 9 additions & 0 deletions
9
Asset/data/asset/functions/object/1087.spinnrade/pre_hit/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#> asset:object/1087.spinnrade/pre_hit/ | ||
# | ||
# 継承先などから実行される処理 | ||
# | ||
# @within asset:object/alias/1087/pre_hit | ||
|
||
# 演出 | ||
particle dust 1 0.761 0.831 1 ~ ~ ~ 0 0 0 0 1 | ||
particle cherry_leaves ~ ~ ~ 0.4 0.4 0.4 1 10 |
23 changes: 23 additions & 0 deletions
23
Asset/data/asset/functions/object/1087.spinnrade/recursive/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#> asset:object/1087.spinnrade/recursive/ | ||
# | ||
# 継承先などから実行される処理 | ||
# | ||
# @within asset:object/alias/1087/recursive | ||
|
||
#> Private | ||
# @private | ||
#declare tag 1087.TargetCandidate | ||
|
||
# ホーミング用の遅延 | ||
execute store result storage asset:context this.HomingDelay int 0.9999999999 run data get storage asset:context this.HomingDelay 1 | ||
# 前方にいる一番近い敵をターゲットする | ||
execute if data storage asset:context this{HomingDelay:0} positioned ^ ^ ^15 as @e[type=#lib:living,tag=Enemy,tag=!Uninterferable,distance=..15] run tag @s add 1087.TargetCandidate | ||
execute if data storage asset:context this{HomingDelay:0} facing entity @e[type=#lib:living,tag=1087.TargetCandidate,distance=..15,sort=nearest,limit=1] eyes positioned ^ ^ ^-100 rotated as @s positioned ^ ^ ^-600 facing entity @s eyes positioned as @s run tp @s ~ ~ ~ ~ ~ | ||
execute if data storage asset:context this{HomingDelay:0} run tag @e[type=#lib:living,tag=1087.TargetCandidate,distance=..50] remove 1087.TargetCandidate | ||
|
||
# 演出 | ||
particle dust 1 0.761 0.831 1 ~ ~ ~ 0 0 0 0 1 | ||
execute if predicate lib:random_pass_per/20 run particle minecraft:cherry_leaves ~ ~ ~ 0 0 0 1 1 | ||
|
||
# super 呼び出し | ||
execute at @s run function asset:object/super.method |
26 changes: 26 additions & 0 deletions
26
Asset/data/asset/functions/object/1087.spinnrade/register.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#> asset:object/1087.spinnrade/register | ||
# | ||
# Objectのデータを指定 | ||
# | ||
# @within function asset:object/alias/1087/register | ||
|
||
# 継承(オプション) | ||
data modify storage asset:object Extends append value 1009 | ||
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 1087 | ||
# フィールド(オプション) | ||
data modify storage asset:object Field.Color set value 16766720 | ||
data modify storage asset:object Field.ShowCritParticle set value false | ||
data modify storage asset:object Field.Range set value 48 | ||
# data modify storage asset:object Field.Speed set value 4 | ||
# data modify storage asset:object Field.Damage set value 1 | ||
# data modify storage asset:object Field.Enhanced set value true | ||
data modify storage asset:object Field.HomingDelay set value 5 |
10 changes: 10 additions & 0 deletions
10
Asset/data/asset/functions/object/1087.spinnrade/summon/debug.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#> asset:object/1087.spinnrade/summon/debug | ||
# | ||
# 動作チェック用の召喚処理 使い終わったら消してもいいかも | ||
# | ||
# @user | ||
# @private | ||
|
||
# 召喚 | ||
data modify storage api: Argument.ID set value 1009 | ||
function api:object/summon |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/object/alias/1087/pre_hit.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#> asset:object/alias/1087/pre_hit | ||
# | ||
# メソッド処理のエイリアス | ||
# | ||
# @within asset_manager:object/call_method/run_method.m | ||
|
||
# 元のメソッド処理を呼び出す | ||
function asset:object/1087.spinnrade/pre_hit/ |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/object/alias/1087/recursive.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#> asset:object/alias/1087/recursive | ||
# | ||
# メソッド処理のエイリアス | ||
# | ||
# @within asset_manager:object/call_method/run_method.m | ||
|
||
# 元のメソッド処理を呼び出す | ||
function asset:object/1087.spinnrade/recursive/ |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/object/alias/1087/register.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#> asset:object/alias/1087/register | ||
# | ||
# Objectのデータ指定処理のエイリアス | ||
# | ||
# @within asset_manager:object/summon/register.m | ||
|
||
# 元の登録処理を呼び出す | ||
function asset:object/1087.spinnrade/register |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
{ | ||
"values": [ | ||
"asset:artifact/1177.spinnrade/trigger/1.trigger", | ||
"asset:artifact/0248.bow_of_vinderre/trigger/1.trigger", | ||
"asset:artifact/0249.wakinyan/trigger/1.trigger", | ||
"asset:artifact/0250.phoenix/trigger/1.trigger", | ||
"asset:artifact/0328.attract_hook_shot/trigger/1.trigger", | ||
"asset:artifact/0329.approaching_hook_shot/trigger/1.trigger", | ||
"asset:artifact/1163.rail_shooter/trigger/1.trigger" | ||
] | ||
} | ||
} |