Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3722c64
神器1456~1462(アイスブランドアーツ)、それに使用するオブジェクト(1161~1166)の作成
ogachu0331 Jun 4, 2026
2aa81e3
アイスブランドアーツ本体の使用条件に戦闘中のみを追加、説明文の変更
ogachu0331 Jun 4, 2026
85927b1
没要素への記述の削除
ogachu0331 Jun 4, 2026
446aa4f
mp消費量の調整
ogachu0331 Jun 4, 2026
ba038ea
Merge branch 'master' into dev/ogachu_aritifact1456
ogachu0331 Jun 4, 2026
23c3f66
アイシクルライン状態の追加とそれに伴う処理の追加
ogachu0331 Jun 5, 2026
ebf19a4
Merge branch 'dev/ogachu_aritifact1456' of https://github.com/Project…
ogachu0331 Jun 5, 2026
732b7fc
effect#365の付与が周囲の味方に行われない問題の修正
ogachu0331 Jun 5, 2026
5f22861
指摘されたポイントの修正、artifact1461の汎用斬撃演出の追加、objectが1161一つで完結するよう修正しました
ogachu0331 Jun 5, 2026
ccd8c34
刀の斬撃を少し修正
ogachu0331 Jun 5, 2026
09d8be0
mp回復効果の回復量のミスを修正
ogachu0331 Jun 5, 2026
2e52650
アイシクルラインのmp回復量のミスの修正
ogachu0331 Jun 5, 2026
b8e0077
objectの統合とそれに伴うファイル名の変更、不要ファイルの削除
ogachu0331 Jun 6, 2026
8303346
不要となった記述の削除
ogachu0331 Jun 6, 2026
77cf665
ダミープレイヤーで#を用いていた問題の修正
ogachu0331 Jun 6, 2026
bbf3d42
Merge branch 'master' into dev/ogachu_aritifact1456
ogachu0331 Jun 8, 2026
9f23467
Merge branch 'master' into dev/ogachu_aritifact1456
ogachu0331 Jun 10, 2026
a27bd0f
テクスチャに合わせた調整
ogachu0331 Jun 10, 2026
f08b7d0
Merge branch 'dev/ogachu_aritifact1456' of https://github.com/Project…
ogachu0331 Jun 10, 2026
4569fc5
説明文の修正とハンマーを範囲攻撃に変更
ogachu0331 Jun 14, 2026
e405139
仕様の変更
ogachu0331 Jun 17, 2026
ce9ea06
斧のダメージ計算式の変更
ogachu0331 Jun 17, 2026
493843c
無限再起の解消
ogachu0331 Jun 17, 2026
e8be27f
initの処理をFieldで行うように(これで合ってますか...?)
ogachu0331 Jun 17, 2026
3387109
ヒット時のタグが残るバグの修正
ogachu0331 Jun 18, 2026
d107e01
加工機に登録(lv3,red)
ogachu0331 Jun 19, 2026
3acb06d
武器の落下速度を少し速めた
ogachu0331 Jun 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#> asset:artifact/1456.ice_brand_arts/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:1456} run function asset:artifact/1456.ice_brand_arts/give/2.give
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#> asset:artifact/1456.ice_brand_arts/give/2.give
#
# 神器の作成部 ここでID等を定義する
#
# @user
# @within function asset:artifact/1456.ice_brand_arts/give/1.trigger

# 神器の説明や消費MPなどをここで設定する。
# 最後にasset:artifact/common/giveを実行することで入手可能。

