Skip to content

Commit

Permalink
攻撃動作1つ実装
Browse files Browse the repository at this point in the history
  • Loading branch information
mokkkk committed Nov 30, 2024
1 parent cf2a9b6 commit e55eb4d
Show file tree
Hide file tree
Showing 20 changed files with 193 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@
#declare tag BE.AttackTarget 攻撃ターゲット

# 一時
#declare tag BE.Temp.Ground 角度決定用
#declare tag BE.Temp.AttackRotation 角度決定用
#declare tag BE.Temp.AttackPosition 位置決定用
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
scoreboard objectives add aj.heiloang_aj.animation.1_idle.local_anim_time dummy

# 処理用
scoreboard objectives add BE.Counter dummy
scoreboard objectives add BE.EventTimer dummy
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@

# 汎用詠唱

Check failure on line 10 in Asset/data/asset/functions/mob/0410.heiloang/tick/animated_java/tick/.mcfunction

View workflow job for this annotation

GitHub Actions / lint

Invalid tag “aj.heiloang_aj.animation.2_1_common_casting” which doesn't follow “ChainedPascalCase” or “this” convention

Check failure on line 10 in Asset/data/asset/functions/mob/0410.heiloang/tick/animated_java/tick/.mcfunction

View workflow job for this annotation

GitHub Actions / lint

Undefined tag “aj.heiloang_aj.animation.2_1_common_casting”
execute if entity @s[tag=aj.heiloang_aj.animation.2_1_common_casting] run function asset:mob/0410.heiloang/tick/animated_java/tick/2_1_common_casting

# ヘルファイア

Check failure on line 13 in Asset/data/asset/functions/mob/0410.heiloang/tick/animated_java/tick/.mcfunction

View workflow job for this annotation

GitHub Actions / lint

Invalid tag “aj.heiloang_aj.animation.3_0_hellfire_start” which doesn't follow “ChainedPascalCase” or “this” convention

Check failure on line 13 in Asset/data/asset/functions/mob/0410.heiloang/tick/animated_java/tick/.mcfunction

View workflow job for this annotation

GitHub Actions / lint

Undefined tag “aj.heiloang_aj.animation.3_0_hellfire_start”
execute if entity @s[tag=aj.heiloang_aj.animation.3_0_hellfire_start] run function asset:mob/0410.heiloang/tick/animated_java/tick/3_0_hellfire_start

Check failure on line 14 in Asset/data/asset/functions/mob/0410.heiloang/tick/animated_java/tick/.mcfunction

View workflow job for this annotation

GitHub Actions / lint

Invalid tag “aj.heiloang_aj.animation.3_2_hellfire_shoot_end” which doesn't follow “ChainedPascalCase” or “this” convention

Check failure on line 14 in Asset/data/asset/functions/mob/0410.heiloang/tick/animated_java/tick/.mcfunction

View workflow job for this annotation

GitHub Actions / lint

Undefined tag “aj.heiloang_aj.animation.3_2_hellfire_shoot_end”
execute if entity @s[tag=aj.heiloang_aj.animation.3_2_hellfire_shoot_end] run function asset:mob/0410.heiloang/tick/animated_java/tick/3_2_hellfire_shoot_end
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#> asset:mob/0410.heiloang/tick/animated_java/tick/3_0_hellfire_start
#
# アニメーション用のイベントへの振り分け
#
# @within asset:mob/0410.heiloang/tick/animated_java/tick/

# 演出

Check warning on line 7 in Asset/data/asset/functions/mob/0410.heiloang/tick/animated_java/tick/3_0_hellfire_start.mcfunction

View workflow job for this annotation

GitHub Actions / lint

Undefined objective “aj.anim_time”
execute if score @s aj.anim_time matches 2 run playsound entity.ender_dragon.flap hostile @a ~ ~ ~ 3 0.7
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#> asset:mob/0410.heiloang/tick/animated_java/tick/3_2_hellfire_shoot_end
#
# アニメーション用のイベントへの振り分け
#
# @within asset:mob/0410.heiloang/tick/animated_java/tick/

# 演出

