generated from AttODao/fabric-example-mod
Page:
Morph JSON Combat and Attributes
Pages
Awkwardness
Body Attributes and Reach
Built in Instinct Values
Built in Movement Values
Built in Survival Values
Built in Vision Values
Client Config
Combat and Relations
Commands
Configuration Authority
Crafting and Interactions
Datapack Example
Datapack Overview
Datapack Reload and Merge
Equipment and Chests
Food and Exhaustion
Home
Initial Spawn
Instinct Behavior
Instinct Mode
Inventory
Item Tags
Jump Fall and Water
Morph JSON Combat and Attributes
Morph JSON Diet
Morph JSON Extras
Morph JSON Instinct Core
Morph JSON Instinct Hunting and Feeding
Morph JSON Inventory and Sleep
Morph JSON Movement
Morph JSON Vision
Movement and Turning
Persistence and Limits
Rendering Sounds and Vision
Server Config
Sleep and Abilities
Supported Forms
Synchronization and Reload
Variants and NBT
World Morph Lifecycle
No results
1
Morph JSON Combat and Attributes
AttODao edited this page 2026-08-13 18:37:39 +09:00
Table of Contents
Morph JSON: combatとattributes
combatは直接攻撃と生物関係、attributesは身体能力の数値を定義します。本能AIが狩る対象はinstinct.hunting.preyで別に定義します。
combat
| キー | 型 | 範囲 | 内容 |
|---|---|---|---|
attack_mode |
string | 下記 | 通常操作でMobを攻撃できる条件 |
attack_damage |
number | -1..2048 | 形態の基本攻撃力。-1は専用上書きを使わない |
predators |
string[] | - | この形態を獲物として狙うMobのEntity Type ID |
avoided_by |
string[] | - | この形態を見たとき回避するMobのEntity Type ID |
hostile_detection_multiplier |
number | 0..8 | 敵対Mobがこの形態を検出する距離倍率 |
attack_modeの値:
| 値 | 動作 |
|---|---|
none |
通常のMob直接攻撃を禁止 |
always |
Mob直接攻撃を許可 |
evil_rabbit |
ウサギの特殊条件を満たす場合だけ許可 |
未知のモードは組み込み値へ戻ります。predatorsとavoided_byの不正なIDは実際の照合に一致しません。
leap_attack
| キー | 型 | 範囲 | 内容 |
|---|---|---|---|
horizontal_speed |
number | 0..8 | 飛び掛かりの水平速度 |
vertical_speed |
number | 0..8 | 飛び掛かりの上向き速度 |
maximum_distance |
number | 0..128 | 飛び掛かりを使える最大距離 |
attributes
| キー | 型 | 範囲 | 内容 |
|---|---|---|---|
mining_speed |
number | 0..64 | 採掘速度倍率 |
maximum_food |
integer | 1..100 | 満腹度の最大値 |
block_reach_scale |
number | 0..8 | ブロック操作リーチ倍率 |
entity_reach_scale |
number | 0..8 | Entity操作・攻撃リーチ倍率 |
採掘速度と2種のリーチはサーバーConfigで形態差を無効化できます。満腹度上限は常に形態設定を使います。
例
{
"combat": {
"attack_mode": "always",
"attack_damage": 3.0,
"leap_attack": {
"horizontal_speed": 0.45,
"vertical_speed": 0.15,
"maximum_distance": 5
},
"predators": ["minecraft:wolf"],
"hostile_detection_multiplier": 0.75
},
"attributes": {
"mining_speed": 0.6,
"maximum_food": 12,
"block_reach_scale": 0.8,
"entity_reach_scale": 0.7
}
}
関係判定の詳細は戦闘と生物関係を参照してください。
Mob Life Wiki
第1章 基本仕様
第2章 ゲームプレイ仕様
第3章 データパック
- 概要
- movement
- diet
- vision
- combat / attributes
- inventory / sleep
- instinct 基本
- instinct 狩猟・採食
- outline / abilities / traits
- 食性タグ
- 最小例
- マージと再読込
第4章 Configと同期
第5章 資料