# 神器のID (int) スプレッドシートの値を入れる
data modify storage asset:artifact ID set value 1456
# 神器のベースアイテム
data modify storage asset:artifact Item set value "minecraft:carrot_on_a_stick"
# 神器の名前 (TextComponentString)
data modify storage asset:artifact Name set value '{"text":"アイスブランドアーツ","color":"#7DFFF2","bold":true}'
# 神器の説明文 (TextComponentString[])
data modify storage asset:artifact Lore set value ['{"text":"周囲に複数の氷製の神器を生成する","color":"white"}','{"text":"生成した神器は誰でも右クリックで回収可能","color":"white"}','{"text":"生成した神器は生成してから時間が経つほど威力が減衰する","color":"white"}']
# 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション)
# data modify storage asset:artifact ConsumeItem.Item set value '{"translate":"item.minecraft.stick"}'
# data modify storage asset:artifact ConsumeItem.Count set value 1
# data modify storage asset:artifact ConsumeItem.Extra set value
# 使用回数 (int) (オプション)
# data modify storage asset:artifact RemainingCount set value
# 神器を発動できるスロット (string) Wikiを参照
data modify storage asset:artifact Slot set value "mainhand"
# 神器のトリガー (string) Wikiを参照
data modify storage asset:artifact Trigger set value "onClick"
# 神器の発動条件 (TextComponentString) (オプション)
data modify storage asset:artifact Condition set value '"戦闘時"'
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
data modify storage asset:artifact AttackInfo.Damage set value [100,2000]
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
data modify storage asset:artifact AttackInfo.AttackType set value [Physical]
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
data modify storage asset:artifact AttackInfo.ElementType set value [Water]
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
# data modify storage asset:artifact AttackInfo.BypassResist set value
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
#data modify storage asset:artifact AttackInfo.IsRangeAttack set value
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
data modify storage asset:artifact AttackInfo.AttackRange set value 10
# MP消費量 (int)
data modify storage asset:artifact MPCost set value 70
# MP必要量 (int) (オプション)
# data modify storage asset:artifact MPRequire set value 200
# MP回復量 (int)
# data modify storage asset:artifact MPHealWhenHit set value
# 神器のクールダウン (int) (オプション)
data modify storage asset:artifact LocalCooldown set value 600
# 種別クールダウン ({Type: string, Duration: int}) (オプション)
data modify storage asset:artifact TypeCooldown.Type set value "longRange"
data modify storage asset:artifact TypeCooldown.Duration set value 60
# グローバルクールダウン (int) (オプション)
# data modify storage asset:artifact SpecialCooldown set value
# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション)
# data modify storage asset:artifact DisableCooldownMessage set value
# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション)
# data modify storage asset:artifact DisableMPMessage set value
# 破壊時の音を鳴らさないかどうか (boolean) (オプション)
# data modify storage asset:artifact DisableBreakSound set value
# 扱える神 (string[]) Wikiを参照
data modify storage asset:artifact CanUsedGod set value ["Flora","Urban","Rumor","Wi-ki"]
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
# data modify storage asset:artifact CustomNBT set value {}

# 神器の入手用function
function asset:artifact/common/give
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#> asset:artifact/1456.ice_brand_arts/register
#
# 神器プールへの登録処理
#
# @within tag/function asset:artifact/register

data modify storage asset:artifact RarityRegistry[3] append value [1456]
data modify storage asset:artifact RarityRegistryWithColor.Red[3] append value [1456]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#> asset:artifact/1456.ice_brand_arts/trigger/1.trigger
#
# 指定したイベントタイミングで実行されるfunction
#
# @within tag/function asset:artifact/**

# storage asset:idのautoに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する
execute if data storage asset:context id{mainhand:1456} run function asset:artifact/1456.ice_brand_arts/trigger/2.check_condition
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#> asset:artifact/1456.ice_brand_arts/trigger/2.check_condition
#
# 神器の発動条件をチェックします
#
# @within function asset:artifact/1456.ice_brand_arts/trigger/1.trigger

# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く
function asset:artifact/common/check_condition/mainhand
# 他にアイテム等確認する場合はここに書く
# 戦闘外に使うべからず
execute unless predicate lib:in_battle run tellraw @s[tag=CanUsed] {"text":"戦闘中のみ使用可能です。","color":"red"}
execute unless predicate lib:in_battle run tag @s remove CanUsed
# CanUsedタグをチェックして3.main.mcfunctionを実行する
execute if entity @s[tag=CanUsed] run function asset:artifact/1456.ice_brand_arts/trigger/3.main
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#> asset:artifact/1456.ice_brand_arts/trigger/3.main
#
# 神器のメイン処理部
#
# @within function asset:artifact/1456.ice_brand_arts/trigger/2.check_condition

# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う
function asset:artifact/common/use/auto