Check warning on line 7 in Asset/data/asset/functions/mob/0410.heiloang/tick/animated_java/tick/3_2_hellfire_shoot_end.mcfunction

View workflow job for this annotation

GitHub Actions / lint

Undefined objective “aj.anim_time”
execute if score @s aj.anim_time matches 27 run playsound entity.ender_dragon.flap hostile @a ~ ~ ~ 3 0.7
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@
execute if score @s BE.EventTimer matches 125 as @e[type=item_display,tag=BE.ModelRoot,sort=nearest,limit=1] run function asset:mob/0410.heiloang/tick/animated_java/play/3_0_hellfire_start
# 1
execute if score @s BE.EventTimer matches 156 as @e[type=item_display,tag=BE.ModelRoot,sort=nearest,limit=1] run function asset:mob/0410.heiloang/tick/animated_java/play/3_1_hellfire_shoot
execute if score @s BE.EventTimer matches 156 run function asset:mob/0410.heiloang/tick/event/hellfire/attack
execute if score @s BE.EventTimer matches 156 positioned ^ ^7 ^2 run function asset:mob/0410.heiloang/tick/event/hellfire/attack
# 2
execute if score @s BE.EventTimer matches 187 as @e[type=item_display,tag=BE.ModelRoot,sort=nearest,limit=1] run function asset:mob/0410.heiloang/tick/animated_java/play/3_1_hellfire_shoot
execute if score @s BE.EventTimer matches 187 run function asset:mob/0410.heiloang/tick/event/hellfire/attack
execute if score @s BE.EventTimer matches 187 positioned ^ ^7 ^2 run function asset:mob/0410.heiloang/tick/event/hellfire/attack
# 3
execute if score @s BE.EventTimer matches 218 as @e[type=item_display,tag=BE.ModelRoot,sort=nearest,limit=1] run function asset:mob/0410.heiloang/tick/animated_java/play/3_1_hellfire_shoot
execute if score @s BE.EventTimer matches 218 run function asset:mob/0410.heiloang/tick/event/hellfire/attack
execute if score @s BE.EventTimer matches 218 positioned ^ ^7 ^2 run function asset:mob/0410.heiloang/tick/event/hellfire/attack
# 4
execute if score @s BE.EventTimer matches 249 as @e[type=item_display,tag=BE.ModelRoot,sort=nearest,limit=1] run function asset:mob/0410.heiloang/tick/animated_java/play/3_1_hellfire_shoot
execute if score @s BE.EventTimer matches 249 run function asset:mob/0410.heiloang/tick/event/hellfire/attack
execute if score @s BE.EventTimer matches 249 positioned ^ ^7 ^2 run function asset:mob/0410.heiloang/tick/event/hellfire/attack
# 5
execute if score @s BE.EventTimer matches 280 as @e[type=item_display,tag=BE.ModelRoot,sort=nearest,limit=1] run function asset:mob/0410.heiloang/tick/animated_java/play/3_2_hellfire_shoot_end
execute if score @s BE.EventTimer matches 280 run function asset:mob/0410.heiloang/tick/event/hellfire/attack
execute if score @s BE.EventTimer matches 280 positioned ^ ^7 ^2 run function asset:mob/0410.heiloang/tick/event/hellfire/attack

# 対象を向く
execute if score @s BE.EventTimer matches 1..125 as @e[type=item_display,tag=BE.ModelRoot,sort=nearest,limit=1] at @s run function asset:mob/0410.heiloang/tick/util/rotate_to_target
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,26 @@
# @within asset:mob/0410.heiloang/tick/event/hellfire/

