Skip to content

Commit fb00a45

Browse files
mokkkkLapis-LJAChenCMDhaiiro2gou
authored
🍱 [Mob380] ハルクレアV3作成 (#501)
Co-authored-by: Lapis-LJA <[email protected]> Co-authored-by: Chen <[email protected]> Co-authored-by: はいいろ <[email protected]>
1 parent 102cec1 commit fb00a45

File tree

245 files changed

+4451
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+4451
-2
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
#> asset:mob/0380.haruclaire_v3/_index.d
2+
# @private
3+
4+
#> tag
5+
# @within function asset:mob/0380.haruclaire_v3/**
6+
# - AJ自動生成ファンクション
7+
#declare function animated_java:haruclaire_aj/summon
8+
#declare function animated_java:haruclaire_aj/variants/default/apply
9+
#declare function animated_java:haruclaire_aj/variants/blink/apply
10+
#declare function animated_java:haruclaire_aj/variants/damage/apply
11+
#declare function animated_java:haruclaire_aj/variants/jito/apply
12+
#declare function animated_java:haruclaire_aj/animations/pause_all
13+
#declare function animated_java:haruclaire_aj/animations/0_0_start/tween
14+
#declare function animated_java:haruclaire_aj/animations/1_0_rod_idle/tween
15+
#declare function animated_java:haruclaire_aj/animations/3_0_rod_move/tween
16+
#declare function animated_java:haruclaire_aj/animations/4_0_rod_icewall/tween
17+
#declare function animated_java:haruclaire_aj/animations/5_0_rod_icebullet/tween
18+
#declare function animated_java:haruclaire_aj/animations/6_0_rod_icefang/tween
19+
#declare function animated_java:haruclaire_aj/animations/6_1_rod_super_icebullet/tween
20+
#declare function animated_java:haruclaire_aj/animations/7_0_rod_icespear/tween
21+
#declare function animated_java:haruclaire_aj/animations/7_1_rod_iceray/tween
22+
#declare function animated_java:haruclaire_aj/animations/8_0_rod_punch/tween
23+
#declare function animated_java:haruclaire_aj/animations/9_0_rod_laser/tween
24+
#declare function animated_java:haruclaire_aj/remove/all
25+
#
26+
# - AJ自動生成タグ
27+
#declare tag aj.haruclaire_aj.animation.0_0_start.playing
28+
#declare tag aj.haruclaire_aj.animation.1_0_rod_idle.playing
29+
#declare tag aj.haruclaire_aj.animation.3_0_rod_move.playing
30+
#declare tag aj.haruclaire_aj.animation.4_0_rod_icewall.playing
31+
#declare tag aj.haruclaire_aj.animation.5_0_rod_icebullet.playing
32+
#declare tag aj.haruclaire_aj.animation.6_0_rod_icefang.playing
33+
#declare tag aj.haruclaire_aj.animation.6_1_rod_super_icebullet.playing
34+
#declare tag aj.haruclaire_aj.animation.8_0_rod_punch.playing
35+
#declare tag aj.haruclaire_aj.animation.9_0_rod_laser.playing
36+
#
37+
# - AJ自動生成スコア
38+
#declare objective aj.0_0_start.frame
39+
#declare objective aj.1_0_rod_idle.frame
40+
#declare objective aj.3_0_rod_move.frame
41+
#declare objective aj.4_0_rod_icewall.frame
42+
#declare objective aj.5_0_rod_icebullet.frame
43+
#declare objective aj.6_0_rod_icefang.frame
44+
#declare objective aj.6_1_rod_super_icebullet.frame
45+
#declare objective aj.8_0_rod_punch.frame
46+
#declare objective aj.9_0_rod_laser.frame
47+
#
48+
# - 汎用
49+
#declare tag AK.EntityRoot 本体
50+
#declare tag AK.ModelRoot かわいいハルクレアのガワ
51+
#declare tag AK.MainTarget 狙っている対象
52+
#declare tag AK.Debug デバッグ中
53+
#
54+
# - スキル
55+
#declare tag AK.Skill.Start 登場
56+
#declare tag AK.Skill.Move 移動
57+
#declare tag AK.Skill.IceBullet アイスバレット・エトワール
58+
#declare tag AK.Skill.IceWall アイスウォール
59+
#declare tag AK.Skill.IceSiege アイスシージ
60+
#declare tag AK.Skill.IceSpear アイススピア
61+
#declare tag AK.Skill.Punch ぶんぶんぶん殴り
62+
#declare tag AK.Skill.SuperIceBullet アイスバレット・ソレイユ
63+
#declare tag AK.Skill.IceLaser アイスレーザー
64+
#declare tag AK.Skill.IcePillar アイスピラー
65+
#
66+
# - 他Entity
67+
#declare tag AK.CenterPosition 召喚位置
68+
#declare tag AK.IceSpear.Spread アイススピア召喚位置
69+
#
70+
# - 一時タグ
71+
#declare tag AK.Temp.Ground 接地用
72+
#declare tag AK.Temp.Hit ヒット確認用
73+
#declare tag AK.Temp.Right 角度変更用
74+
#declare tag AK.Temp.AttackPosition 攻撃位置保持用
75+
#declare tag AK.Temp.AttackPosition.Hard 攻撃位置保持用
76+
#declare tag AK.Temp.AttackRotation 攻撃角度保持用
77+
#
78+
# - 他オブジェクト
79+
#declare tag AK.Object ハルクレアオブジェクト共通タグ
80+
#declare tag 2155.Object アイスレーザー
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#> asset:mob/0380.haruclaire_v3/death/
2+
#
3+
# Mobの死亡時の処理
4+
#
5+
# @within function asset:mob/alias/380/death
6+
7+
# 継承元の処理実行
8+
function asset:mob/super.death
9+
10+
# 中心点消去
11+
kill @e[type=marker,tag=AK.CenterPosition]
12+
13+
# その他消去処理
14+
function asset:mob/0380.haruclaire_v3/tick/util/remove_all_tag
15+
16+
# Ajモデル消去
17+
# LocatorEntityは使用予定は無い
18+
# execute as @e[type=item_display,tag=AK.ModelRoot] run function animated_java:haruclaire_aj/as_own_locator_entities {command:'function asset:mob/0410.heiloang/death/kill_hitbox'}
19+
function animated_java:haruclaire_aj/remove/all
20+
21+
# オブジェクト消去
22+
execute as @e[tag=AK.Object] on passengers run kill @s
23+
kill @e[tag=AK.Object]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#> asset:mob/0380.haruclaire_v3/hurt/
2+
#
3+
# Mobのダメージ時の処理
4+
#
5+
# @within function asset:mob/alias/380/hurt
6+
7+
# 継承元の処理実行
8+
function asset:mob/super.hurt
9+
10+
# 演出
11+
playsound entity.generic.hurt hostile @a ~ ~ ~ 1 1
12+
particle firework ~ ~1 ~ 0 0 0 0.3 3
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#> asset:mob/0380.haruclaire_v3/init/
2+
#
3+
# Mobのinit時の処理
4+
#
5+
# @within asset:mob/alias/380/init
6+
7+
# 継承元の処理実行
8+
function asset:mob/super.init
9+
10+
# 独自init処理
11+
# 中心点設置
12+
summon marker ~ ~ ~ {Tags:["AK.CenterPosition"]}
13+
execute as @e[type=marker,tag=AK.CenterPosition] at @s run tp @s ~ ~ ~ 0 0
14+
# AJ関連初期化
15+
function asset:mob/0380.haruclaire_v3/init/animated_java
16+
17+
# スコア初期化
18+
scoreboard players set @s AK.ActionCount 0
19+
20+
# 登場演出開始
21+
tag @s add AK.Skill.Start
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#> asset:mob/0380.haruclaire_v3/init/animated_java
2+
#
3+
# Mobのinit時の処理
4+
#
5+
# @within asset:mob/0380.haruclaire_v3/init/
6+
7+
# AjModelの召喚
8+
execute at @s run function animated_java:haruclaire_aj/summon {args:{}}
9+
# AjModelのパーツに以下処理を実行する
10+
execute as @e[type=item_display,tag=AK.ModelRoot] run data merge entity @s {view_range:16f,width:0f,height:0f,teleport_duration:2}
11+
execute as @e[type=item_display,tag=AK.ModelRoot] on passengers if entity @s[type=item_display] run data merge entity @s {view_range:16f,width:0f,height:0f,teleport_duration:2}
12+
# 登場モーション再生
13+
execute as @e[type=item_display,tag=AK.ModelRoot] at @s run function animated_java:haruclaire_aj/animations/0_0_start/tween {duration:1, to_frame: 1}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#> asset:mob/0380.haruclaire_v3/load
2+
#
3+
# Mobに利用するスコアボード等の初期化処理
4+
#
5+
# @within tag/function asset:mob/load
6+
7+
#> 定義類はここに
8+
# @within function asset:mob/0380.haruclaire_v3/**
9+
scoreboard objectives add AK.EventTimer dummy
10+
scoreboard objectives add AK.Dummy dummy
11+
scoreboard objectives add AK.ActionCount dummy
12+
scoreboard objectives add AK.Counter dummy
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#> asset:mob/0380.haruclaire_v3/register
2+
#
3+
# Mobのデータを指定
4+
#
5+
# @within function asset:mob/alias/380/register
6+
7+
#継承 (int) (オプション)
8+
data modify storage asset:mob Extends append value 2000
9+
function asset:mob/extends
10+
# 他のモブに継承されることを許可するか (boolean) (オプション)
11+
# data modify storage asset:mob ExtendsSafe set value
12+
# 継承されることを前提とした、抽象的なモブであるかどうか(boolean)
13+
data modify storage asset:mob IsAbstract set value false
14+
# ID (int)
15+
data modify storage asset:mob ID set value 380
16+
# Type (string) Wikiを参照
17+
data modify storage asset:mob Type set value "Enemy.Boss"
18+
# 干渉可能か否か (boolean)
19+
data modify storage asset:mob Interferable set value true
20+
# 名前 (TextComponentString) (オプション)
21+
data modify storage asset:mob Name set value '{"text":"ハルクレア","color":"aqua"}'
22+
# Mobの説明文 (TextComponentString[]) (オプション)
23+
# data modify storage asset:mob Lore set value
24+
# 体力 (double) (オプション)
25+
data modify storage asset:mob Health set value 10000
26+
# 属性倍率 // 1.0fで100% 最低でも25%は軽減されずに入る
27+
# 物理倍率 (float) (オプション)
28+
data modify storage asset:mob Resist.Physical set value 1.0f
29+
# 魔法倍率 (float) (オプション)
30+
data modify storage asset:mob Resist.Magic set value 1.0f
31+
# 火倍率 (float) (オプション)
32+
data modify storage asset:mob Resist.Fire set value 1.0f
33+
# 水倍率 (float) (オプション)
34+
data modify storage asset:mob Resist.Water set value 0.6f
35+
# 雷倍率 (float) (オプション)
36+
data modify storage asset:mob Resist.Thunder set value 0.8f
37+
# フィールド
38+
# data modify storage asset:mob Field.myValue set value
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#> asset:mob/0380.haruclaire_v3/remove/
2+
#
3+
# 天使が居なくなる際に実行される処理
4+
#
5+
# @within asset:mob/alias/380/remove
6+
7+
# 継承元の処理実行
8+
function asset:mob/super.remove
9+
10+
# 中心点消去
11+
kill @e[type=marker,tag=AK.CenterPosition]
12+
13+
# その他消去処理
14+
function asset:mob/0380.haruclaire_v3/tick/util/remove_all_tag
15+
16+
# Ajモデル消去
17+
# LocatorEntityは使用予定は無い
18+
# execute as @e[type=item_display,tag=AK.ModelRoot] run function animated_java:haruclaire_aj/as_own_locator_entities {command:'function asset:mob/0410.heiloang/death/kill_hitbox'}
19+
function animated_java:haruclaire_aj/remove/all
20+
21+
# オブジェクト消去
22+
execute as @e[tag=AK.Object] on passengers run kill @s
23+
kill @e[tag=AK.Object]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#> asset:mob/0380.haruclaire_v3/summon/
2+
#
3+
# Object召喚処理の呼び出し時に実行されるfunction
4+
#
5+
# @within asset:mob/alias/380/summon
6+
7+
# 元となるEntityを召喚する
8+
summon wither_skeleton ~ ~ ~ {Tags:["MobInit","AlwaysInvisible","AK.EntityRoot"],NoAI:1b,Silent:1b,DeathLootTable:"minecraft:empty"}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#> asset:mob/0380.haruclaire_v3/summon/debug
2+
#
3+
# 動作チェック用の召喚処理 使い終わったら消してもいいかも
4+
#
5+
# @user
6+
# @private
7+
8+
# 召喚
9+
data modify storage api: Argument.ID set value 380
10+
function api:mob/summon

0 commit comments

Comments
 (0)