# ここから先は神器側の効果の処理を書く
#アイシクルライン付与
data modify storage api: Argument.ID set value 365
data modify storage api: Argument.Duration set value 600
execute store result storage api: Argument.FieldOverride.Time int 1 run data get storage global Time
# data modify storage api: Argument.Stack set value <スタック数> # オプション
# data modify storage api: Argument.DurationOperation set value "replace" # オプション
# data modify storage api: Argument.StackOperation set value "replace" # オプション
# data modify storage api: Argument.FieldOverride set value {…} # オプション
execute at @s as @a[distance=..10] run function api:entity/mob/effect/give
function api:entity/mob/effect/reset
# 0〜3の乱数を生成し、ストレージの[type]に保存
execute store result storage asset:temp type int 1 run random value 0..3
# 生成音
playsound block.amethyst_cluster.break player @a ~ ~ ~ 1 1.2
playsound block.amethyst_block.chime player @a ~ ~ ~ 1 1.5
# 乱数(0〜3)に応じて、基準の向きを東西南北に変えて展開functionを呼び出す
execute if data storage asset:temp {type:0} at @s rotated 0 0 run function asset:artifact/1456.ice_brand_arts/trigger/position_set
execute if data storage asset:temp {type:1} at @s rotated 90 0 run function asset:artifact/1456.ice_brand_arts/trigger/position_set
execute if data storage asset:temp {type:2} at @s rotated 180 0 run function asset:artifact/1456.ice_brand_arts/trigger/position_set
execute if data storage asset:temp {type:3} at @s rotated -90 0 run function asset:artifact/1456.ice_brand_arts/trigger/position_set
data remove storage asset:temp type
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#> asset:artifact/1456.ice_brand_arts/trigger/position_set
#
# 神器のメイン処理部
#
# @within function asset:artifact/1456.ice_brand_arts/trigger/3.main

# それぞれの位置に武器召喚コマンド
execute rotated ~15 0 positioned ^ ^ ^6 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
execute rotated ~-40 0 positioned ^ ^ ^10 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
execute rotated ~75 0 positioned ^ ^ ^8.5 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
execute rotated ~110 0 positioned ^ ^ ^4.5 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
execute rotated ~160 0 positioned ^ ^ ^10 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
execute rotated ~-150 0 positioned ^ ^ ^6.5 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
execute rotated ~-100 0 positioned ^ ^ ^11.5 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
execute rotated ~-10 0 positioned ^ ^ ^7.5 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
execute rotated ~180 0 positioned ^ ^ ^3 positioned ~ ~4 ~ run function asset:artifact/1456.ice_brand_arts/trigger/summon
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#> asset:artifact/1456.ice_brand_arts/trigger/position_set
#
# 神器のメイン処理部
#
# @within function asset:artifact/1456.ice_brand_arts/trigger/position_set

# 演出
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
particle minecraft:snowflake ~ ~0.5 ~ 1 1 1 0.02 10 normal
particle minecraft:end_rod ~ ~0.5 ~ 0.2 0.2 0.2 0.03 20 normal

#武器設置
# 引数: ID
data modify storage api: Argument.ID set value 1161

# Field の値を上書き
#武器種の確定
execute store result storage api: Argument.FieldOverride.Weapon int 1 run random value 0..5
#向きをずらす
execute store result storage api: Argument.FieldOverride.Yaw float 0.001 run random value -1000..1000
execute store result storage api: Argument.FieldOverride.Pitch float 0.001 run random value -200..700
# 正しいアイテムが表示されるように
data modify storage api: Argument.FieldOverride.Id set value "minecraft:stick"
execute if data storage api: Argument.FieldOverride{Weapon:4} run data modify storage api: Argument.FieldOverride.Id set value "minecraft:carrot_on_a_stick"
execute if data storage api: Argument.FieldOverride{Weapon:5} run data modify storage api: Argument.FieldOverride.Id set value "minecraft:carrot_on_a_stick"
# custommodelの変更
execute if data storage api: Argument.FieldOverride{Weapon:0} run data modify storage api: Argument.FieldOverride.Model set value 1457
execute if data storage api: Argument.FieldOverride{Weapon:1} run data modify storage api: Argument.FieldOverride.Model set value 1458
execute if data storage api: Argument.FieldOverride{Weapon:2} run data modify storage api: Argument.FieldOverride.Model set value 1459
execute if data storage api: Argument.FieldOverride{Weapon:3} run data modify storage api: Argument.FieldOverride.Model set value 1460
execute if data storage api: Argument.FieldOverride{Weapon:4} run data modify storage api: Argument.FieldOverride.Model set value 1461
execute if data storage api: Argument.FieldOverride{Weapon:5} run data modify storage api: Argument.FieldOverride.Model set value 1462
# 見た目変更(トンファーだけ刺さる向きを逆に)
data modify storage api: Argument.FieldOverride.Rotation set value "[0f,0f,0f,1f]"
execute if data storage api: Argument.FieldOverride{Weapon:3} run data modify storage api: Argument.FieldOverride.Rotation set value "[0f,0f,1f,0f]"