# 攻撃位置決定用
execute positioned ^ ^7 ^2 run summon area_effect_cloud ~ ~ ~ {Duration:1,Tags:["BE.Temp.AttackRotation"]}
execute as @e[type=area_effect_cloud,tag=BE.Temp.AttackRotation,limit=1] at @s facing entity @p[tag=BE.MainTarget] feet run tp @s ~ ~ ~ ~ ~
execute positioned as @p[tag=BE.MainTarget] run summon area_effect_cloud ~ ~ ~ {Duration:1,Tags:["BE.Temp.AttackPosition"]}
execute as @e[type=area_effect_cloud,tag=BE.Temp.AttackPosition,limit=1] at @s run function asset:mob/0410.heiloang/tick/util/move_to_ground
summon area_effect_cloud ~ ~ ~ {Duration:1,Tags:["BE.Temp.AttackRotation"]}
execute as @e[type=area_effect_cloud,tag=BE.Temp.AttackRotation,limit=1] at @s facing entity @e[type=area_effect_cloud,tag=BE.Temp.AttackPosition,limit=1] feet run tp @s ~ ~ ~ ~ ~

# 攻撃
data modify storage api: Argument.ID set value 2107
data modify storage api: Argument.FieldOverride.Rotation set from entity @e[type=area_effect_cloud,tag=BE.Temp.AttackRotation,limit=1] Rotation
execute store result storage api: Argument.FieldOverride.MobUUID int 1 run scoreboard players get @s MobUUID
execute positioned ^ ^7 ^2 run function api:object/summon
function api:object/summon

# 攻撃位置表示
data modify storage api: Argument.ID set value 2063
execute store result storage api: Argument.FieldOverride.MobUUID int 1 run scoreboard players get @s MobUUID
data modify storage api: Argument.FieldOverride.Color set value 10684938
data modify storage api: Argument.FieldOverride.Scale set value [11f, 11f, 0.05f]
data modify storage api: Argument.FieldOverride.Tick set value 10
execute as @e[type=area_effect_cloud,tag=BE.Temp.AttackPosition,limit=1] at @s positioned ~ ~0.5 ~ run function api:object/summon

# 演出
playsound item.firecharge.use hostile @a ~ ~ ~ 3 0.7
particle explosion ~ ~ ~ 0 0 0 0 1 force
execute rotated as @e[type=area_effect_cloud,tag=BE.Temp.AttackRotation,limit=1] run function asset:mob/0410.heiloang/tick/event/hellfire/particle_shoot
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# ヘルファイア
#
# @within asset:mob/0410.heiloang/tick/event/
# @within asset:mob/0410.heiloang/tick/event/hellfire/

# タグ消去
tag @s remove BE.Skill.Hellfire
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,47 @@
#
# @within asset:mob/0410.heiloang/tick/event/hellfire/

# 中心
particle flame ~ ~ ~ 0.1 0.1 0.1 0.2 2

