Skip to content

Commit

Permalink
ファイアボールの処理を調整
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuzume committed Jan 7, 2025
1 parent 5d2988b commit c5ba0a4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@

#> 行き先マーカー
# @private
#declare tag FacingMarker
#declare tag SpreadMarker

# 拡散させるEntityを召喚する
summon marker ~ ~ ~ {Tags:["SpreadMarker","FacingMarker"]}
summon marker ~ ~ ~ {Tags:["SpreadMarker"]}

# ステータス設定
data modify storage lib: Argument.Distance set value 5
data modify storage lib: Argument.Distance set value 1
data modify storage lib: Argument.Spread set value 1

# 拡散
Expand All @@ -25,10 +24,10 @@

# 召喚
data modify storage api: Argument.ID set value 2042
function api:object/summon
execute facing entity @e[type=marker,tag=SpreadMarker,distance=..128,limit=1] eyes run function api:object/summon

# リセット
kill @e[type=marker,tag=FacingMarker,distance=..128,limit=1]
kill @e[type=marker,tag=SpreadMarker,distance=..128,limit=1]

# 演出
playsound minecraft:entity.blaze.shoot hostile @a ~ ~ ~ 1 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
# @within asset:object/alias/2042/summon

# 元となるEntityを召喚する
summon item_display ~ ~ ~ {billboard:"center",teleport_duration:1,Tags:["ObjectInit"],item:{id:"minecraft:leather_horse_armor",Count:1b,tag:{display:{color:16738816},CustomModelData:20375}}}
execute as 0-0-0-0-0 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/2042.lastboss_fireball/summon/m with storage asset:temp Args
data remove storage asset:temp Args
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#> asset:object/2042.lastboss_fireball/summon/m
#
#
#
# @within function asset:object/2042.lastboss_fireball/summon/

# 元となるEntityを召喚する
$summon item_display ~ ~ ~ {Rotation:$(Rotation),billboard:"center",teleport_duration:1,Tags:["ObjectInit"],item:{id:"minecraft:leather_horse_armor",Count:1b,tag:{display:{color:16738816},CustomModelData:20375}}}

0 comments on commit c5ba0a4

Please sign in to comment.