# 召喚位置・向きは実行者のものが使われる
function api:object/summon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#> asset:artifact/1457.ice_brand_arts_axe/give/1.trigger
#
# 神器の取得処理の呼び出し時に実行されるfunction
#
# @within tag/function asset:artifact/give

execute if data storage asset:context {id:1457} run function asset:artifact/1457.ice_brand_arts_axe/give/2.give
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#> asset:artifact/1457.ice_brand_arts_axe/give/2.give
#
# 神器の作成部 ここでID等を定義する
#
# @user
# @within function asset:artifact/1457.ice_brand_arts_axe/give/1.trigger

# 神器の説明や消費MPなどをここで設定する。
# 最後にasset:artifact/common/giveを実行することで入手可能。

# 神器のID (int) スプレッドシートの値を入れる
data modify storage asset:artifact ID set value 1457
# 神器のベースアイテム
data modify storage asset:artifact Item set value "minecraft:stick"
# 神器の名前 (TextComponentString)
data modify storage asset:artifact Name set value '{"text":"アイスブランドアーツ(斧)","color":"#7DFFF2"}'
# 神器の説明文 (TextComponentString[])
data modify storage asset:artifact Lore set value ['{"text":"アイスブランドアーツで生成した氷の斧","color":"white"}','{"text":"敵単体に強烈な一撃をお見舞いする","color":"white"}','{"text":"生成してから時間が経つほど威力が減衰する","color":"white"}']
# 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション)
# data modify storage asset:artifact ConsumeItem.Item set value '{"translate":"item.minecraft.stick"}'
# data modify storage asset:artifact ConsumeItem.Count set value 1
# data modify storage asset:artifact ConsumeItem.Extra set value
# 使用回数 (int) (オプション)
data modify storage asset:artifact RemainingCount set value 1
# 神器を発動できるスロット (string) Wikiを参照
data modify storage asset:artifact Slot set value "mainhand"
# 神器のトリガー (string) Wikiを参照
data modify storage asset:artifact Trigger set value "onAttackByMelee"
# 神器の発動条件 (TextComponentString) (オプション)
data modify storage asset:artifact Condition set value '{"text":"クリティカル攻撃"}'
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
data modify storage asset:artifact AttackInfo.Damage set value [500,2000]
# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション)
data modify storage asset:artifact AttackInfo.AttackType set value [Physical]
# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション)
data modify storage asset:artifact AttackInfo.ElementType set value [Water]
# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション)
# data modify storage asset:artifact AttackInfo.BypassResist set value
# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション)
# data modify storage asset:artifact AttackInfo.IsRangeAttack set value
# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション)
# data modify storage asset:artifact AttackInfo.AttackRange set value
# MP消費量 (int)
data modify storage asset:artifact MPCost set value 60
# MP必要量 (int) (オプション)
#data modify storage asset:artifact MPRequire set value 150
# MP回復量 (int)
# data modify storage asset:artifact MPHealWhenHit set value
# 神器のクールダウン (int) (オプション)
# data modify storage asset:artifact LocalCooldown set value 30
# 種別クールダウン ({Type: string, Duration: int}) (オプション)
data modify storage asset:artifact TypeCooldown.Type set value "shortRange"
data modify storage asset:artifact TypeCooldown.Duration set value 30
# グローバルクールダウン (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 "ALL"
# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション)
# data modify storage asset:artifact CustomNBT set value {}

# 神器の入手用function
function asset:artifact/common/give
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#> asset:artifact/1457.ice_brand_arts_axe/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:1457} run function asset:artifact/1457.ice_brand_arts_axe/trigger/2.check_condition
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#> asset:artifact/1457.ice_brand_arts_axe/trigger/2.check_condition
#
# 神器の発動条件をチェックします
#
# @within function asset:artifact/1457.ice_brand_arts_axe/trigger/1.trigger

# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く
function asset:artifact/common/check_condition/mainhand
# 他にアイテム等確認する場合はここに書く
execute if entity @s[tag=CanUsed] unless data storage asset:context Attack{Crit:true} run tag @s remove CanUsed
# CanUsedタグをチェックして3.main.mcfunctionを実行する
execute if entity @s[tag=CanUsed] run function asset:artifact/1457.ice_brand_arts_axe/trigger/3.main
Loading
Loading