# [ImportKey]: NobwRALgngDgpmAXGAxgSwE4oDYIDRgCuhaAJkqgGwCcAzLQAwMAcAtAEbtwOsAsATJTitqAdl4BDVrQCs-GQEZ+DFADNG+MADsJAWwTJAYYoACBWAIwJGPQGck4FAHtCWiElrUCKOK7gZ7YABuEtiEBuAAHkgMBFDRAL7xBNakaIR2iJQENhBWbogxYHDY2GgwNgYKTMmOuRAGhWg2AKIlZRXNAI6EIdhQAMqW3uSIqiEViQC6QA_3
# 円 1
particle dust 0.655 0.161 0.1611 1 ^0 ^ ^-6 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^0.96247 ^ ^-5.9223 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^1.90001 ^ ^-5.69122 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^2.78834 ^ ^-5.31274 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^3.60445 ^ ^-4.79666 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^4.32721 ^ ^-4.15635 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^4.9379 ^ ^-3.40839 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.4207 ^ ^-2.57216 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.76311 ^ ^-1.6693 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.95625 ^ ^-0.72322 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.99513 ^ ^0.2416 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.87874 ^ ^1.20015 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.6101 ^ ^2.12763 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.19615 ^ ^3 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^4.64763 ^ ^3.79467 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^3.97874 ^ ^4.49106 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^3.20679 ^ ^5.07114 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^2.3518 ^ ^5.51988 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^1.43589 ^ ^5.82565 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^0.4828 ^ ^5.98054 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-0.4828 ^ ^5.98054 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-1.43589 ^ ^5.82565 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-2.3518 ^ ^5.51988 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-3.20679 ^ ^5.07114 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-3.97874 ^ ^4.49106 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-4.64763 ^ ^3.79467 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.19615 ^ ^3 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.6101 ^ ^2.12763 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.87874 ^ ^1.20015 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.99513 ^ ^0.2416 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.95625 ^ ^-0.72322 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.76311 ^ ^-1.6693 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.4207 ^ ^-2.57216 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-4.9379 ^ ^-3.40839 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-4.32721 ^ ^-4.15635 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-3.60445 ^ ^-4.79666 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-2.78834 ^ ^-5.31274 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-1.90001 ^ ^-5.69122 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-0.96247 ^ ^-5.9223 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^0 ^ ^-6 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^0.96247 ^ ^-5.9223 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^1.90001 ^ ^-5.69122 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^2.78834 ^ ^-5.31274 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^3.60445 ^ ^-4.79666 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^4.32721 ^ ^-4.15635 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^4.9379 ^ ^-3.40839 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.4207 ^ ^-2.57216 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.76311 ^ ^-1.6693 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.95625 ^ ^-0.72322 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.99513 ^ ^0.2416 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.87874 ^ ^1.20015 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.6101 ^ ^2.12763 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^5.19615 ^ ^3 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^4.64763 ^ ^3.79467 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^3.97874 ^ ^4.49106 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^3.20679 ^ ^5.07114 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^2.3518 ^ ^5.51988 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^1.43589 ^ ^5.82565 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^0.4828 ^ ^5.98054 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-0.4828 ^ ^5.98054 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-1.43589 ^ ^5.82565 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-2.3518 ^ ^5.51988 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-3.20679 ^ ^5.07114 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-3.97874 ^ ^4.49106 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-4.64763 ^ ^3.79467 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.19615 ^ ^3 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.6101 ^ ^2.12763 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.87874 ^ ^1.20015 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.99513 ^ ^0.2416 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.95625 ^ ^-0.72322 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.76311 ^ ^-1.6693 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-5.4207 ^ ^-2.57216 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-4.9379 ^ ^-3.40839 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-4.32721 ^ ^-4.15635 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-3.60445 ^ ^-4.79666 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-2.78834 ^ ^-5.31274 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-1.90001 ^ ^-5.69122 0 0 0 0 1
particle dust 0.655 0.161 0.1611 1 ^-0.96247 ^ ^-5.9223 0 0 0 0 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#> asset:mob/0410.heiloang/tick/event/hellfire/particle_shoot
#
# ヘルファイア
#
# @within asset:mob/0410.heiloang/tick/event/hellfire/attack

# [ImportKey]: NobwRALgngDgpmAXGAxgSwE4oDYIDRgCuhaAJkqgGwCcAzLQAwMAcAtAEbtwOsAsATJTitqAdl4BDVrQCs-GQEZ+DFADNG+MADsJAWwTJAYYoACBWAIwJGPQGck4FAHtCWiEmUEUcV3Az2wAG4S2IQG4AAeSAwEUFEAvnEE1qRohHaICkxZTAQ2EFZuiNFgcNjYaDA2BpnFGI75EAbFaDYAomUVVa0AjoTB2FAAypZe5IiqwVUJALpAA_3
# 円 1
particle flame ~ ~ ~ ^0 ^-10000000 ^ 0.0000001 0
particle flame ~ ~ ~ ^3090169.94375 ^-9510565.16295 ^ 0.0000001 0
particle flame ~ ~ ~ ^5877852.52292 ^-8090169.94375 ^ 0.0000001 0
particle flame ~ ~ ~ ^8090169.94375 ^-5877852.52292 ^ 0.0000001 0
particle flame ~ ~ ~ ^9510565.16295 ^-3090169.94375 ^ 0.0000001 0
particle flame ~ ~ ~ ^10000000 ^0 ^ 0.0000001 0
particle flame ~ ~ ~ ^9510565.16295 ^3090169.94375 ^ 0.0000001 0
particle flame ~ ~ ~ ^8090169.94375 ^5877852.52292 ^ 0.0000001 0
particle flame ~ ~ ~ ^5877852.52292 ^8090169.94375 ^ 0.0000001 0
particle flame ~ ~ ~ ^3090169.94375 ^9510565.16295 ^ 0.0000001 0
particle flame ~ ~ ~ ^0 ^10000000 ^ 0.0000001 0
particle flame ~ ~ ~ ^-3090169.94375 ^9510565.16295 ^ 0.0000001 0
particle flame ~ ~ ~ ^-5877852.52292 ^8090169.94375 ^ 0.0000001 0
particle flame ~ ~ ~ ^-8090169.94375 ^5877852.52292 ^ 0.0000001 0
particle flame ~ ~ ~ ^-9510565.16295 ^3090169.94375 ^ 0.0000001 0
particle flame ~ ~ ~ ^-10000000 ^0 ^ 0.0000001 0
particle flame ~ ~ ~ ^-9510565.16295 ^-3090169.94375 ^ 0.0000001 0
particle flame ~ ~ ~ ^-8090169.94375 ^-5877852.52292 ^ 0.0000001 0
particle flame ~ ~ ~ ^-5877852.52292 ^-8090169.94375 ^ 0.0000001 0
particle flame ~ ~ ~ ^-3090169.94375 ^-9510565.16295 ^ 0.0000001 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#> asset:mob/0410.heiloang/tick/util/move_to_ground
#
# 汎用処理 接地
#
# @within asset:mob/0410.heiloang/tick/event/**

