generated from AttODao/fabric-example-mod
Page:
Datapack Example
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
Datapack Example
AttODao edited this page 2026-08-13 18:37:39 +09:00
Table of Contents
最小データパック例
次はMinecraft 26.2でウサギ形態の一部を変更する最小例です。
ディレクトリ構造
mob-life-example/
├── pack.mcmeta
└── data/
└── mob_life/
└── mob_life/
└── morphs/
└── rabbit.json
pack.mcmeta
{
"pack": {
"description": "Mob Life custom morph settings",
"min_format": [107, 1],
"max_format": 107
}
}
この形式番号はMinecraft 26.2向けです。別のMinecraft版へ移植するときは、その版のデータパック形式に合わせて変更してください。
rabbit.json
{
"movement": {
"sprint_speed": 0.5,
"rabbit_hop": {
"sprint_cooldown": 5
}
},
"inventory": {
"hotbar_slots": 3
},
"outline": {
"range": 48
}
}
このJSONは次の4値だけを変更します。
- スプリント速度を
0.5にする - スプリント中の跳躍間隔を5 tickにする
- 使用可能なホットバーを3枠にする
- 輪郭走査を48ブロックにする
それ以外はウサギの組み込み値を維持します。導入後は/reloadを実行し、サーバーログのLoaded ... Mob Life morph configsとエラーを確認します。
食性タグも同じパックで変える場合は、たとえばdata/mob_life/tags/item/rabbit_food.jsonを追加します。形態JSON側の二重mob_life/mob_lifeとは配置が異なります。
Mob Life Wiki
第1章 基本仕様
第2章 ゲームプレイ仕様
第3章 データパック
- 概要
- movement
- diet
- vision
- combat / attributes
- inventory / sleep
- instinct 基本
- instinct 狩猟・採食
- outline / abilities / traits
- 食性タグ
- 最小例
- マージと再読込
第4章 Configと同期
第5章 資料