From c66ac39abba9d1996c7a55d89cab735380c54ce2 Mon Sep 17 00:00:00 2001 From: Chuzume Date: Wed, 8 Jan 2025 02:20:29 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=9B=E3=83=BC=E3=83=9F=E3=83=B3=E3=82=B0?= =?UTF-8?q?=E3=82=B7=E3=83=A7=E3=83=83=E3=83=88=E3=81=AE=E5=87=A6=E7=90=86?= =?UTF-8?q?=E3=82=92=E5=A4=89=E6=9B=B4=E3=80=82=E3=81=93=E3=82=8C=E3=81=A7?= =?UTF-8?q?=E3=81=84=E3=81=84=E3=81=8B=EF=BC=81=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tick/skill/water/homing_shot/shot/.mcfunction | 13 ++++--------- .../2044.lastboss_ice_bullet/init/.mcfunction | 4 ++-- .../2044.lastboss_ice_bullet/summon/.mcfunction | 5 ++++- .../2044.lastboss_ice_bullet/summon/m.mcfunction | 8 ++++++++ 4 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 Asset/data/asset/functions/object/2044.lastboss_ice_bullet/summon/m.mcfunction diff --git a/Asset/data/asset/functions/mob/1004.tultaria/tick/skill/water/homing_shot/shot/.mcfunction b/Asset/data/asset/functions/mob/1004.tultaria/tick/skill/water/homing_shot/shot/.mcfunction index 676045f061..1469397366 100644 --- a/Asset/data/asset/functions/mob/1004.tultaria/tick/skill/water/homing_shot/shot/.mcfunction +++ b/Asset/data/asset/functions/mob/1004.tultaria/tick/skill/water/homing_shot/shot/.mcfunction @@ -11,20 +11,15 @@ # 弾を出す # 中心 - execute positioned ^ ^ ^10 run summon marker ~ ~ ~ {Tags:["FacingMarker"]} function asset:mob/1004.tultaria/tick/skill/water/homing_shot/shot/summon # 横1 - execute positioned ^5 ^ ^10 run summon marker ~ ~ ~ {Tags:["FacingMarker"]} - function asset:mob/1004.tultaria/tick/skill/water/homing_shot/shot/summon + execute facing ^5 ^ ^10 run function asset:mob/1004.tultaria/tick/skill/water/homing_shot/shot/summon # 横1 - execute positioned ^-5 ^ ^10 run summon marker ~ ~ ~ {Tags:["FacingMarker"]} - function asset:mob/1004.tultaria/tick/skill/water/homing_shot/shot/summon + execute facing ^-5 ^ ^10 run function asset:mob/1004.tultaria/tick/skill/water/homing_shot/shot/summon # 横2 - execute if entity @s[scores={RW.Phase=3..}] positioned ^15 ^ ^10 run summon marker ~ ~ ~ {Tags:["FacingMarker"]} - execute if entity @s[scores={RW.Phase=3..}] run function asset:mob/1004.tultaria/tick/skill/water/homing_shot/shot/summon + execute if entity @s[scores={RW.Phase=3..}] facing ^15 ^ ^10 run function asset:mob/1004.tultaria/tick/skill/water/homing_shot/shot/summon # 横2 - execute if entity @s[scores={RW.Phase=3..}] positioned ^-15 ^ ^10 run summon marker ~ ~ ~ {Tags:["FacingMarker"]} - execute if entity @s[scores={RW.Phase=3..}] run function asset:mob/1004.tultaria/tick/skill/water/homing_shot/shot/summon + execute if entity @s[scores={RW.Phase=3..}] facing ^-15 ^ ^10 run function asset:mob/1004.tultaria/tick/skill/water/homing_shot/shot/summon # 演出 playsound item.trident.riptide_3 hostile @a ~ ~ ~ 2 1.5 diff --git a/Asset/data/asset/functions/object/2044.lastboss_ice_bullet/init/.mcfunction b/Asset/data/asset/functions/object/2044.lastboss_ice_bullet/init/.mcfunction index 2ee9edd3e4..d222e3f743 100644 --- a/Asset/data/asset/functions/object/2044.lastboss_ice_bullet/init/.mcfunction +++ b/Asset/data/asset/functions/object/2044.lastboss_ice_bullet/init/.mcfunction @@ -12,10 +12,10 @@ execute store result storage asset:context this.TargetID int 1 run scoreboard players get @p[distance=..64] UserID # マーカーの方向く - execute facing entity @e[type=marker,tag=FacingMarker,limit=1] eyes run tp @s ~ ~ ~ ~ ~ +# execute facing entity @e[type=marker,tag=FacingMarker,limit=1] eyes run tp @s ~ ~ ~ ~ ~ # キル - kill @e[type=marker,tag=FacingMarker,limit=1] +# kill @e[type=marker,tag=FacingMarker,limit=1] # super function asset:object/super.init diff --git a/Asset/data/asset/functions/object/2044.lastboss_ice_bullet/summon/.mcfunction b/Asset/data/asset/functions/object/2044.lastboss_ice_bullet/summon/.mcfunction index 541ff133a7..8969a82db0 100644 --- a/Asset/data/asset/functions/object/2044.lastboss_ice_bullet/summon/.mcfunction +++ b/Asset/data/asset/functions/object/2044.lastboss_ice_bullet/summon/.mcfunction @@ -5,4 +5,7 @@ # @within asset:object/alias/2044/summon # 元となるEntityを召喚する - summon item_display ~ ~ ~ {brightness:{block:15,sky:15},billboard:"center",teleport_duration:1,Tags:["ObjectInit"],item:{id:"minecraft:leather_horse_armor",Count:1b,tag:{display:{color:7862527},CustomModelData:20375}}} + execute as 0-0-0-0-0 positioned as @s run tp @s ~ ~ ~ ~ 0 + data modify storage asset:temp Args.Rotation set from entity 0-0-0-0-0 Rotation + function asset:object/2044.lastboss_ice_bullet/summon/m with storage asset:temp Args + data remove storage asset:temp Args diff --git a/Asset/data/asset/functions/object/2044.lastboss_ice_bullet/summon/m.mcfunction b/Asset/data/asset/functions/object/2044.lastboss_ice_bullet/summon/m.mcfunction new file mode 100644 index 0000000000..e5134da9d0 --- /dev/null +++ b/Asset/data/asset/functions/object/2044.lastboss_ice_bullet/summon/m.mcfunction @@ -0,0 +1,8 @@ +#> asset:object/2044.lastboss_ice_bullet/summon/m +# +# +# +# @within function asset:object/2044.lastboss_ice_bullet/summon/ + +# 元となるEntityを召喚する + $summon item_display ~ ~ ~ {Rotation:$(Rotation),brightness:{block:15,sky:15},billboard:"center",teleport_duration:1,Tags:["ObjectInit"],item:{id:"minecraft:leather_horse_armor",Count:1b,tag:{display:{color:7862527},CustomModelData:20375}}}