# 接地
summon area_effect_cloud ~ ~ ~ {Duration:1,Tags:["BE.Temp.Ground"]}
execute as @e[type=area_effect_cloud,tag=BE.Temp.Ground] run scoreboard players set @s BE.Counter 20
execute as @e[type=area_effect_cloud,tag=BE.Temp.Ground] at @s align y run tp @s ~ ~ ~
execute as @e[type=area_effect_cloud,tag=BE.Temp.Ground] at @s run function asset:mob/0410.heiloang/tick/util/move_to_ground_loop
execute positioned as @e[type=area_effect_cloud,tag=BE.Temp.Ground] align y run tp @s ~ ~-0.4 ~
kill @e[type=area_effect_cloud,tag=BE.Temp.Ground]
execute at @s run particle flash ~ ~ ~ 0 0 0 0 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#> asset:mob/0410.heiloang/tick/util/move_to_ground_loop
#
# 汎用処理 接地
#
# @within asset:mob/0410.heiloang/tick/util/move_to_ground
# @within asset:mob/0410.heiloang/tick/util/move_to_ground_loop

# 接地するまで繰り返す
scoreboard players remove @s BE.Counter 1
execute if score @s BE.Counter matches 1.. if block ~ ~-1 ~ #lib:no_collision positioned ~ ~-1 ~ run function asset:mob/0410.heiloang/tick/util/move_to_ground_loop
execute unless block ~ ~-1 ~ #lib:no_collision run tp @s ~ ~ ~
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Scale : エフェクトの大きさ。[5f,5f,0.01f]がデフォルト。
# Tick : 何Tick後にダメージを与えるかを指定する。ただしこのオブジェクトはあくまでも見た目だけなのでダメージ処理は自前で。

# 外円にmergeを行う
# 外円にmergeを行う
data modify storage asset:temp 2063.item.tag.display.color set from storage asset:context this.Color
data modify storage asset:temp 2063.transformation.scale set from storage asset:context this.Scale
data modify entity @s {} merge from storage asset:temp 2063
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@
data modify storage api: Argument.FieldOverride.MobUUID set from storage asset:context this.MobUUID
execute positioned ~ ~0.3 ~ run function api:object/summon

# ヒット演出
playsound entity.generic.explode hostile @a ~ ~ ~ 2 0.7
particle explosion ~ ~2 ~ 2 1 2 0 20

# 着弾時の消滅処理
kill @s
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# @within asset:object/alias/2107/init

# スピード関連の設定
data modify storage asset:context this.Speed set value 1
data modify storage asset:context this.Speed set value 2
data modify storage asset:context this.Range set value 128
data modify storage asset:context this.MovePerStep set value 1
data modify storage asset:context this.MovePerStep set value 0.9

# 継承
function asset:object/super.init
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
function asset:object/super.tick

