Skip to content

Commit

Permalink
テンプレート導入
Browse files Browse the repository at this point in the history
  • Loading branch information
EllaCoat committed Sep 19, 2024
1 parent 89b5daf commit efc9e09
Show file tree
Hide file tree
Showing 30 changed files with 199 additions and 29 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#> asset:mob/0393.labyria_first/_/death
#
# Mobの死亡時に実行されるfunction
#
# @within tag/function asset:mob/death

execute if data storage asset:context {id:393} run function asset:mob/0393.labyria_first/death/
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#> asset:mob/0393.labyria_first/_/hurt
#
# Mobの被ダメージに実行されるfunction
#
# @within tag/function asset:mob/hurt

execute if data storage asset:context {id:393} run function asset:mob/0393.labyria_first/hurt/
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#> asset:mob/0393.labyria_first/_/init
#
# Mobの召喚時に実行されるfunction
#
# @within tag/function asset:mob/initialize

execute if data storage asset:context {id:393} run function asset:mob/0393.labyria_first/init/
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#> asset:mob/0393.labyria_first/_/register
#
#
#
# @within tag/function asset:mob/register

execute if data storage asset:context {id:393} run function asset:mob/0393.labyria_first/register
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#> asset:mob/0393.labyria_first/_/summon
#
#
#
# @within tag/function asset:mob/summon

execute if data storage asset:context {id:393} run function asset:mob/0393.labyria_first/summon/
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#> asset:mob/0393.labyria_first/_/tick
#
# Mobが生きている間毎tick実行されるfunction
#
# @within tag/function asset:mob/tick

execute if data storage asset:context {id:393} run function asset:mob/0393.labyria_first/tick/
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#> asset:mob/0393.labyria_first/_index.d
# @private

#> tag
# @within function asset:mob/0393.labyria_first/**
#declare
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#> asset:mob/0393.labyria_first/death/
#
# Mobの死亡時の処理
#
# @within function asset:mob/0393.labyria_first/_/death
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#> asset:mob/0393.labyria_first/hurt/
#
# Mobの被ダメージ時の処理
#
# @within function asset:mob/0393.labyria_first/_/hurt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#> asset:mob/0393.labyria_first/init/
#
# Mob召喚時のInit処理
#
# @within function asset:mob/0393.labyria_first/_/init
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#> asset:mob/0393.labyria_first/load
#
# MOBに利用するスコアボード等の初期化処理
#
# @within tag/function asset:mob/load

#> 定義類はここに
# @within function asset:mob/0393.labyria_first/**

Check failure on line 8 in Asset/data/asset/functions/mob/0393.labyria_first/load.mcfunction

View workflow job for this annotation

GitHub Actions / lint

Expected more arguments but got nothing
scoreboard objectives add
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#> asset:mob/0393.labyria_first/register
#
# Mobのデータを指定
#
# @within function asset:mob/0393.labyria_first/_/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 393
# Type (string) Wikiを参照
data modify storage asset:mob Type set value ""
# 干渉可能か否か (boolean)

Check failure on line 17 in Asset/data/asset/functions/mob/0393.labyria_first/register.mcfunction

View workflow job for this annotation

GitHub Actions / lint

Expected more arguments but got nothing
data modify storage asset:mob Interferable set value
# 名前 (TextComponentString) (オプション)
# data modify storage asset:mob Name set value
# 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
# 胴 (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
# 攻撃力 (double) (オプション)
# data modify storage asset:mob AttackDamage set value
# 防御力 (double) (オプション) // 被ダメージがある程度大きい場合1ptにつき0.8%カット、小さい場合1ptにつき約4%カット 20pt以上は頭打ち
# data modify storage asset:mob Defense set value
# 特殊防御力 (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
# 魔法倍率 (float) (オプション)
# data modify storage asset:mob Resist.Magic set value
# 火倍率 (float) (オプション)
# data modify storage asset:mob Resist.Fire set value
# 水倍率 (float) (オプション)
# data modify storage asset:mob Resist.Water set value
# 雷倍率 (float) (オプション)
# data modify storage asset:mob Resist.Thunder set value

# フィールド
# data modify storage asset:mob Field set value {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#> asset:mob/0393.labyria_first/rejoin_process
#
# 使い方は必ずwikiを見ること
#
# @within tag/function asset:rejoin
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#> asset:mob/0393.labyria_first/summon/
#
# Mob召喚処理の呼び出し時に実行されるfunction
#
# @within asset:mob/0393.labyria_first/_/summon

