Skip to content

Commit 6a7b947

Browse files
committed
死亡演出
1 parent 12ade61 commit 6a7b947

File tree

12 files changed

+130
-0
lines changed

12 files changed

+130
-0
lines changed

Asset/data/asset/functions/mob/0301.karmic/_index.d.mcfunction

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@
5050
#declare function animated_java:karmic/animations/fall/stop
5151
#declare function animated_java:karmic/animations/guntpstart/stop
5252
#declare function animated_java:karmic/animations/guntp/stop
53+
#declare function animated_java:karmic/pause_all
54+
#declare function animated_java:karmic/animations/dead/play

Asset/data/asset/functions/mob/0301.karmic/death/.mcfunction

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,12 @@
33
# Mobの死亡時の処理
44
#
55
# @within function asset:mob/alias/301/death
6+
7+
# AJ死亡モーション
8+
execute as @e[type=item_display,tag=8D.AJ,sort=nearest,limit=1] run function asset:mob/0301.karmic/death/animation_reset
9+
execute as @e[type=item_display,tag=8D.AJ,sort=nearest,limit=1] run function animated_java:karmic/pause_all
10+
execute as @e[type=item_display,tag=8D.AJ,sort=nearest,limit=1] run function animated_java:karmic/animations/dead/play
11+
12+
# 召喚
13+
data modify storage api: Argument.ID set value 2219
14+
execute at @s run function api:object/summon
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#> asset:mob/0301.karmic/death/animation_reset
2+
#
3+
#
4+
#
5+
# @within function asset:mob/0301.karmic/death/
6+
7+
function animated_java:karmic/animations/wait/stop
8+
function animated_java:karmic/animations/sword_wait/stop
9+
function animated_java:karmic/animations/fall/stop
10+
function animated_java:karmic/animations/run_loop/stop
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#> asset:object/2219.karmic_death/register
2+
#
3+
# Objectのデータを指定
4+
#
5+
# @within function asset:object/alias/2219/register
6+
7+
# 継承(オプション)
8+
# data modify storage asset:object Extends append value
9+
# function asset:object/extends
10+
# 他のObjectに継承されることを許可するか (boolean) (オプション)
11+
# data modify storage asset:object ExtendsSafe set value
12+
# 継承されることを前提とした、抽象的なObjectであるかどうか(boolean)
13+
data modify storage asset:object IsAbstract set value false
14+
# Tickするかどうか(boolean) (オプション)
15+
# data modify storage asset:object IsTicking set value
16+
17+
# ID (int)
18+
data modify storage asset:object ID set value 2219
19+
# フィールド(オプション)
20+
# data modify storage asset:object Field.myValue set value
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#> asset:object/2219.karmic_death/summon/
2+
#
3+
# Object召喚処理の呼び出し時に実行されるfunction
4+
#
5+
# @within asset:object/alias/2219/summon
6+
7+
# 元となるEntityを召喚する
8+
summon marker ~ ~ ~ {Tags:["ObjectInit"]}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#> asset:object/2219.karmic_death/summon/debug
2+
#
3+
# 動作チェック用の召喚処理 使い終わったら消してもいいかも
4+
#
5+
# @user
6+
# @private
7+
8+
# 召喚
9+
data modify storage api: Argument.ID set value 2219
10+
function api:object/summon
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#> asset:object/2219.karmic_death/tick/
2+
#
3+
# Objectのtick時の処理
4+
#
5+
# @within asset:object/alias/2219/tick
6+
7+
# Tick加算
8+
scoreboard players add @s General.Object.Tick 1
9+
10+
# 演出
11+
execute if score @s General.Object.Tick matches 4 run playsound minecraft:entity.player.attack.nodamage hostile @a ~ ~ ~ 1 0.4
12+
execute if score @s General.Object.Tick matches 85 run playsound minecraft:item.trident.return hostile @a ~ ~ ~ 1 2
13+
execute if score @s General.Object.Tick matches 105 run function asset:object/2219.karmic_death/tick/shot
14+
15+
# 死
16+
execute if score @s General.Object.Tick matches 140 run function asset:object/2219.karmic_death/tick/kill
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#> asset:object/2219.karmic_death/tick/kill
2+
#
3+
#
4+
#
5+
# @within function asset:object/2219.karmic_death/tick/
6+
7+
#> private
8+
# @private
9+
#declare function animated_java:karmic/remove/this
10+
11+
# 消滅
12+
execute as @e[type=item_display,distance=..0.1,sort=nearest,limit=1] run function animated_java:karmic/remove/this
13+
14+
# ボスドロ
15+
# まだない
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#> asset:object/2219.karmic_death/tick/shot
2+
#
3+
#
4+
#
5+
# @within function asset:object/2219.karmic_death/tick/
6+
7+
# 演出
8+
particle dust 0.09 0.09 0.09 6 ~ ~ ~ 0 1 0 0 6
9+
particle dust 1 1 1 6 ~ ~ ~ 0.03 1.03 0.03 0 6
10+
particle dust 1 1 1 6 ~ ~ ~ 0.03 1.03 0.03 0 6
11+
12+
# 演出
13+
playsound minecraft:entity.zombie.attack_wooden_door hostile @a ~ ~ ~ 1 2
14+
playsound minecraft:entity.zombie.attack_wooden_door hostile @a ~ ~ ~ 1 0
15+
playsound minecraft:entity.generic.explode hostile @a ~ ~ ~ 0.8 2
16+
playsound minecraft:entity.firework_rocket.blast hostile @a ~ ~ ~ 1 0.5
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#> asset:object/alias/2219/register
2+
#
3+
# Objectのデータ指定処理のエイリアス
4+
#
5+
# @within asset_manager:object/summon/register.m
6+
7+
# 元の登録処理を呼び出す
8+
function asset:object/2219.karmic_death/register
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#> asset:object/alias/2219/summon
2+
#
3+
# Object召喚処理のエイリアス
4+
#
5+
# @within asset_manager:object/summon/summon.m
6+
7+
# 元の召喚処理を呼び出す
8+
function asset:object/2219.karmic_death/summon/
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#> asset:object/alias/2219/tick
2+
#
3+
# Tick時処理のエイリアス
4+
#
5+
# @within asset_manager:object/tick/tick.m
6+
7+
# 元のTick処理を呼び出す
8+
function asset:object/2219.karmic_death/tick/

0 commit comments

Comments
 (0)