# 独自処理
particle flame ~ ~ ~ 0.1 0.1 0.1 0.05 3
particle flame ~ ~ ~ 0.1 0.1 0.1 0.05 3 force
execute if entity @s[scores={General.Object.Tick=1}] run function asset:object/2107.heiloang_fireball/tick/particle
execute if entity @s[scores={General.Object.Tick=5}] run function asset:object/2107.heiloang_fireball/tick/particle
execute if entity @s[scores={General.Object.Tick=10}] run function asset:object/2107.heiloang_fireball/tick/particle
execute if entity @s[scores={General.Object.Tick=15}] run function asset:object/2107.heiloang_fireball/tick/particle

# 消滅処理
kill @s[scores={General.Object.Tick=1000..}]
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#> asset:object/2107.heiloang_fireball/tick/particle
#
# ヘルファイア
#
# @within asset:object/2107.heiloang_fireball/tick/

# [ImportKey]: NobwRALgngDgpmAXGAxgSwE4oDYIDRgCuhaAJkqgGwCcAzLQAwMAcAtAEbtwOsAsATJTitqAdl4BDVrQCs-GQEZ+DFADNG+MADsJAWwTJAYYoACBWAIwJGPQGck4FAHtCWiEmUEUcV3Az2wAG4S2IQG4AAeSAwEUFEAvnEE1qRohHaICkxZTAQ2EFZuiNFgcNjYaDA2BpnFGI75EAbFaDYAomUVVa0AjoTB2FAAypZe5IiqwVUJALpAA_3
# 円 1
particle flame ~ ~ ~ ^0 ^-10000000 ^ 0.00000001 0
particle flame ~ ~ ~ ^3090169.94375 ^-9510565.16295 ^ 0.00000001 0
particle flame ~ ~ ~ ^5877852.52292 ^-8090169.94375 ^ 0.00000001 0
particle flame ~ ~ ~ ^8090169.94375 ^-5877852.52292 ^ 0.00000001 0
particle flame ~ ~ ~ ^9510565.16295 ^-3090169.94375 ^ 0.00000001 0
particle flame ~ ~ ~ ^10000000 ^0 ^ 0.00000001 0
particle flame ~ ~ ~ ^9510565.16295 ^3090169.94375 ^ 0.00000001 0
particle flame ~ ~ ~ ^8090169.94375 ^5877852.52292 ^ 0.00000001 0
particle flame ~ ~ ~ ^5877852.52292 ^8090169.94375 ^ 0.00000001 0
particle flame ~ ~ ~ ^3090169.94375 ^9510565.16295 ^ 0.00000001 0
particle flame ~ ~ ~ ^0 ^10000000 ^ 0.00000001 0
particle flame ~ ~ ~ ^-3090169.94375 ^9510565.16295 ^ 0.00000001 0
particle flame ~ ~ ~ ^-5877852.52292 ^8090169.94375 ^ 0.00000001 0
particle flame ~ ~ ~ ^-8090169.94375 ^5877852.52292 ^ 0.00000001 0
particle flame ~ ~ ~ ^-9510565.16295 ^3090169.94375 ^ 0.00000001 0
particle flame ~ ~ ~ ^-10000000 ^0 ^ 0.00000001 0
particle flame ~ ~ ~ ^-9510565.16295 ^-3090169.94375 ^ 0.00000001 0
particle flame ~ ~ ~ ^-8090169.94375 ^-5877852.52292 ^ 0.00000001 0
particle flame ~ ~ ~ ^-5877852.52292 ^-8090169.94375 ^ 0.00000001 0
particle flame ~ ~ ~ ^-3090169.94375 ^-9510565.16295 ^ 0.00000001 0
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# @within asset:object/alias/2108/summon

# 元となるEntityを召喚する
summon area_effect_cloud ~ ~ ~ {Tags:["ObjectInit"],Particle:"flame",Radius:6f,Duration:300}
summon area_effect_cloud ~ ~ ~ {Tags:["ObjectInit"],Particle:"flame",Radius:6f,Duration:500}
Loading

0 comments on commit e55eb4d

Please sign in to comment.