# 元となるMobを召喚する
summon wither_skeleton ~ ~ ~ {Tags:["MobInit","AlwaysInvisible"],DeathLootTable:"asset:mob/death/0393.labyria_first",NoAI:1b,Silent:1b}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#> asset:mob/0393.labyria_first/summon/debug
#
# モブの動作チェック用の召喚処理 使い終わったら消してもいいかも
#
# @user
# @private

# モブを召喚
data modify storage api: Argument.ID set value 393
function api:mob/summon
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#> asset:mob/0393.labyria_first/tick/
#
# Mobのtick時の処理
#
# @within function asset:mob/0393.labyria_first/_/tick
20 changes: 20 additions & 0 deletions Asset/data/asset/loot_tables/mob/death/0393.labyria_first.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "loot_table",
"name": "asset:mob/death/abstract_detect_item",
"functions": [
{
"function": "set_nbt",
"tag": "{TSB:{ID:393}}"
}
]
}
]
}
]
}
4 changes: 1 addition & 3 deletions Asset/data/asset/tags/functions/mob/attack.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"values": [
"asset:mob/0392.ecual_first/_/attack",
"asset:mob/0391.axia_first/_/attack",
"asset:mob/0219.aorta/_/attack",
"asset:mob/0076.golden_watermelon_bomber/_/attack",
"asset:mob/0074.watermelon_bomber/_/attack",
Expand Down Expand Up @@ -78,4 +76,4 @@
"asset:mob/0080.fukotsu/attack/1.trigger",
"asset:mob/0150.contamination/attack/1.trigger"
]
}
}
3 changes: 2 additions & 1 deletion Asset/data/asset/tags/functions/mob/death.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"values": [
"asset:mob/0393.labyria_first/_/death",
"asset:mob/0399.void_spellbook/_/death",
"asset:mob/0402.drown_spellbook/_/death",
"asset:mob/0401.darkness_spellbook/_/death",
Expand Down Expand Up @@ -86,4 +87,4 @@
"asset:mob/0139.blast_eye/death/1.trigger",
"asset:mob/0186.ferocious_bee/death/1.trigger"
]
}
}
3 changes: 2 additions & 1 deletion Asset/data/asset/tags/functions/mob/hurt.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"values": [
"asset:mob/0393.labyria_first/_/hurt",
"asset:mob/0392.ecual_first/_/hurt",
"asset:mob/0391.axia_first/_/hurt",
"asset:mob/0265.dark_familiar/_/hurt",
Expand Down Expand Up @@ -74,4 +75,4 @@
"asset:mob/0156.infringement/hurt/1.trigger",
"asset:mob/0186.ferocious_bee/hurt/1.trigger"
]
}
}
1 change: 1 addition & 0 deletions Asset/data/asset/tags/functions/mob/initialize.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"values": [
"asset:mob/0393.labyria_first/_/init",
"asset:mob/0399.void_spellbook/_/init",
"asset:mob/0402.drown_spellbook/_/init",
"asset:mob/0401.darkness_spellbook/_/init",
Expand Down
1 change: 1 addition & 0 deletions Asset/data/asset/tags/functions/mob/load.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"values": [
"asset:mob/0393.labyria_first/load",
"asset:mob/0399.void_spellbook/load",
"asset:mob/0402.drown_spellbook/load",
"asset:mob/0401.darkness_spellbook/load",
Expand Down
1 change: 1 addition & 0 deletions Asset/data/asset/tags/functions/mob/register.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"values": [
"asset:mob/0393.labyria_first/_/register",
"asset:mob/0399.void_spellbook/_/register",
"asset:mob/0402.drown_spellbook/_/register",
"asset:mob/0401.darkness_spellbook/_/register",
Expand Down
1 change: 1 addition & 0 deletions Asset/data/asset/tags/functions/mob/summon.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"values": [
"asset:mob/0393.labyria_first/_/summon",
"asset:mob/0399.void_spellbook/_/summon",
"asset:mob/0402.drown_spellbook/_/summon",
"asset:mob/0401.darkness_spellbook/_/summon",
Expand Down
1 change: 1 addition & 0 deletions Asset/data/asset/tags/functions/mob/tick.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"values": [
"asset:mob/0393.labyria_first/_/tick",
"asset:mob/0399.void_spellbook/_/tick",
"asset:mob/0402.drown_spellbook/_/tick",
"asset:mob/0401.darkness_spellbook/_/tick",
Expand Down
1 change: 1 addition & 0 deletions Asset/data/asset/tags/functions/rejoin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"values": [
"asset:mob/0393.labyria_first/rejoin_process",
"asset:mob/0392.ecual_first/rejoin_process",
"asset:mob/0391.axia_first/rejoin_process",
"asset:artifact/1024.brave_rod/trigger/rejoin_process",
Expand Down

0 comments on commit efc9e09

Please sign in to comment.