Skip to content

[Artifact 1556] しゃぼんリングの作成 - #2062

Open
ogachu0331 wants to merge 19 commits into
masterfrom
dev/ogachu_artifact1556
Open

ogachu0331 wants to merge 19 commits into
masterfrom
dev/ogachu_artifact1556

Conversation

@ogachu0331

Copy link
Copy Markdown
Contributor

神器とそれに必要なobject1165の作成

Comment thread Asset/data/asset/functions/object/1165.bubble_spreader/init/.mcfunction Outdated
Comment thread Asset/data/asset/functions/object/1165.bubble_spreader/range_over/.mcfunction Outdated
@ogachu0331 ogachu0331 changed the title [Artifact 1556] バブルスプレッダーの作成 [Artifact 1556] しゃぼんリングの作成 Jul 3, 2026
Comment on lines +9 to +15
execute if score @s 178.Tick matches 1 run function asset:effect/0378.bubble_shoot/tick/vfx/1
# しゃぼんを軌跡に沿って召喚
execute if score @s 178.Tick matches 1 positioned ^-1.7 ^1.8 ^1.2 run function asset:effect/0378.bubble_shoot/tick/summon
execute if score @s 178.Tick matches 2 positioned ^-0.85 ^1.6 ^1.2 run function asset:effect/0378.bubble_shoot/tick/summon
execute if score @s 178.Tick matches 3 positioned ^0 ^1.4 ^1.2 run function asset:effect/0378.bubble_shoot/tick/summon
execute if score @s 178.Tick matches 4 positioned ^0.85 ^1.2 ^1.2 run function asset:effect/0378.bubble_shoot/tick/summon
execute if score @s 178.Tick matches 5 positioned ^1.7 ^1.0 ^1.2 run function asset:effect/0378.bubble_shoot/tick/summon

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

フィールドを使えば専用のスコアは不要になるかも?
コレはお好みで

Comment on lines +16 to +23
playsound minecraft:entity.item.pickup player @a ~ ~ ~ 1 1.6
playsound minecraft:entity.chicken.egg player @a ~ ~ ~ 1 1.3
playsound minecraft:entity.slime.jump player @a ~ ~ ~ 1 2.0
playsound minecraft:block.honey_block.break player @a ~ ~ ~ 1 2.0
playsound minecraft:entity.turtle.egg_crack player @a ~ ~ ~ 1 2.0
playsound minecraft:entity.experience_orb.pickup player @a ~ ~ ~ 0.2 1.5
# 弾けた時の水しぶきの音
playsound minecraft:entity.player.splash neutral @a ~ ~ ~ 0.4 2.0 0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

playerとneutralが混ざっている
おそらくneutralに統一するのがよい

Comment on lines +11 to +13
# 16..の時、常時追尾
#execute if score @s General.Object.Tick matches 16.. run tp @s ~ ~ ~ facing entity @e[type=#lib:living_without_player,tag=Enemy,tag=!Uninterferable,distance=..20,sort=nearest,limit=1] eyes
#execute if score @s General.Object.Tick matches 16.. facing entity @e[type=#lib:living_without_player,distance=..20,sort=nearest,limit=1] eyes positioned ^ ^ ^-100 rotated as @s positioned ^ ^ ^-600 facing entity @s eyes positioned as @s run tp @s ~ ~ ~ ~ ~

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

流石にコメントが嘘

execute if score @s General.Object.Tick matches 8.. run function asset:object/1165.bubble_spreader/tick/homing

# super.tick
function asset:object/super.tick

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function asset:object/super.tick
execute at @s run function asset:object/super.tick


# 弾を召喚
data modify storage api: Argument.ID set value 1165
data modify storage api: Argument.FieldOverride.Damage set value 150f

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ダメージの定義は神器側で行ってください

# 弾を召喚
data modify storage api: Argument.ID set value 1165
data modify storage api: Argument.FieldOverride.Damage set value 150f
data modify storage api: Argument.FieldOverride.AdditionalMPHeal set from storage api: PersistentArgument.AdditionalMPHeal

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PersistentArgumentはエフェクト側じゃ取得できないので、神器側でフィールドに入れてからここで取得してね

execute positioned ^ ^ ^3 run tag @e[type=#lib:living_without_player,tag=Enemy,tag=!Uninterferable,distance=..5] add 1165.TargetCandidate
execute unless entity @e[type=#lib:living_without_player,tag=1165.TargetCandidate,distance=..10] positioned ^ ^ ^15 run tag @e[type=#lib:living_without_player,tag=Enemy,tag=!Uninterferable,distance=..10] add 1165.TargetCandidate
execute facing entity @e[type=#lib:living_without_player,tag=1165.TargetCandidate,distance=..25,sort=nearest,limit=1] eyes positioned ^ ^ ^-140 rotated as @s positioned ^ ^ ^-800 facing entity @s feet positioned as @s run tp @s ~ ~ ~ ~ ~
execute run tag @e[type=#lib:living_without_player,tag=1165.TargetCandidate,distance=..30] remove 1165.TargetCandidate

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

execute run に意味はなさそう

Suggested change
execute run tag @e[type=#lib:living_without_player,tag=1165.TargetCandidate,distance=..30] remove 1165.TargetCandidate
tag @e[type=#lib:living_without_player,tag=1165.TargetCandidate,distance=..30] remove 1165.TargetCandidate

Comment on lines +6 to +11

# General.Object.Tickによって挙動を変える
# 一定時間まで 反射
execute if score @s General.Object.Tick matches ..100 run function asset:object/1165.bubble_spreader/hit_block/reflect
# それ以後 消滅
execute if score @s General.Object.Tick matches 100.. run function asset:object/call.m {method:kill}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rangeが65に設定されているので、General.Object.Tickが100以上になることはないため、この分岐は不要

Comment on lines +6 to +7


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これは任せるけど、ちょっと無駄な改行があるのは変かも...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants