generated from AttODao/fabric-example-mod
Page:
Morph JSON Diet
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 Diet
AttODao edited this page 2026-08-13 18:37:39 +09:00
Table of Contents
Morph JSON: diet
dietは通常のアイテム摂食で受理する対象と、1回当たりの回復量を定義します。本能による獲物の捕食や草ブロックの採食はinstinct側の別設定です。
フィールド
| キー | 型 | 範囲 | 内容 |
|---|---|---|---|
foods |
string[] | - | アイテムIDまたは#付きアイテムタグID |
nutrition |
integer | 0..100 | 満腹度の回復量 |
saturation_modifier |
number | 0..10 | 回復量から飽和度を計算する倍率 |
foodsの全要素に同じnutritionとsaturation_modifierが使われます。アイテム自体が持つVanillaの食料値は使いません。
セレクター形式
{
"diet": {
"foods": [
"minecraft:apple",
"#mob_life:meat_food",
"#example:small_animal_food"
],
"nutrition": 5,
"saturation_modifier": 0.4
}
}
minecraft:appleのような値は単一アイテムに一致します。#mob_life:rabbit_foodのような値はアイテムタグに一致します。- 不正なIDや存在しないタグは一致しない対象として扱われ、形態JSON全体は無効になりません。
foods: []は通常のアイテム摂食をすべて禁止します。
組み込み形態は主に#mob_life:<形態ID>_foodを参照します。タグの内容と上書き方法は食性アイテムタグを参照してください。
満腹度上限との関係
回復後の満腹度はattributes.maximum_foodを上限とします。設定値が大きくても上限を越えて保持されません。食べられる条件、消耗、自然回復の詳細は食事と消耗を参照してください。
Mob Life Wiki
第1章 基本仕様
第2章 ゲームプレイ仕様
第3章 データパック
- 概要
- movement
- diet
- vision
- combat / attributes
- inventory / sleep
- instinct 基本
- instinct 狩猟・採食
- outline / abilities / traits
- 食性タグ
- 最小例
- マージと再読込
第4章 Configと同期
第5章 資料