generated from AttODao/fabric-example-mod
Page:
Morph JSON Inventory and Sleep
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 Inventory and Sleep
AttODao edited this page 2026-08-13 18:37:39 +09:00
Table of Contents
Morph JSON: inventoryとsleep
inventoryは通常所持欄の容量と装着チェストの追加容量、sleepは睡眠条件を定義します。
inventory
| キー | 型 | 範囲 | 内容 |
|---|---|---|---|
hotbar_slots |
integer | 0..9 | 使用可能なホットバースロット数 |
inventory_slots |
integer | 0..27 | 使用可能なメイン所持スロット数 |
chest_bonus_slots |
integer | 0..27 | チェスト装着中に通常所持欄へ加える枠数 |
実際の通常所持欄レイアウトは最低1スロットを確保します。このためhotbar_slotsやinventory_slotsに0を指定しても、完全に所持不能にはなりません。
chest_bonus_slotsが使われるには次の両方が必要です。
traitsにcan_equip_chestがある- BODYスロットへチェストを装着している
通常所持欄の制限はサーバーConfigで無効化できます。chest_bonus_slotsによる通常所持欄の増加とは別に、チェスト装着時は固定15枠の専用コンテナも開きます。超過品の扱いはインベントリ、専用コンテナの保存は装備と追加チェストを参照してください。
sleep
| キー | 型 | 範囲 | 内容 |
|---|---|---|---|
schedule |
string | normal / day / never |
睡眠可能な時間帯 |
without_bed |
boolean | - | 固有睡眠キーによるベッドなし睡眠を許可するか |
required_ticks |
integer | 0..24000 | 睡眠完了までの継続tick数 |
normalは通常のBedRuleに従い、dayは昼のベッドなし睡眠とベッド睡眠を許可して夜に拒否します。現行のneverは固有キーによるベッドなし睡眠だけを拒否し、通常ベッドを全面禁止しません。未知の値はその形態の組み込みスケジュールへ戻ります。
例
{
"inventory": {
"hotbar_slots": 4,
"inventory_slots": 12,
"chest_bonus_slots": 9
},
"sleep": {
"schedule": "day",
"without_bed": true,
"required_ticks": 160
},
"traits": ["can_equip_chest"]
}
組み込み値は組み込み値: 生存・所持を参照してください。
Mob Life Wiki
第1章 基本仕様
第2章 ゲームプレイ仕様
第3章 データパック
- 概要
- movement
- diet
- vision
- combat / attributes
- inventory / sleep
- instinct 基本
- instinct 狩猟・採食
- outline / abilities / traits
- 食性タグ
- 最小例
- マージと再読込
第4章 Configと同期
第5章 資料