-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
341 additions
and
43 deletions.
There are no files selected for viewing
7 changes: 0 additions & 7 deletions
7
Asset/data/asset/functions/mob/0397.crystal_turret/_/death.mcfunction
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
Asset/data/asset/functions/mob/0397.crystal_turret/death/.mcfunction
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
Asset/data/asset/functions/mob/0397.crystal_turret/death/kill.mcfunction
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
Asset/data/asset/functions/mob/0400.explosion_spellbook/_index.d.mcfunction
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/mob/0401.darkness_spellbook/_/death.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:mob/0401.darkness_spellbook/_/death | ||
# | ||
# Mobの死亡時に実行されるfunction | ||
# | ||
# @within tag/function asset:mob/death | ||
|
||
execute if data storage asset:context {id:401} run function asset:mob/0401.darkness_spellbook/death/ |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/mob/0401.darkness_spellbook/_/init.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:mob/0401.darkness_spellbook/_/init | ||
# | ||
# Mobの召喚時に実行されるfunction | ||
# | ||
# @within tag/function asset:mob/initialize | ||
|
||
execute if data storage asset:context {id:401} run function asset:mob/0401.darkness_spellbook/init/ |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/mob/0401.darkness_spellbook/_/register.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:mob/0401.darkness_spellbook/_/register | ||
# | ||
# | ||
# | ||
# @within tag/function asset:mob/register | ||
|
||
execute if data storage asset:context {id:401} run function asset:mob/0401.darkness_spellbook/register |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/mob/0401.darkness_spellbook/_/summon.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:mob/0401.darkness_spellbook/_/summon | ||
# | ||
# | ||
# | ||
# @within tag/function asset:mob/summon | ||
|
||
execute if data storage asset:context {id:401} run function asset:mob/0401.darkness_spellbook/summon/ |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/mob/0401.darkness_spellbook/_/tick.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:mob/0401.darkness_spellbook/_/tick | ||
# | ||
# Mobが生きている間毎tick実行されるfunction | ||
# | ||
# @within tag/function asset:mob/tick | ||
|
||
execute if data storage asset:context {id:401} run function asset:mob/0401.darkness_spellbook/tick/ |
13 changes: 13 additions & 0 deletions
13
Asset/data/asset/functions/mob/0401.darkness_spellbook/_index.d.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#> asset:mob/0401.darkness_spellbook/_index.d | ||
# @private | ||
|
||
#> tag | ||
# @within function asset:mob/0401.darkness_spellbook/** | ||
#declare tag B5.Temp | ||
#declare tag B5.Bullet | ||
#declare tag B5.Landing | ||
#declare tag B5.Marker | ||
|
||
#> score | ||
# @within function asset:mob/0401.darkness_spellbook/** | ||
#declare score_holder $B5.Temp |
21 changes: 21 additions & 0 deletions
21
Asset/data/asset/functions/mob/0401.darkness_spellbook/ai/bullet/0.summon.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#> asset:mob/0401.darkness_spellbook/ai/bullet/0.summon | ||
# | ||
# 弾幕 召喚 | ||
# | ||
# @within function asset:mob/0401.darkness_spellbook/tick/ | ||
|
||
# UUIDスコア移し | ||
scoreboard players operation $B5.Temp B5.UUID = @s MobUUID | ||
|
||
# 元となるMobを召喚する | ||
summon item_display ~ ~ ~ {Tags:["B5.Temp","B5.Bullet","AllowProcessingCommonTag","AutoKillWhenDiePassenger"],billboard:"center",teleport_duration:1,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0f,0f,0f]},item:{id:"leather_horse_armor",Count:1b,tag:{display:{color:848},CustomModelData:20370}},Passengers:[{id:"area_effect_cloud",Particle:"block air",Radius:0f,Duration:2}]} | ||
|
||
# 初期化処理 | ||
execute positioned ~ ~1.5 ~ facing entity @p[tag=!PlayerShouldInvulnerable,distance=..100] eyes run tp @e[type=item_display,tag=B5.Temp,distance=..2] ^ ^ ^ ~ ~ | ||
execute as @e[type=item_display,tag=B5.Temp,distance=..2] at @s run function asset:mob/0401.darkness_spellbook/ai/bullet/1.init | ||
|
||
# リセット | ||
scoreboard players reset $B5.Temp B5.UUID | ||
|
||
# 時間リセット | ||
execute store result score @s B5.Tick run random value 0..40 |
19 changes: 19 additions & 0 deletions
19
Asset/data/asset/functions/mob/0401.darkness_spellbook/ai/bullet/1.init.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#> asset:mob/0401.darkness_spellbook/ai/bullet/1.init | ||
# | ||
# 初期化処理 | ||
# | ||
# @within function asset:mob/0401.darkness_spellbook/ai/bullet/0.summon | ||
|
||
# スコア初期化 | ||
scoreboard players set @s B5.Tick 0 | ||
|
||
# UUIDスコア紐づけ | ||
scoreboard players operation @s B5.UUID = $B5.Temp B5.UUID | ||
|
||
# 発射音 | ||
playsound block.sculk_sensor.clicking hostile @a ~ ~ ~ 0.8 0 0 | ||
playsound ogg:block.amethyst.step6 hostile @a[distance=..32] ~ ~ ~ 1 2 0 | ||
playsound block.respawn_anchor.deplete hostile @a[distance=..32] ~ ~ ~ 1 2 0 | ||
|
||
# リセット | ||
tag @s remove B5.Temp |
36 changes: 36 additions & 0 deletions
36
Asset/data/asset/functions/mob/0401.darkness_spellbook/ai/bullet/2.tick.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#> asset:mob/0401.darkness_spellbook/ai/bullet/2.tick | ||
# | ||
# 弾幕 Tick処理 | ||
# | ||
# @within function asset:mob/0401.darkness_spellbook/tick/ | ||
|
||
# スコア上昇 | ||
scoreboard players add @s B5.Tick 1 | ||
|
||
# TP | ||
tp @s ^ ^ ^0.3 ~ ~ | ||
|
||
# パーティクル | ||
particle fishing ~ ~ ~ 0.2 0.2 0.2 0.05 1 force @a[distance=..32] | ||
particle minecraft:dust 0.07 0.10 0.55 1 ~ ~ ~ 0.2 0.2 0.2 0 1 force @a[distance=..32] | ||
|
||
# 暗闇を与える | ||
execute at @s positioned ~-0.5 ~-0.5 ~-0.5 as @a[tag=!PlayerShouldInvulnerable,dx=0] run tag @s add B5.Landing | ||
execute as @a[tag=B5.Landing,distance=..3] run function asset:mob/0401.darkness_spellbook/ai/bullet/3.cast | ||
|
||
# タグ付け | ||
execute if entity @a[tag=B5.Landing,distance=..3] run tag @s add B5.Landing | ||
|
||
# リセット | ||
tag @a[tag=B5.Landing,distance=..3] remove B5.Landing | ||
|
||
# Age弄り | ||
execute on passengers run data modify entity @s Age set value 0 | ||
|
||
# 表示 | ||
execute if score @s B5.Tick matches 3 run data modify entity @s transformation.scale set value [0.5f,0.5f,0.5f] | ||
|
||
# キル | ||
execute if score @s B5.Tick matches 121 run kill @s | ||
execute at @s unless block ^ ^ ^ #lib:no_collision run kill @s | ||
execute if entity @s[tag=B5.Landing] run kill @s |
10 changes: 10 additions & 0 deletions
10
Asset/data/asset/functions/mob/0401.darkness_spellbook/ai/bullet/3.cast.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#> asset:mob/0401.darkness_spellbook/ai/bullet/3.cast | ||
# | ||
# 着弾処理 | ||
# | ||
# @within function asset:mob/0401.darkness_spellbook/ai/bullet/2.tick | ||
|
||
|
||
# 暗闇エフェクト付与 | ||
data modify storage api: Argument set value {ID:124,Duration:100} | ||
function api:entity/mob/effect/give |
11 changes: 11 additions & 0 deletions
11
Asset/data/asset/functions/mob/0401.darkness_spellbook/death/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#> asset:mob/0401.darkness_spellbook/death/ | ||
# | ||
# Mobの死亡時の処理 | ||
# | ||
# @within function asset:mob/0401.darkness_spellbook/_/death | ||
|
||
# 死ぬ音 | ||
playsound minecraft:entity.zombie.break_wooden_door hostile @a ~ ~ ~ 0.6 0.7 | ||
|
||
# キル処理 | ||
execute as @e[type=marker,tag=B5.Marker,distance=..5] on vehicle if entity @s[nbt={Health:0f}] on passengers run function asset:mob/0401.darkness_spellbook/death/kill |
15 changes: 15 additions & 0 deletions
15
Asset/data/asset/functions/mob/0401.darkness_spellbook/death/kill.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#> asset:mob/0401.darkness_spellbook/death/kill | ||
# | ||
# キル処理 | ||
# | ||
# @within function asset:mob/0401.darkness_spellbook/death/ | ||
|
||
# 弾幕キル | ||
execute on vehicle run scoreboard players operation $B5.Temp B5.UUID = @s MobUUID | ||
execute as @e[type=marker,tag=B5.Marker,distance=..100] if score @s B5.UUID = $B5.Temp B5.UUID run kill @s | ||
|
||
# キル | ||
kill @s | ||
|
||
# リセット | ||
scoreboard players reset $B5.Temp B5.UUID |
17 changes: 17 additions & 0 deletions
17
Asset/data/asset/functions/mob/0401.darkness_spellbook/init/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#> asset:mob/0401.darkness_spellbook/init/ | ||
# | ||
# Mob召喚時のInit処理 | ||
# | ||
# @within function asset:mob/0401.darkness_spellbook/_/init | ||
|
||
# スコア設定 | ||
scoreboard players set @s B5.Tick 0 | ||
|
||
# 見た目召喚 | ||
summon marker ~ ~ ~ {Tags:["B5.Marker","B5.Temp","AllowProcessingCommonTag","AutoKillWhenDieVehicle"]} | ||
|
||
# 乗せる | ||
ride @e[type=marker,tag=B5.Marker,tag=B5.Temp,distance=..0.01,limit=1] mount @s | ||
|
||
# タグ外し | ||
execute on passengers run tag @s remove B5.Temp |
10 changes: 10 additions & 0 deletions
10
Asset/data/asset/functions/mob/0401.darkness_spellbook/load.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#> asset:mob/0401.darkness_spellbook/load | ||
# | ||
# MOBに利用するスコアボード等の初期化処理 | ||
# | ||
# @within tag/function asset:mob/load | ||
|
||
#> 定義類はここに | ||
# @within function asset:mob/0401.darkness_spellbook/** | ||
scoreboard objectives add B5.Tick dummy | ||
scoreboard objectives add B5.UUID dummy |
68 changes: 68 additions & 0 deletions
68
Asset/data/asset/functions/mob/0401.darkness_spellbook/register.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#> asset:mob/0401.darkness_spellbook/register | ||
# | ||
# Mobのデータを指定 | ||
# | ||
# @within function asset:mob/0401.darkness_spellbook/_/register | ||
|
||
# 継承 (int) (オプション) | ||
# data modify storage asset:mob Extends append value | ||
# function asset:mob/extends | ||
|
||
# 他のモブに継承されることを許可するか (boolean) (オプション) | ||
# data modify storage asset:mob ExtendsSafe set value true | ||
# ID (int) | ||
data modify storage asset:mob ID set value 401 | ||
# Type (string) Wikiを参照 | ||
data modify storage asset:mob Type set value "Enemy" | ||
# 干渉可能か否か (boolean) | ||
data modify storage asset:mob Interferable set value true | ||
# 名前 (TextComponentString) (オプション) | ||
data modify storage asset:mob Name set value '{"text":"爆発の魔導書","color":"#000350"}' | ||
# Mobの説明文 (TextComponentString[]) (オプション) | ||
# data modify storage asset:mob Lore set value | ||
# 武器 | ||
# メインハンド (Compound(Item)) (オプション) | ||
# data modify storage asset:mob Weapon.Mainhand set value | ||
# オフハンド (Compound(Item)) (オプション) | ||
# data modify storage asset:mob Weapon.Offhand set value | ||
# 武器ドロップ率 ([float, float]) (オプション) | ||
# data modify storage asset:mob WeaponDropChances set value | ||
# 防具 | ||
# 頭 (Compound(Item)) (オプション) | ||
data modify storage asset:mob Armor.Head set value {id:"leather_horse_armor",Count:1b,tag:{CustomModelData:20138,display:{color:848}}} | ||
# 胴 (Compound(Item)) (オプション) | ||
# data modify storage asset:mob Armor.Chest set value | ||
# 脚 (Compound(Item)) (オプション) | ||
# data modify storage asset:mob Armor.Legs set value | ||
# 足 (Compound(Item)) (オプション) | ||
# data modify storage asset:mob Armor.Feet set value | ||
# 防具ドロップ率 ([float, float]) (オプション) | ||
# data modify storage asset:mob ArmorDropChances set value | ||
# 体力 (double) (オプション) | ||
data modify storage asset:mob Health set value 800 | ||
# 攻撃力 (double) (オプション) | ||
# data modify storage asset:mob AttackDamage set value | ||
# 防御力 (double) (オプション) // 被ダメージがある程度大きい場合1ptにつき0.8%カット、小さい場合1ptにつき約4%カット 20pt以上は頭打ち | ||
data modify storage asset:mob Defense set value 0 | ||
# 特殊防御力 (double) (オプション) // 4pointにつきダメージを大きく減らす | ||
# data modify storage asset:mob SpecialDefense set value | ||
# 移動速度 (double) (オプション) | ||
# data modify storage asset:mob Speed set value | ||
# 索敵範囲 (double) (オプション) | ||
# data modify storage asset:mob FollowRange set value | ||
# ノックバック耐性 (double) (オプション) | ||
# data modify storage asset:mob KnockBackResist set value | ||
# 属性倍率 // 1.0fで100% 最低でも25%は軽減されずに入る | ||
# 物理倍率 (float) (オプション) | ||
data modify storage asset:mob Resist.Physical set value 1 | ||
# 魔法倍率 (float) (オプション) | ||
data modify storage asset:mob Resist.Magic set value 0 | ||
# 火倍率 (float) (オプション) | ||
data modify storage asset:mob Resist.Fire set value 1 | ||
# 水倍率 (float) (オプション) | ||
data modify storage asset:mob Resist.Water set value 1 | ||
# 雷倍率 (float) (オプション) | ||
data modify storage asset:mob Resist.Thunder set value 1 | ||
|
||
# フィールド | ||
# data modify storage asset:mob Field set value {} |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/mob/0401.darkness_spellbook/summon/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#> asset:mob/0401.darkness_spellbook/summon/ | ||
# | ||
# Mob召喚処理の呼び出し時に実行されるfunction | ||
# | ||
# @within asset:mob/0401.darkness_spellbook/_/summon | ||
|
||
# 元となるMobを召喚する | ||
summon zombie ~ ~ ~ {NoAI:1b,Silent:1b,Tags:["MobInit","AlwaysInvisible"],DeathLootTable:"asset:mob/death/0401.darkness_spellbook"} |
10 changes: 10 additions & 0 deletions
10
Asset/data/asset/functions/mob/0401.darkness_spellbook/summon/debug.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#> asset:mob/0401.darkness_spellbook/summon/debug | ||
# | ||
# モブの動作チェック用の召喚処理 使い終わったら消してもいいかも | ||
# | ||
# @user | ||
# @private | ||
|
||
# モブを召喚 | ||
data modify storage api: Argument.ID set value 401 | ||
function api:mob/summon |
Oops, something went wrong.