Skip to content

Commit 3722c64

Browse files
committed
神器1456~1462(アイスブランドアーツ)、それに使用するオブジェクト(1161~1166)の作成
威力とmpとテクスチャはまだ適当
1 parent d28196a commit 3722c64

93 files changed

Lines changed: 1231 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#> asset:artifact/1456.ice_brand_arts/give/1.trigger
2+
#
3+
# 神器の取得処理の呼び出し時に実行されるfunction
4+
#
5+
# @within tag/function asset:artifact/give
6+
7+
execute if data storage asset:context {id:1456} run function asset:artifact/1456.ice_brand_arts/give/2.give
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#> asset:artifact/1456.ice_brand_arts/give/2.give
2+
#
3+
# 神器の作成部 ここでID等を定義する
4+
#
5+
# @user
6+
# @within function asset:artifact/1456.ice_brand_arts/give/1.trigger
7+
8+
# 神器の説明や消費MPなどをここで設定する。
9+
# 最後にasset:artifact/common/giveを実行することで入手可能。
10+
11+
# 神器のID (int) スプレッドシートの値を入れる
12+
data modify storage asset:artifact ID set value 1456
13+
# 神器のベースアイテム
14+
data modify storage asset:artifact Item set value "minecraft:carrot_on_a_stick"
15+
# 神器の名前 (TextComponentString)
16+
data modify storage asset:artifact Name set value '{"text":"アイスブランドアーツ","color":"#7DFFF2","bold":true}'
17+
# 神器の説明文 (TextComponentString[])
18+
data modify storage asset:artifact Lore set value ['{"text":"使用すると周囲に複数の氷の神器を生成し落下させて攻撃する","color":"white"}','{"text":"生成した神器は右クリックで回収可能","color":"white"}','[{"text":"使用後しばらく","color":"white"},{"text":"アイシクルライン","color":"aqua"},{"text":"が付与され、その間生成した神器をMPを消費せずに使用できる","color":"white"}]']
19+
# 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション)
20+
# data modify storage asset:artifact ConsumeItem.Item set value '{"translate":"item.minecraft.stick"}'
21+
# data modify storage asset:artifact ConsumeItem.Count set value 1
22+
# data modify storage asset:artifact ConsumeItem.Extra set value
23+
# 使用回数 (int) (オプション)
24+
# data modify storage asset:artifact RemainingCount set value
25+
# 神器を発動できるスロット (string) Wikiを参照
26+
data modify storage asset:artifact Slot set value "auto"
27+
# 神器のトリガー (string) Wikiを参照
28+
data modify storage asset:artifact Trigger set value "onClick"
29+
# 神器の発動条件 (TextComponentString) (オプション)
30+
# data modify storage asset:artifact Condition set value
31+
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
32+
data modify storage asset:artifact AttackInfo.Damage set value [200]
33+
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
34+
data modify storage asset:artifact AttackInfo.AttackType set value [Physical]
35+
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
36+
data modify storage asset:artifact AttackInfo.ElementType set value [Water]
37+
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
38+
# data modify storage asset:artifact AttackInfo.BypassResist set value
39+
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
40+
data modify storage asset:artifact AttackInfo.IsRangeAttack set value "every"
41+
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
42+
data modify storage asset:artifact AttackInfo.AttackRange set value 10
43+
# MP消費量 (int)
44+
data modify storage asset:artifact MPCost set value 200
45+
# MP必要量 (int) (オプション)
46+
data modify storage asset:artifact MPRequire set value 200
47+
# MP回復量 (int)
48+
# data modify storage asset:artifact MPHealWhenHit set value
49+
# 神器のクールダウン (int) (オプション)
50+
data modify storage asset:artifact LocalCooldown set value 600
51+
# 種別クールダウン ({Type: string, Duration: int}) (オプション)
52+
data modify storage asset:artifact TypeCooldown.Type set value "longRange"
53+
data modify storage asset:artifact TypeCooldown.Duration set value 60
54+
# グローバルクールダウン (int) (オプション)
55+
# data modify storage asset:artifact SpecialCooldown set value
56+
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
57+
# data modify storage asset:artifact DisableCooldownMessage set value
58+
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
59+
# data modify storage asset:artifact DisableMPMessage set value
60+
# 破壊時の音を鳴らさないかどうか (boolean) (オプション)
61+
# data modify storage asset:artifact DisableBreakSound set value
62+
# 扱える神 (string[]) Wikiを参照
63+
data modify storage asset:artifact CanUsedGod set value [Flora,Urban,Rumor]
64+
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
65+
# data modify storage asset:artifact CustomNBT set value {}
66+
67+
# 神器の入手用function
68+
function asset:artifact/common/give
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#> asset:artifact/1456.ice_brand_arts/trigger/1.trigger
2+
#
3+
# 指定したイベントタイミングで実行されるfunction
4+
#
5+
# @within tag/function asset:artifact/**
6+
7+
# storage asset:idのautoに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
8+
execute if data storage asset:context id{auto:1456} run function asset:artifact/1456.ice_brand_arts/trigger/2.check_condition
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#> asset:artifact/1456.ice_brand_arts/trigger/2.check_condition
2+
#
3+
# 神器の発動条件をチェックします
4+
#
5+
# @within function asset:artifact/1456.ice_brand_arts/trigger/1.trigger
6+
7+
# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く
8+
function asset:artifact/common/check_condition/auto
9+
# 他にアイテム等確認する場合はここに書く
10+
11+
# CanUsedタグをチェックして3.main.mcfunctionを実行する
12+
execute if entity @s[tag=CanUsed] run function asset:artifact/1456.ice_brand_arts/trigger/3.main
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#> asset:artifact/1456.ice_brand_arts/trigger/3.main
2+
#
3+
# 神器のメイン処理部
4+
#
5+
# @within function asset:artifact/1456.ice_brand_arts/trigger/2.check_condition
6+
7+
# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う
8+
function asset:artifact/common/use/auto
9+
10+
# ここから先は神器側の効果の処理を書く
11+
# 0〜3の乱数を生成し、ストレージの[_]に保存
12+
execute store result storage asset:temp _ int 1 run random value 0..3
13+
# 生成音
14+
playsound block.amethyst_cluster.break master @a ~ ~ ~ 1 1.2
15+
playsound block.amethyst_block.chime master @a ~ ~ ~ 1 1.5
16+
# 乱数(0〜3)に応じて、基準の向きを東西南北に変えて展開functionを呼び出す
17+
execute if data storage asset:temp {_:0} at @s rotated 0 0 run function asset:artifact/1456.ice_brand_arts/trigger/position_set
18+
execute if data storage asset:temp {_:1} at @s rotated 90 0 run function asset:artifact/1456.ice_brand_arts/trigger/position_set
19+
execute if data storage asset:temp {_:2} at @s rotated 180 0 run function asset:artifact/1456.ice_brand_arts/trigger/position_set
20+
execute if data storage asset:temp {_:3} at @s rotated -90 0 run function asset:artifact/1456.ice_brand_arts/trigger/position_set
21+
data remove storage asset:temp _
22+
#
23+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#> asset:artifact/1456.ice_brand_arts/trigger/position_set
2+
#
3+
# 神器のメイン処理部
4+
#
5+
# @within function asset:artifact/1456.ice_brand_arts/trigger/3.main
6+
7+
# それぞれの位置に武器召喚コマンド
8+
execute at @s rotated ~15 0 positioned ^ ^ ^6 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
9+
execute at @s rotated ~-40 0 positioned ^ ^ ^10 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
10+
execute at @s rotated ~75 0 positioned ^ ^ ^8.5 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
11+
execute at @s rotated ~110 0 positioned ^ ^ ^4.5 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
12+
execute at @s rotated ~160 0 positioned ^ ^ ^10 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
13+
execute at @s rotated ~-150 0 positioned ^ ^ ^6.5 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
14+
execute at @s rotated ~-100 0 positioned ^ ^ ^11.5 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
15+
execute at @s rotated ~-10 0 positioned ^ ^ ^7.5 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
16+
execute at @s rotated ~180 0 positioned ^ ^ ^3 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#> asset:artifact/1456.ice_brand_arts/trigger/position_set
2+
#
3+
# 神器のメイン処理部
4+
#
5+
# @within function asset:artifact/1456.ice_brand_arts/trigger/position_set
6+
7+
8+
# 演出
9+
particle minecraft:dust_color_transition 0.5 0.8 1.0 1.2 1.0 1.0 1.0 ~ ~0.5 ~ 0.4 0.4 0.4 0 30 normal
10+
particle minecraft:snowflake ~ ~0.5 ~ 1 1 1 0.02 10 normal
11+
# 0〜5の乱数を生成し、ストレージに保存(武器種決定)
12+
execute store result storage asset:temp kind int 1 run random value 0..5
13+
#武器設置
14+
# 引数: ID
15+
execute if data storage asset:temp {kind:0} run data modify storage api: Argument.ID set value 1161
16+
execute if data storage asset:temp {kind:1} run data modify storage api: Argument.ID set value 1162
17+
execute if data storage asset:temp {kind:2} run data modify storage api: Argument.ID set value 1163
18+
execute if data storage asset:temp {kind:3} run data modify storage api: Argument.ID set value 1164
19+
execute if data storage asset:temp {kind:4} run data modify storage api: Argument.ID set value 1165
20+
execute if data storage asset:temp {kind:5} run data modify storage api: Argument.ID set value 1166
21+
22+
23+
# (オプション) Field の値を上書き
24+
#data modify storage api: Argument.FieldOverride set value {Speed:8,Damage:5.0d,Color:16711680}
25+
26+
# 召喚位置・向きは実行者のものが使われる
27+
function api:object/summon
28+
29+
data remove storage asset:temp kind
30+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#> asset:artifact/1457.ice_brand_arts_axe/give/1.trigger
2+
#
3+
# 神器の取得処理の呼び出し時に実行されるfunction
4+
#
5+
# @within tag/function asset:artifact/give
6+
7+
execute if data storage asset:context {id:1457} run function asset:artifact/1457.ice_brand_arts_axe/give/2.give
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#> asset:artifact/1457.ice_brand_arts_axe/give/2.give
2+
#
3+
# 神器の作成部 ここでID等を定義する
4+
#
5+
# @user
6+
# @within function asset:artifact/1457.ice_brand_arts_axe/give/1.trigger
7+
8+
# 神器の説明や消費MPなどをここで設定する。
9+
# 最後にasset:artifact/common/giveを実行することで入手可能。
10+
11+
# 神器のID (int) スプレッドシートの値を入れる
12+
data modify storage asset:artifact ID set value 1457
13+
# 神器のベースアイテム
14+
data modify storage asset:artifact Item set value stick
15+
# 神器の名前 (TextComponentString)
16+
data modify storage asset:artifact Name set value '{"text":"アイスブランドアーツ-斧","color":"#7DFFF2"}'
17+
# 神器の説明文 (TextComponentString[])
18+
data modify storage asset:artifact Lore set value ['{"text":"アイスブランドアーツで生成した氷の斧","color":"white"}','[{"text":"アイシクルライン","color":"aqua"},{"text":"状態中、MP消費無しで使用可能","color":"white"}]']
19+
# 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション)
20+
# data modify storage asset:artifact ConsumeItem.Item set value '{"translate":"item.minecraft.stick"}'
21+
# data modify storage asset:artifact ConsumeItem.Count set value 1
22+
# data modify storage asset:artifact ConsumeItem.Extra set value
23+
# 使用回数 (int) (オプション)
24+
data modify storage asset:artifact RemainingCount set value 1
25+
# 神器を発動できるスロット (string) Wikiを参照
26+
data modify storage asset:artifact Slot set value "mainhand"
27+
# 神器のトリガー (string) Wikiを参照
28+
data modify storage asset:artifact Trigger set value "onAttackByMelee"
29+
# 神器の発動条件 (TextComponentString) (オプション)
30+
data modify storage asset:artifact Condition set value '{"text":"クリティカル攻撃"}'
31+
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
32+
data modify storage asset:artifact AttackInfo.Damage set value [1000]
33+
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
34+
data modify storage asset:artifact AttackInfo.AttackType set value [Physical]
35+
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
36+
data modify storage asset:artifact AttackInfo.ElementType set value [Water]
37+
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
38+
# data modify storage asset:artifact AttackInfo.BypassResist set value
39+
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
40+
# data modify storage asset:artifact AttackInfo.IsRangeAttack set value
41+
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
42+
# data modify storage asset:artifact AttackInfo.AttackRange set value
43+
# MP消費量 (int)
44+
data modify storage asset:artifact MPCost set value 150
45+
# MP必要量 (int) (オプション)
46+
#data modify storage asset:artifact MPRequire set value 150
47+
# MP回復量 (int)
48+
# data modify storage asset:artifact MPHealWhenHit set value
49+
# 神器のクールダウン (int) (オプション)
50+
# data modify storage asset:artifact LocalCooldown set value 30
51+
# 種別クールダウン ({Type: string, Duration: int}) (オプション)
52+
data modify storage asset:artifact TypeCooldown.Type set value "short_Range"
53+
data modify storage asset:artifact TypeCooldown.Duration set value 30
54+
# グローバルクールダウン (int) (オプション)
55+
# data modify storage asset:artifact SpecialCooldown set value
56+
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
57+
# data modify storage asset:artifact DisableCooldownMessage set value
58+
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
59+
# data modify storage asset:artifact DisableMPMessage set value
60+
# 破壊時の音を鳴らさないかどうか (boolean) (オプション)
61+
# data modify storage asset:artifact DisableBreakSound set value
62+
# 扱える神 (string[]) Wikiを参照
63+
data modify storage asset:artifact CanUsedGod set value "ALL"
64+
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
65+
# data modify storage asset:artifact CustomNBT set value {}
66+
67+
# 神器の入手用function
68+
function asset:artifact/common/give
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#> asset:artifact/1457.ice_brand_arts_axe/trigger/1.trigger
2+
#
3+
# 指定したイベントタイミングで実行されるfunction
4+
#
5+
# @within tag/function asset:artifact/**
6+
7+
# storage asset:idのmainhandに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
8+
execute if data storage asset:context id{mainhand:1457} run function asset:artifact/1457.ice_brand_arts_axe/trigger/2.check_condition

0 commit comments

Comments
 (0)