From 4d6e5ad3592d97c2e1bc0261b380350fb224866b Mon Sep 17 00:00:00 2001 From: k22992068-crypto <286215529+k22992068-crypto@users.noreply.github.com> Date: Sun, 18 Oct 2026 23:58:10 +0900 Subject: [PATCH 01/10] =?UTF-8?q?=E2=9C=A8=20[Artifact1674]=20=E3=83=90?= =?UTF-8?q?=E3=82=A6=E3=83=B3=E3=82=B7=E3=83=BC=E3=83=A9=E3=83=B3=E3=83=81?= =?UTF-8?q?=E3=83=A3=E3=83=BC=E3=81=AE=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../give/1.trigger.mcfunction | 7 ++ .../give/2.give.mcfunction | 68 +++++++++++++++++++ .../1674.bouncy_launcher/register.mcfunction | 8 +++ .../trigger/1.trigger.mcfunction | 8 +++ .../trigger/2.check_condition.mcfunction | 12 ++++ .../trigger/3.main.mcfunction | 24 +++++++ .../1204.bouncy_ball/_index.d.mcfunction | 11 +++ .../detect_hit_block/.mcfunction | 9 +++ .../detect_hit_entity/.mcfunction | 8 +++ .../1204.bouncy_ball/hit_block/.mcfunction | 12 ++++ .../1204.bouncy_ball/hit_entity/.mcfunction | 42 ++++++++++++ .../hit_entity/damage.mcfunction | 29 ++++++++ .../hit_entity/random_direction.mcfunction | 19 ++++++ .../hit_entity/reflect.mcfunction | 10 +++ .../hit_entity/reset.mcfunction | 9 +++ .../object/1204.bouncy_ball/kill/.mcfunction | 14 ++++ .../1204.bouncy_ball/recursive/.mcfunction | 8 +++ .../1204.bouncy_ball/register.mcfunction | 28 ++++++++ .../1204.bouncy_ball/summon/.mcfunction | 11 +++ .../1204.bouncy_ball/summon/m.mcfunction | 8 +++ .../alias/1204/detect_hit_block.mcfunction | 8 +++ .../alias/1204/detect_hit_entity.mcfunction | 8 +++ .../object/alias/1204/hit_block.mcfunction | 8 +++ .../object/alias/1204/hit_entity.mcfunction | 8 +++ .../object/alias/1204/kill.mcfunction | 8 +++ .../object/alias/1204/recursive.mcfunction | 8 +++ .../object/alias/1204/register.mcfunction | 8 +++ .../object/alias/1204/summon.mcfunction | 8 +++ .../artifact/click.carrot_on_a_stick.json | 3 +- .../asset/tags/functions/artifact/give.json | 3 +- .../tags/functions/artifact/register.json | 3 +- 31 files changed, 415 insertions(+), 3 deletions(-) create mode 100644 Asset/data/asset/functions/artifact/1674.bouncy_launcher/give/1.trigger.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1674.bouncy_launcher/give/2.give.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1674.bouncy_launcher/register.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/1.trigger.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/2.check_condition.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/3.main.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/_index.d.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_block/.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_entity/.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/hit_block/.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/damage.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/random_direction.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/reflect.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/reset.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/kill/.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/recursive/.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/register.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/summon/.mcfunction create mode 100644 Asset/data/asset/functions/object/1204.bouncy_ball/summon/m.mcfunction create mode 100644 Asset/data/asset/functions/object/alias/1204/detect_hit_block.mcfunction create mode 100644 Asset/data/asset/functions/object/alias/1204/detect_hit_entity.mcfunction create mode 100644 Asset/data/asset/functions/object/alias/1204/hit_block.mcfunction create mode 100644 Asset/data/asset/functions/object/alias/1204/hit_entity.mcfunction create mode 100644 Asset/data/asset/functions/object/alias/1204/kill.mcfunction create mode 100644 Asset/data/asset/functions/object/alias/1204/recursive.mcfunction create mode 100644 Asset/data/asset/functions/object/alias/1204/register.mcfunction create mode 100644 Asset/data/asset/functions/object/alias/1204/summon.mcfunction diff --git a/Asset/data/asset/functions/artifact/1674.bouncy_launcher/give/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/give/1.trigger.mcfunction new file mode 100644 index 0000000000..4f26bf5aed --- /dev/null +++ b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/give/1.trigger.mcfunction @@ -0,0 +1,7 @@ +#> asset:artifact/1674.bouncy_launcher/give/1.trigger +# +# 神器の取得処理の呼び出し時に実行されるfunction +# +# @within tag/function asset:artifact/give + +execute if data storage asset:context {id:1674} run function asset:artifact/1674.bouncy_launcher/give/2.give \ No newline at end of file diff --git a/Asset/data/asset/functions/artifact/1674.bouncy_launcher/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/give/2.give.mcfunction new file mode 100644 index 0000000000..c662210df0 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/give/2.give.mcfunction @@ -0,0 +1,68 @@ +#> asset:artifact/1674.bouncy_launcher/give/2.give +# +# 神器の作成部 ここでID等を定義する +# +# @user +# @within function asset:artifact/1674.bouncy_launcher/give/1.trigger + +# 神器の説明や消費MPなどをここで設定する。 +# 最後にasset:artifact/common/giveを実行することで入手可能。 + +# 神器のID (int) スプレッドシートの値を入れる + data modify storage asset:artifact ID set value 1674 +# 神器のベースアイテム + data modify storage asset:artifact Item set value "minecraft:carrot_on_a_stick" +# 神器の名前 (TextComponentString) + data modify storage asset:artifact Name set value '{"text":"バウンシーランチャー","color":"#FFA7D8"}' +# 神器の説明文 (TextComponentString[]) + data modify storage asset:artifact Lore set value ['{"text":"壁や床、敵で跳ね返る魔法のボールを発射する"}','{"text":"敵にあたった時35回まで近くの敵に向かって跳ね返る"}','{"text":"「スーパーボールって何なの?」","color":"gray"}','{"text":"「魔法のように跳ねるスーパーなボールさ」","color":"gray"}'] +# 消費アイテム ({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 [5] +# 攻撃に関する情報 -攻撃タイプ (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 30 +# 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 1 +# 神器のクールダウン (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 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 "ALL" +# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション) + # data modify storage asset:artifact CustomNBT set value {} + +# 神器の入手用function + function asset:artifact/common/give diff --git a/Asset/data/asset/functions/artifact/1674.bouncy_launcher/register.mcfunction b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/register.mcfunction new file mode 100644 index 0000000000..7acff53410 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/register.mcfunction @@ -0,0 +1,8 @@ +#> asset:artifact/1674.bouncy_launcher/register +# +# 神器プールへの登録処理 +# +# @within tag/function asset:artifact/register + +data modify storage asset:artifact RarityRegistry[2] append value [1674] +data modify storage asset:artifact arityRegistryWithColor.Red[2] append value [1674] diff --git a/Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/1.trigger.mcfunction new file mode 100644 index 0000000000..47b5e468b9 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/1.trigger.mcfunction @@ -0,0 +1,8 @@ +#> asset:artifact/1674.bouncy_launcher/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:1674} run function asset:artifact/1674.bouncy_launcher/trigger/2.check_condition \ No newline at end of file diff --git a/Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/2.check_condition.mcfunction new file mode 100644 index 0000000000..62ff102acd --- /dev/null +++ b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/2.check_condition.mcfunction @@ -0,0 +1,12 @@ +#> asset:artifact/1674.bouncy_launcher/trigger/2.check_condition +# +# 神器の発動条件をチェックします +# +# @within function asset:artifact/1674.bouncy_launcher/trigger/1.trigger + +# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く + function asset:artifact/common/check_condition/mainhand +# 他にアイテム等確認する場合はここに書く + +# CanUsedタグをチェックして3.main.mcfunctionを実行する + execute if entity @s[tag=CanUsed] run function asset:artifact/1674.bouncy_launcher/trigger/3.main \ No newline at end of file diff --git a/Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/3.main.mcfunction new file mode 100644 index 0000000000..a2537d1f7b --- /dev/null +++ b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/3.main.mcfunction @@ -0,0 +1,24 @@ +#> asset:artifact/1674.bouncy_launcher/trigger/3.main +# +# 神器のメイン処理部 +# +# @within function asset:artifact/1674.bouncy_launcher/trigger/2.check_condition + +# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う + function asset:artifact/common/use/mainhand + +# ここから先は神器側の効果の処理を書く + +# 召喚 + data modify storage api: Argument.ID set value 1204 + execute store result storage api: Argument.FieldOverride.UserID int 1 run scoreboard players get @s UserID + data modify storage api: Argument.FieldOverride.Damage set value 5 + data modify storage api: Argument.FieldOverride.AdditionalMPHeal set from storage api: PersistentArgument.AdditionalMPHeal + #反射回数上限 + data modify storage api: Argument.FieldOverride.ReflectionLimit set value 35 + #射程(Range*0.2m) + data modify storage api: Argument.FieldOverride.Range set value 150 + execute anchored eyes positioned ^ ^ ^ run function api:object/summon + +#vfx + execute anchored eyes positioned ^ ^ ^0.5 run playsound tsb_sounds:launcher_shot player @s ~ ~ ~ 1 0.8 diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/_index.d.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/_index.d.mcfunction new file mode 100644 index 0000000000..51ae98d268 --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/_index.d.mcfunction @@ -0,0 +1,11 @@ +#> asset:object/1204.bouncy_ball/_index.d +# @private + +#> score_holder +# @within function asset:object/1204.bouncy_ball/** + #declare score_holder $HitEnemyID + +#> tag +# @within function asset:object/1204.bouncy_ball/** + #declare tag 1AI.Owner + #declare tag 1AI.HitEnemy diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_block/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_block/.mcfunction new file mode 100644 index 0000000000..1251acd4f0 --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_block/.mcfunction @@ -0,0 +1,9 @@ +#> asset:object/1204.bouncy_ball/detect_hit_block/ +# +# 継承先などから実行される処理 +# +# @within asset:object/alias/1204/detect_hit_block + +# 判定 + execute unless block ^ ^ ^0.2 #lib:no_collision/ run data modify storage asset:context IsHitBlock set value true + execute unless block ^ ^ ^0.4 #lib:no_collision/ run data modify storage asset:context IsHitBlock set value true diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_entity/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_entity/.mcfunction new file mode 100644 index 0000000000..a847be998f --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_entity/.mcfunction @@ -0,0 +1,8 @@ +#> asset:object/1204.bouncy_ball/detect_hit_entity/ +# +# 継承先などから実行される処理 +# +# @within asset:object/alias/1204/detect_hit_entity + + +execute positioned ~-0.5 ~-0.5 ~-0.5 if entity @e[type=#lib:living_without_player,tag=Enemy,tag=!Uninterferable,dx=0] run data modify storage asset:context IsHitEntity set value true diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_block/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_block/.mcfunction new file mode 100644 index 0000000000..e9ae173a46 --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_block/.mcfunction @@ -0,0 +1,12 @@ +#> asset:object/1204.bouncy_ball/hit_block/ +# +# 継承先などから実行される処理 +# +# @within asset:object/alias/1204/hit_block + +# 反射距離を何ブロック先が埋まってるかで調整する + execute unless block ^ ^ ^0.4 #lib:no_collision/ run scoreboard players set $Speed Lib 4 + execute unless block ^ ^ ^0.2 #lib:no_collision/ run scoreboard players set $Speed Lib 2 + function lib:reflection_bullet/ +#vfx + playsound minecraft:block.slime_block.fall player @a ~ ~ ~ 1.0 1 0.0 diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction new file mode 100644 index 0000000000..790dc1d432 --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction @@ -0,0 +1,42 @@ +#> asset:object/1204.bouncy_ball/hit_entity/ +# +# 継承先などから実行される処理 +# +# @within asset:object/alias/1204/hit_entity + +#> private +# @private + #declare score_holder $OwnerID + +#Hitした敵にTagを付与 + execute positioned ~-0.5 ~-0.5 ~-0.5 as @e[type=#lib:living_without_player,tag=!Uninterferable,dx=0,sort=nearest,limit=1] run tag @s add 1AI.HitEnemy + +#直前にヒットしている敵ならリセットしてreturn + execute store result score $HitEnemyID Temporary run data get storage asset:context this.HitEnemyID + execute if score @e[tag=1AI.HitEnemy,distance=..5,sort=nearest,limit=1] MobUUID = $HitEnemyID Temporary run return run function asset:object/1204.bouncy_ball/hit_entity/reset + +#vfx + playsound minecraft:block.slime_block.fall player @a ~ ~ ~ 1.0 1 0.0 + particle block pink_wool ~ ~ ~ 0 0 0 1 20 + +# オーナーの特定 + execute store result score $OwnerID Temporary run data get storage asset:context this.UserID + execute as @a if score @s UserID = $OwnerID Temporary run tag @s add 1AI.Owner + +#ダメージ処理 + execute as @e[tag=1AI.HitEnemy,distance=..5,sort=nearest,limit=1] run function asset:object/1204.bouncy_ball/hit_entity/damage + +# リセット + scoreboard players reset $OwnerID Temporary + scoreboard players reset $HitEnemyID Temporary + tag @a remove 1AI.Owner + + +#12m以内に敵がいるなら、向きを変える。そうでない時はランダムな向きに向く + execute if entity @e[type=#lib:living_without_player,tag=!1AI.HitEnemy,tag=!Uninterferable,distance=..12] run function asset:object/1204.bouncy_ball/hit_entity/reflect + execute unless entity @e[type=#lib:living_without_player,tag=!1AI.HitEnemy,tag=!Uninterferable,distance=..12] run function asset:object/1204.bouncy_ball/hit_entity/random_direction +#反射回数が0になったら玉を消す + execute if data storage asset:context this{ReflectionLimit:0} run function asset:object/call.m {method:kill} + +#ヒットタグもリセット + tag @e[type=#lib:living_without_player,distance=..5] remove 1AI.HitEnemy diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/damage.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/damage.mcfunction new file mode 100644 index 0000000000..610a85846e --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/damage.mcfunction @@ -0,0 +1,29 @@ +#> asset:object/1204.bouncy_ball/hit_entity/damage +# +# +# +# @within function asset:object/1204.bouncy_ball/hit_entity/ + +#> private +# @private + #declare score_holder $Temporary + +#ヒットした敵のIDを取得 + execute store result storage asset:context this.HitEnemyID int 1 run scoreboard players get @s MobUUID + +# ダメージ + data modify storage api: Argument.Damage set from storage asset:context this.Damage + data modify storage api: Argument.AttackType set value "Magic" + data modify storage api: Argument.ElementType set value "None" + execute if data storage asset:context this.AdditionalMPHeal run data modify storage api: Argument.AdditionalMPHeal set from storage asset:context this.AdditionalMPHeal + execute if entity @a[tag=1AI.Owner] as @a[tag=1AI.Owner] run function api:damage/modifier + function api:damage/ + function api:damage/reset + +# 射程を5だけ延長 + execute store result score $Temporary Temporary run data get storage asset:context this.RemainingRange 1 + scoreboard players operation $Temporary Temporary += $5 Const + execute store result storage asset:context this.RemainingRange int 1 run scoreboard players get $Temporary Temporary + +# リセット + scoreboard players reset $Temporary Temporary diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/random_direction.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/random_direction.mcfunction new file mode 100644 index 0000000000..f61a9c36e1 --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/random_direction.mcfunction @@ -0,0 +1,19 @@ +#> asset:object/1204.bouncy_ball/hit_entity/random_direction +# +# +# +# @within function asset:object/1204.bouncy_ball/hit_entity/ + +#> SpreadLib + # @private + #declare tag SpreadMarker + + # 拡散させるEntityを召喚する + summon marker ~ ~ ~ {Tags:["SpreadMarker"]} + # 拡散 + data modify storage lib: Argument.Bounds set value [[1d,1d],[0.4d,0.4d],[1d,1d]] + execute as @e[type=marker,tag=SpreadMarker,limit=1] at @s run function lib:spread_entity/ + # 拡散させたEntityの位置に向く + tp @s ^ ^ ^ facing entity @e[type=marker,tag=SpreadMarker,limit=1] feet + # リセット + kill @e[type=marker,tag=SpreadMarker] diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/reflect.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/reflect.mcfunction new file mode 100644 index 0000000000..5cb76ad403 --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/reflect.mcfunction @@ -0,0 +1,10 @@ +#> asset:object/1204.bouncy_ball/hit_entity/reflect +# +# +# +# @within function asset:object/1204.bouncy_ball/hit_entity/ + +#反射回数を1減らす + execute store result storage asset:context this.ReflectionLimit int 0.9999999999 run data get storage asset:context this.ReflectionLimit 1 +#向きを変える + tp @s ^ ^ ^ facing entity @e[type=#lib:living_without_player,tag=!1AI.HitEnemy,tag=!Uninterferable,distance=..12,sort=random,limit=1] eyes diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/reset.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/reset.mcfunction new file mode 100644 index 0000000000..e4bddd85b6 --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/reset.mcfunction @@ -0,0 +1,9 @@ +#> asset:object/1204.bouncy_ball/hit_entity/reset +# +# +# +# @within function asset:object/1204.bouncy_ball/hit_entity/ + +# リセット + scoreboard players reset $HitEnemyID Temporary + tag @e[type=#lib:living_without_player,distance=..5] remove 1AI.HitEnemy diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/kill/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/kill/.mcfunction new file mode 100644 index 0000000000..512965aa3f --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/kill/.mcfunction @@ -0,0 +1,14 @@ +#> asset:object/1204.bouncy_ball/kill/ +# +# 継承先などから実行される処理 +# +# @within asset:object/alias/1204/kill + +#リセット処理 + tag @e[type=#lib:living_without_player,distance=..5] remove 1AI.HitEnemy + +# 演出 + playsound tsb_sounds:rifle_shot player @a ~ ~ ~ 1 1.8 + +# 消滅 + kill @s diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/recursive/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/recursive/.mcfunction new file mode 100644 index 0000000000..15d3521384 --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/recursive/.mcfunction @@ -0,0 +1,8 @@ +#> asset:object/1204.bouncy_ball/recursive/ +# +# 継承先などから実行される処理 +# +# @within asset:object/alias/1204/recursive + +# 演出 + particle dust 0.804 0.31 1 1 diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/register.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/register.mcfunction new file mode 100644 index 0000000000..5d0c906d82 --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/register.mcfunction @@ -0,0 +1,28 @@ +#> asset:object/1204.bouncy_ball/register +# +# Objectのデータを指定 +# +# @within function asset:object/alias/1204/register + +# 継承(オプション) + data modify storage asset:object Extends append value 1 + 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 1204 +# フィールド(オプション) + # data modify storage asset:object Field.myValue set value + data modify storage asset:object Field.Speed set value 2 + data modify storage asset:object Field.Range set value 120 + data modify storage asset:object Field.MovePerStep set value 0.2 + data modify storage asset:object Field.Damage set value 1 + data modify storage asset:object Field.AdditionalMPHeal set value 1 + data modify storage asset:object Field.UserID set value -1 + data modify storage asset:object Field.ReflectionLimit set value 1 + data modify storage asset:object Field.HitEnemyID set value -1 diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/summon/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/summon/.mcfunction new file mode 100644 index 0000000000..7f64f252f8 --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/summon/.mcfunction @@ -0,0 +1,11 @@ +#> asset:object/1204.bouncy_ball/summon/ +# +# Object召喚処理の呼び出し時に実行されるfunction +# +# @within asset:object/alias/1204/summon + +# 召喚 + execute as 0-0-0-0-0 in minecraft:overworld positioned as @s run tp @s ~ ~ ~ ~ ~ + data modify storage asset:temp Args.Rotation set from entity 0-0-0-0-0 Rotation + function asset:object/1204.bouncy_ball/summon/m with storage asset:temp Args + data remove storage asset:temp Args diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/summon/m.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/summon/m.mcfunction new file mode 100644 index 0000000000..15f21bf676 --- /dev/null +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/summon/m.mcfunction @@ -0,0 +1,8 @@ +#> asset:object/1204.bouncy_ball/summon/m +# +# +# +# @within function asset:object/1204.bouncy_ball/summon/ + +# 元となるEntityを召喚する + $summon item_display ~ ~ ~ {Rotation:$(Rotation),Tags:["ObjectInit"],teleport_duration:1,billboard:"center",item:{id:"minecraft:potion",Count:1b,tag:{CustomModelData:20234,CustomPotionColor:16754647}}} diff --git a/Asset/data/asset/functions/object/alias/1204/detect_hit_block.mcfunction b/Asset/data/asset/functions/object/alias/1204/detect_hit_block.mcfunction new file mode 100644 index 0000000000..7ba79c4dff --- /dev/null +++ b/Asset/data/asset/functions/object/alias/1204/detect_hit_block.mcfunction @@ -0,0 +1,8 @@ +#> asset:object/alias/1204/detect_hit_block +# +# メソッド処理のエイリアス +# +# @within asset_manager:object/call_method/run_method.m + +# 元のメソッド処理を呼び出す + function asset:object/1204.bouncy_ball/detect_hit_block/ diff --git a/Asset/data/asset/functions/object/alias/1204/detect_hit_entity.mcfunction b/Asset/data/asset/functions/object/alias/1204/detect_hit_entity.mcfunction new file mode 100644 index 0000000000..73235f7264 --- /dev/null +++ b/Asset/data/asset/functions/object/alias/1204/detect_hit_entity.mcfunction @@ -0,0 +1,8 @@ +#> asset:object/alias/1204/detect_hit_entity +# +# メソッド処理のエイリアス +# +# @within asset_manager:object/call_method/run_method.m + +# 元のメソッド処理を呼び出す + function asset:object/1204.bouncy_ball/detect_hit_entity/ diff --git a/Asset/data/asset/functions/object/alias/1204/hit_block.mcfunction b/Asset/data/asset/functions/object/alias/1204/hit_block.mcfunction new file mode 100644 index 0000000000..34da62ad0e --- /dev/null +++ b/Asset/data/asset/functions/object/alias/1204/hit_block.mcfunction @@ -0,0 +1,8 @@ +#> asset:object/alias/1204/hit_block +# +# メソッド処理のエイリアス +# +# @within asset_manager:object/call_method/run_method.m + +# 元のメソッド処理を呼び出す + function asset:object/1204.bouncy_ball/hit_block/ diff --git a/Asset/data/asset/functions/object/alias/1204/hit_entity.mcfunction b/Asset/data/asset/functions/object/alias/1204/hit_entity.mcfunction new file mode 100644 index 0000000000..5569997efd --- /dev/null +++ b/Asset/data/asset/functions/object/alias/1204/hit_entity.mcfunction @@ -0,0 +1,8 @@ +#> asset:object/alias/1204/hit_entity +# +# メソッド処理のエイリアス +# +# @within asset_manager:object/call_method/run_method.m + +# 元のメソッド処理を呼び出す + function asset:object/1204.bouncy_ball/hit_entity/ diff --git a/Asset/data/asset/functions/object/alias/1204/kill.mcfunction b/Asset/data/asset/functions/object/alias/1204/kill.mcfunction new file mode 100644 index 0000000000..7f23603fb5 --- /dev/null +++ b/Asset/data/asset/functions/object/alias/1204/kill.mcfunction @@ -0,0 +1,8 @@ +#> asset:object/alias/1204/kill +# +# メソッド処理のエイリアス +# +# @within asset_manager:object/call_method/run_method.m + +# 元のメソッド処理を呼び出す + function asset:object/1204.bouncy_ball/kill/ diff --git a/Asset/data/asset/functions/object/alias/1204/recursive.mcfunction b/Asset/data/asset/functions/object/alias/1204/recursive.mcfunction new file mode 100644 index 0000000000..3f5550f018 --- /dev/null +++ b/Asset/data/asset/functions/object/alias/1204/recursive.mcfunction @@ -0,0 +1,8 @@ +#> asset:object/alias/1204/recursive +# +# メソッド処理のエイリアス +# +# @within asset_manager:object/call_method/run_method.m + +# 元のメソッド処理を呼び出す + function asset:object/1204.bouncy_ball/recursive/ diff --git a/Asset/data/asset/functions/object/alias/1204/register.mcfunction b/Asset/data/asset/functions/object/alias/1204/register.mcfunction new file mode 100644 index 0000000000..e9e4409c23 --- /dev/null +++ b/Asset/data/asset/functions/object/alias/1204/register.mcfunction @@ -0,0 +1,8 @@ +#> asset:object/alias/1204/register +# +# Objectのデータ指定処理のエイリアス +# +# @within asset_manager:object/summon/register.m + +# 元の登録処理を呼び出す + function asset:object/1204.bouncy_ball/register \ No newline at end of file diff --git a/Asset/data/asset/functions/object/alias/1204/summon.mcfunction b/Asset/data/asset/functions/object/alias/1204/summon.mcfunction new file mode 100644 index 0000000000..3bef308f7c --- /dev/null +++ b/Asset/data/asset/functions/object/alias/1204/summon.mcfunction @@ -0,0 +1,8 @@ +#> asset:object/alias/1204/summon +# +# Object召喚処理のエイリアス +# +# @within asset_manager:object/summon/summon.m + +# 元の召喚処理を呼び出す + function asset:object/1204.bouncy_ball/summon/ \ No newline at end of file diff --git a/Asset/data/asset/tags/functions/artifact/click.carrot_on_a_stick.json b/Asset/data/asset/tags/functions/artifact/click.carrot_on_a_stick.json index b52518691d..5985e377e7 100644 --- a/Asset/data/asset/tags/functions/artifact/click.carrot_on_a_stick.json +++ b/Asset/data/asset/tags/functions/artifact/click.carrot_on_a_stick.json @@ -1,5 +1,6 @@ { "values": [ + "asset:artifact/1674.bouncy_launcher/trigger/1.trigger", "asset:artifact/1661.starlight_circle/trigger/1.trigger", "asset:artifact/1662.salmon_canon/trigger/1.trigger", "asset:artifact/1632.photon_burst/trigger/1.trigger", @@ -181,4 +182,4 @@ "asset:artifact/2001.staff_of_the_willless/trigger/1.trigger", "asset:artifact/0019.scripture/trigger/1.trigger" ] -} +} \ No newline at end of file diff --git a/Asset/data/asset/tags/functions/artifact/give.json b/Asset/data/asset/tags/functions/artifact/give.json index a362a1954c..e0360eab27 100644 --- a/Asset/data/asset/tags/functions/artifact/give.json +++ b/Asset/data/asset/tags/functions/artifact/give.json @@ -1,5 +1,6 @@ { "values": [ + "asset:artifact/1674.bouncy_launcher/give/1.trigger", "asset:artifact/1661.starlight_circle/give/1.trigger", "asset:artifact/1390.red_refraction_prism/give/1.trigger", "asset:artifact/1662.salmon_canon/give/1.trigger", @@ -568,4 +569,4 @@ "asset:artifact/0735.collision_plate/give/1.trigger", "asset:artifact/0745.blade_of_whirlwind/give/1.trigger" ] -} +} \ No newline at end of file diff --git a/Asset/data/asset/tags/functions/artifact/register.json b/Asset/data/asset/tags/functions/artifact/register.json index 26a2324e12..3e69994f55 100644 --- a/Asset/data/asset/tags/functions/artifact/register.json +++ b/Asset/data/asset/tags/functions/artifact/register.json @@ -1,5 +1,6 @@ { "values": [ + "asset:artifact/1674.bouncy_launcher/register", "asset:artifact/1661.starlight_circle/register", "asset:artifact/1662.salmon_canon/register", "asset:artifact/1626.years_magic_index/register", @@ -337,4 +338,4 @@ "asset:artifact/1027.fire_of_rebirth/register", "asset:artifact/1111.rod_o_redeem/register" ] -} +} \ No newline at end of file From e1be0c6f61996c2b26bc4a25785eb550e8f24f33 Mon Sep 17 00:00:00 2001 From: k22992068-crypto <286215529+k22992068-crypto@users.noreply.github.com> Date: Wed, 21 Oct 2026 17:41:58 +0900 Subject: [PATCH 02/10] =?UTF-8?q?=E3=82=B9=E3=83=94=E3=83=BC=E3=83=89?= =?UTF-8?q?=E3=81=AE=E4=B8=8A=E6=98=87=E3=81=A8d=E3=81=AE=E4=BB=98?= =?UTF-8?q?=E3=81=91=E5=BF=98=E3=82=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../artifact/1674.bouncy_launcher/trigger/3.main.mcfunction | 6 +++--- .../object/1204.bouncy_ball/detect_hit_block/.mcfunction | 2 +- .../functions/object/1204.bouncy_ball/hit_block/.mcfunction | 2 +- .../functions/object/1204.bouncy_ball/register.mcfunction | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/3.main.mcfunction index a2537d1f7b..1be72bf9bd 100644 --- a/Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/3.main.mcfunction +++ b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/trigger/3.main.mcfunction @@ -12,12 +12,12 @@ # 召喚 data modify storage api: Argument.ID set value 1204 execute store result storage api: Argument.FieldOverride.UserID int 1 run scoreboard players get @s UserID - data modify storage api: Argument.FieldOverride.Damage set value 5 + data modify storage api: Argument.FieldOverride.Damage set value 5d data modify storage api: Argument.FieldOverride.AdditionalMPHeal set from storage api: PersistentArgument.AdditionalMPHeal #反射回数上限 data modify storage api: Argument.FieldOverride.ReflectionLimit set value 35 - #射程(Range*0.2m) - data modify storage api: Argument.FieldOverride.Range set value 150 + #射程(Range*0.4m) + data modify storage api: Argument.FieldOverride.Range set value 75 execute anchored eyes positioned ^ ^ ^ run function api:object/summon #vfx diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_block/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_block/.mcfunction index 1251acd4f0..b1bc3fa5ce 100644 --- a/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_block/.mcfunction +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_block/.mcfunction @@ -5,5 +5,5 @@ # @within asset:object/alias/1204/detect_hit_block # 判定 - execute unless block ^ ^ ^0.2 #lib:no_collision/ run data modify storage asset:context IsHitBlock set value true execute unless block ^ ^ ^0.4 #lib:no_collision/ run data modify storage asset:context IsHitBlock set value true + execute unless block ^ ^ ^0.8 #lib:no_collision/ run data modify storage asset:context IsHitBlock set value true diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_block/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_block/.mcfunction index e9ae173a46..d7ed092238 100644 --- a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_block/.mcfunction +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_block/.mcfunction @@ -5,8 +5,8 @@ # @within asset:object/alias/1204/hit_block # 反射距離を何ブロック先が埋まってるかで調整する + execute unless block ^ ^ ^0.8 #lib:no_collision/ run scoreboard players set $Speed Lib 8 execute unless block ^ ^ ^0.4 #lib:no_collision/ run scoreboard players set $Speed Lib 4 - execute unless block ^ ^ ^0.2 #lib:no_collision/ run scoreboard players set $Speed Lib 2 function lib:reflection_bullet/ #vfx playsound minecraft:block.slime_block.fall player @a ~ ~ ~ 1.0 1 0.0 diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/register.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/register.mcfunction index 5d0c906d82..130e7edd73 100644 --- a/Asset/data/asset/functions/object/1204.bouncy_ball/register.mcfunction +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/register.mcfunction @@ -19,8 +19,8 @@ # フィールド(オプション) # data modify storage asset:object Field.myValue set value data modify storage asset:object Field.Speed set value 2 - data modify storage asset:object Field.Range set value 120 - data modify storage asset:object Field.MovePerStep set value 0.2 + data modify storage asset:object Field.Range set value 60 + data modify storage asset:object Field.MovePerStep set value 0.4 data modify storage asset:object Field.Damage set value 1 data modify storage asset:object Field.AdditionalMPHeal set value 1 data modify storage asset:object Field.UserID set value -1 From 1710fd22fa39d2b38863cd6aa1122c31b840a1b6 Mon Sep 17 00:00:00 2001 From: k22992068-crypto <286215529+k22992068-crypto@users.noreply.github.com> Date: Wed, 21 Oct 2026 17:42:16 +0900 Subject: [PATCH 03/10] =?UTF-8?q?=E4=BD=99=E8=A8=88=E3=81=AA=E7=A9=BA?= =?UTF-8?q?=E7=99=BD=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../object/1204.bouncy_ball/detect_hit_entity/.mcfunction | 1 - 1 file changed, 1 deletion(-) diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_entity/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_entity/.mcfunction index a847be998f..ddafc39f9a 100644 --- a/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_entity/.mcfunction +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/detect_hit_entity/.mcfunction @@ -4,5 +4,4 @@ # # @within asset:object/alias/1204/detect_hit_entity - execute positioned ~-0.5 ~-0.5 ~-0.5 if entity @e[type=#lib:living_without_player,tag=Enemy,tag=!Uninterferable,dx=0] run data modify storage asset:context IsHitEntity set value true From fdd4331a6aaf7c459153e79a685530166e384e7f Mon Sep 17 00:00:00 2001 From: k22992068-crypto <286215529+k22992068-crypto@users.noreply.github.com> Date: Wed, 21 Oct 2026 17:43:21 +0900 Subject: [PATCH 04/10] =?UTF-8?q?=E3=82=BF=E3=82=B0=E3=83=AA=E3=82=BB?= =?UTF-8?q?=E3=83=83=E3=83=88=E6=99=82=E3=81=AE=E5=AF=BE=E8=B1=A1=E3=82=92?= =?UTF-8?q?=E7=8B=AD=E3=82=81=E3=80=81=E3=83=A1=E3=82=BE=E3=83=83=E3=83=88?= =?UTF-8?q?=E5=91=BC=E3=81=B3=E5=87=BA=E3=81=97=E3=82=92=E3=81=8A=E8=A1=8C?= =?UTF-8?q?=E5=84=80=E3=82=88=E3=81=8F=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../functions/object/1204.bouncy_ball/hit_entity/.mcfunction | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction index 790dc1d432..296d41e28b 100644 --- a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction @@ -36,7 +36,7 @@ execute if entity @e[type=#lib:living_without_player,tag=!1AI.HitEnemy,tag=!Uninterferable,distance=..12] run function asset:object/1204.bouncy_ball/hit_entity/reflect execute unless entity @e[type=#lib:living_without_player,tag=!1AI.HitEnemy,tag=!Uninterferable,distance=..12] run function asset:object/1204.bouncy_ball/hit_entity/random_direction #反射回数が0になったら玉を消す - execute if data storage asset:context this{ReflectionLimit:0} run function asset:object/call.m {method:kill} + execute if data storage asset:context this{ReflectionLimit:0} run function asset:object/call.m {method:"kill"} #ヒットタグもリセット - tag @e[type=#lib:living_without_player,distance=..5] remove 1AI.HitEnemy + tag @e[type=#lib:living_without_player,tag=1AI.HitEnemy,distance=..5] remove 1AI.HitEnemy From f96835aa21864a3907829d2046b351f0fdb3da8c Mon Sep 17 00:00:00 2001 From: k22992068-crypto <286215529+k22992068-crypto@users.noreply.github.com> Date: Wed, 21 Oct 2026 17:43:43 +0900 Subject: [PATCH 05/10] =?UTF-8?q?=E3=82=B9=E3=82=B3=E3=82=A2=E3=83=9B?= =?UTF-8?q?=E3=83=AB=E3=83=80=E3=83=BC=E3=81=AE=E5=90=8D=E5=89=8D=E3=82=92?= =?UTF-8?q?=E3=82=88=E3=82=8A=E8=89=AF=E3=81=84=E3=82=82=E3=81=AE=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1204.bouncy_ball/hit_entity/damage.mcfunction | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/damage.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/damage.mcfunction index 610a85846e..af3136b8e2 100644 --- a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/damage.mcfunction +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/damage.mcfunction @@ -6,7 +6,7 @@ #> private # @private - #declare score_holder $Temporary + #declare score_holder $Range #ヒットした敵のIDを取得 execute store result storage asset:context this.HitEnemyID int 1 run scoreboard players get @s MobUUID @@ -21,9 +21,9 @@ function api:damage/reset # 射程を5だけ延長 - execute store result score $Temporary Temporary run data get storage asset:context this.RemainingRange 1 - scoreboard players operation $Temporary Temporary += $5 Const - execute store result storage asset:context this.RemainingRange int 1 run scoreboard players get $Temporary Temporary + execute store result score $Range Temporary run data get storage asset:context this.RemainingRange 1 + scoreboard players operation $Range Temporary += $5 Const + execute store result storage asset:context this.RemainingRange int 1 run scoreboard players get $Range Temporary # リセット - scoreboard players reset $Temporary Temporary + scoreboard players reset $Range Temporary From d68f4c5adc50e3009bd1d78d8b19d7992c3f14fc Mon Sep 17 00:00:00 2001 From: k22992068-crypto <286215529+k22992068-crypto@users.noreply.github.com> Date: Wed, 21 Oct 2026 17:44:38 +0900 Subject: [PATCH 06/10] =?UTF-8?q?=E5=8F=8D=E5=B0=84=E5=87=A6=E7=90=86?= =?UTF-8?q?=E3=81=AE=E3=83=9E=E3=83=BC=E3=82=AB=E3=83=BC=E3=81=AE=E3=82=BB?= =?UTF-8?q?=E3=83=AC=E3=82=AF=E3=82=BF=E6=8C=87=E5=AE=9A=E3=81=AB=E8=B7=9D?= =?UTF-8?q?=E9=9B=A2=E5=88=B6=E9=99=90=E3=82=92=E3=81=A4=E3=81=84=E3=81=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1204.bouncy_ball/hit_entity/random_direction.mcfunction | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/random_direction.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/random_direction.mcfunction index f61a9c36e1..e6cc015a85 100644 --- a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/random_direction.mcfunction +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/random_direction.mcfunction @@ -12,8 +12,8 @@ summon marker ~ ~ ~ {Tags:["SpreadMarker"]} # 拡散 data modify storage lib: Argument.Bounds set value [[1d,1d],[0.4d,0.4d],[1d,1d]] - execute as @e[type=marker,tag=SpreadMarker,limit=1] at @s run function lib:spread_entity/ + execute as @e[type=marker,tag=SpreadMarker,distance=..3,limit=1] at @s run function lib:spread_entity/ # 拡散させたEntityの位置に向く - tp @s ^ ^ ^ facing entity @e[type=marker,tag=SpreadMarker,limit=1] feet + tp @s ^ ^ ^ facing entity @e[type=marker,tag=SpreadMarker,distance=..3,limit=1] feet # リセット - kill @e[type=marker,tag=SpreadMarker] + kill @e[type=marker,tag=SpreadMarker,distance=..3] From 79bcc5686a64b3d5f4ea894eec1a7281cfc1f12a Mon Sep 17 00:00:00 2001 From: k22992068-crypto <286215529+k22992068-crypto@users.noreply.github.com> Date: Wed, 21 Oct 2026 17:44:48 +0900 Subject: [PATCH 07/10] =?UTF-8?q?=E4=B8=8D=E8=A6=81=E3=81=AA=E5=87=A6?= =?UTF-8?q?=E7=90=86=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../asset/functions/object/1204.bouncy_ball/kill/.mcfunction | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/kill/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/kill/.mcfunction index 512965aa3f..9e6b50e70b 100644 --- a/Asset/data/asset/functions/object/1204.bouncy_ball/kill/.mcfunction +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/kill/.mcfunction @@ -4,11 +4,8 @@ # # @within asset:object/alias/1204/kill -#リセット処理 - tag @e[type=#lib:living_without_player,distance=..5] remove 1AI.HitEnemy - # 演出 - playsound tsb_sounds:rifle_shot player @a ~ ~ ~ 1 1.8 + playsound tsb_sounds:rifle_shot neutral @a ~ ~ ~ 1 1.8 # 消滅 kill @s From 39bde946e2185f2398bb37d791084c33e0fcea98 Mon Sep 17 00:00:00 2001 From: k22992068-crypto <286215529+k22992068-crypto@users.noreply.github.com> Date: Sat, 24 Oct 2026 16:11:17 +0900 Subject: [PATCH 08/10] =?UTF-8?q?ExtendedCollision=E3=81=AE=E6=95=B5?= =?UTF-8?q?=E3=81=AB=E8=A4=87=E6=95=B0=E5=BD=93=E3=81=9F=E3=82=89=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3=EF=BC=8B?= =?UTF-8?q?=E5=8F=8D=E5=B0=84=E5=9B=9E=E6=95=B0=E3=81=8C=E8=AA=AC=E6=98=8E?= =?UTF-8?q?=E9=80=9A=E3=82=8A=E3=81=AB=E3=81=AA=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../object/1204.bouncy_ball/hit_entity/.mcfunction | 10 +++++----- .../1204.bouncy_ball/hit_entity/damage.mcfunction | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction index 296d41e28b..a2ab631cf4 100644 --- a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction @@ -13,8 +13,8 @@ #直前にヒットしている敵ならリセットしてreturn execute store result score $HitEnemyID Temporary run data get storage asset:context this.HitEnemyID - execute if score @e[tag=1AI.HitEnemy,distance=..5,sort=nearest,limit=1] MobUUID = $HitEnemyID Temporary run return run function asset:object/1204.bouncy_ball/hit_entity/reset - + execute if score @e[tag=1AI.HitEnemy,tag=!ExtendedCollision,distance=..5,sort=nearest,limit=1] MobUUID = $HitEnemyID Temporary run return run function asset:object/1204.bouncy_ball/hit_entity/reset + execute if score @e[tag=1AI.HitEnemy,tag=ExtendedCollision,distance=..5,sort=nearest,limit=1] ForwardTargetMobUUID = $HitEnemyID Temporary run return run function asset:object/1204.bouncy_ball/hit_entity/reset #vfx playsound minecraft:block.slime_block.fall player @a ~ ~ ~ 1.0 1 0.0 particle block pink_wool ~ ~ ~ 0 0 0 1 20 @@ -30,13 +30,13 @@ scoreboard players reset $OwnerID Temporary scoreboard players reset $HitEnemyID Temporary tag @a remove 1AI.Owner - + +#反射回数が0になったら玉を消す + execute if data storage asset:context this{ReflectionLimit:0} run function asset:object/call.m {method:"kill"} #12m以内に敵がいるなら、向きを変える。そうでない時はランダムな向きに向く execute if entity @e[type=#lib:living_without_player,tag=!1AI.HitEnemy,tag=!Uninterferable,distance=..12] run function asset:object/1204.bouncy_ball/hit_entity/reflect execute unless entity @e[type=#lib:living_without_player,tag=!1AI.HitEnemy,tag=!Uninterferable,distance=..12] run function asset:object/1204.bouncy_ball/hit_entity/random_direction -#反射回数が0になったら玉を消す - execute if data storage asset:context this{ReflectionLimit:0} run function asset:object/call.m {method:"kill"} #ヒットタグもリセット tag @e[type=#lib:living_without_player,tag=1AI.HitEnemy,distance=..5] remove 1AI.HitEnemy diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/damage.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/damage.mcfunction index af3136b8e2..d070410f9c 100644 --- a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/damage.mcfunction +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/damage.mcfunction @@ -9,7 +9,8 @@ #declare score_holder $Range #ヒットした敵のIDを取得 - execute store result storage asset:context this.HitEnemyID int 1 run scoreboard players get @s MobUUID + execute if entity @s[tag=!ExtendedCollision] store result storage asset:context this.HitEnemyID int 1 run scoreboard players get @s MobUUID + execute if entity @s[tag=ExtendedCollision] store result storage asset:context this.HitEnemyID int 1 run scoreboard players get @s ForwardTargetMobUUID # ダメージ data modify storage api: Argument.Damage set from storage asset:context this.Damage From de8d78e7c19584503c517f75e4e2ea5013143c4c Mon Sep 17 00:00:00 2001 From: k22992068-crypto <286215529+k22992068-crypto@users.noreply.github.com> Date: Mon, 26 Oct 2026 23:45:41 +0900 Subject: [PATCH 09/10] =?UTF-8?q?=E3=82=AB=E3=83=A9=E3=83=BC=E3=82=B7?= =?UTF-8?q?=E3=83=A3=E3=83=BC=E3=83=89=E3=81=8B=E3=82=89=E3=81=8D=E3=81=A1?= =?UTF-8?q?=E3=82=93=E3=81=A8=E5=87=BA=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../functions/artifact/1674.bouncy_launcher/register.mcfunction | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Asset/data/asset/functions/artifact/1674.bouncy_launcher/register.mcfunction b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/register.mcfunction index 7acff53410..28bffce4e0 100644 --- a/Asset/data/asset/functions/artifact/1674.bouncy_launcher/register.mcfunction +++ b/Asset/data/asset/functions/artifact/1674.bouncy_launcher/register.mcfunction @@ -5,4 +5,4 @@ # @within tag/function asset:artifact/register data modify storage asset:artifact RarityRegistry[2] append value [1674] -data modify storage asset:artifact arityRegistryWithColor.Red[2] append value [1674] +data modify storage asset:artifact RarityRegistryWithColor.Red[2] append value [1674] From 1ee2e175a146a8ff09b0420f0c93374e9969ec55 Mon Sep 17 00:00:00 2001 From: k22992068-crypto <286215529+k22992068-crypto@users.noreply.github.com> Date: Sat, 14 Nov 2026 18:01:09 +0900 Subject: [PATCH 10/10] =?UTF-8?q?tag=3DEnemy=E3=81=AE=E4=BB=98=E3=81=91?= =?UTF-8?q?=E5=BF=98=E3=82=8C=E3=81=A8=E5=8F=8D=E5=B0=84=E3=81=AE=E6=8C=99?= =?UTF-8?q?=E5=8B=95=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../object/1204.bouncy_ball/hit_block/.mcfunction | 2 ++ .../object/1204.bouncy_ball/hit_entity/.mcfunction | 13 +++++++++---- .../1204.bouncy_ball/hit_entity/reflect.mcfunction | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_block/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_block/.mcfunction index d7ed092238..1b28631668 100644 --- a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_block/.mcfunction +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_block/.mcfunction @@ -10,3 +10,5 @@ function lib:reflection_bullet/ #vfx playsound minecraft:block.slime_block.fall player @a ~ ~ ~ 1.0 1 0.0 +#当たった敵の情報をリセット + data modify storage asset:context this.HitEnemyID set value -1 diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction index a2ab631cf4..0de5ac6531 100644 --- a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/.mcfunction @@ -9,7 +9,7 @@ #declare score_holder $OwnerID #Hitした敵にTagを付与 - execute positioned ~-0.5 ~-0.5 ~-0.5 as @e[type=#lib:living_without_player,tag=!Uninterferable,dx=0,sort=nearest,limit=1] run tag @s add 1AI.HitEnemy + execute positioned ~-0.5 ~-0.5 ~-0.5 as @e[type=#lib:living_without_player,tag=Enemy,tag=!Uninterferable,dx=0,sort=nearest,limit=1] run tag @s add 1AI.HitEnemy #直前にヒットしている敵ならリセットしてreturn execute store result score $HitEnemyID Temporary run data get storage asset:context this.HitEnemyID @@ -26,6 +26,11 @@ #ダメージ処理 execute as @e[tag=1AI.HitEnemy,distance=..5,sort=nearest,limit=1] run function asset:object/1204.bouncy_ball/hit_entity/damage +# 同じMobの本体・当たり判定も反射先の候補から外す + execute store result score $HitEnemyID Temporary run data get storage asset:context this.HitEnemyID + execute as @e[type=#lib:living_without_player,tag=Enemy,tag=!ExtendedCollision,tag=!1AI.HitEnemy,distance=..12] if score @s MobUUID = $HitEnemyID Temporary run tag @s add 1AI.HitEnemy + execute as @e[type=#lib:living_without_player,tag=Enemy,tag=ExtendedCollision,tag=!1AI.HitEnemy,distance=..12] if score @s ForwardTargetMobUUID = $HitEnemyID Temporary run tag @s add 1AI.HitEnemy + # リセット scoreboard players reset $OwnerID Temporary scoreboard players reset $HitEnemyID Temporary @@ -35,8 +40,8 @@ execute if data storage asset:context this{ReflectionLimit:0} run function asset:object/call.m {method:"kill"} #12m以内に敵がいるなら、向きを変える。そうでない時はランダムな向きに向く - execute if entity @e[type=#lib:living_without_player,tag=!1AI.HitEnemy,tag=!Uninterferable,distance=..12] run function asset:object/1204.bouncy_ball/hit_entity/reflect - execute unless entity @e[type=#lib:living_without_player,tag=!1AI.HitEnemy,tag=!Uninterferable,distance=..12] run function asset:object/1204.bouncy_ball/hit_entity/random_direction + execute if entity @e[type=#lib:living_without_player,tag=Enemy,tag=!1AI.HitEnemy,tag=!Uninterferable,distance=..12] run function asset:object/1204.bouncy_ball/hit_entity/reflect + execute unless entity @e[type=#lib:living_without_player,tag=Enemy,tag=!1AI.HitEnemy,tag=!Uninterferable,distance=..12] run function asset:object/1204.bouncy_ball/hit_entity/random_direction #ヒットタグもリセット - tag @e[type=#lib:living_without_player,tag=1AI.HitEnemy,distance=..5] remove 1AI.HitEnemy + tag @e[type=#lib:living_without_player,tag=1AI.HitEnemy,distance=..64] remove 1AI.HitEnemy diff --git a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/reflect.mcfunction b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/reflect.mcfunction index 5cb76ad403..5bf0453a3f 100644 --- a/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/reflect.mcfunction +++ b/Asset/data/asset/functions/object/1204.bouncy_ball/hit_entity/reflect.mcfunction @@ -7,4 +7,4 @@ #反射回数を1減らす execute store result storage asset:context this.ReflectionLimit int 0.9999999999 run data get storage asset:context this.ReflectionLimit 1 #向きを変える - tp @s ^ ^ ^ facing entity @e[type=#lib:living_without_player,tag=!1AI.HitEnemy,tag=!Uninterferable,distance=..12,sort=random,limit=1] eyes + tp @s ^ ^ ^ facing entity @e[type=#lib:living_without_player,tag=Enemy,tag=!1AI.HitEnemy,tag=!Uninterferable,distance=..12,sort=random,limit=1] eyes