本記事では、データパックを用いて構造物をカスタマイズする方法と、それに必要な情報を記載する。
概論
構造物生成設定、構造物配置設定、構造物テンプレート、テンプレートプール、構造物処理子、処理子リスト
構造物は構造物生成設定ファイルによって定義される。このファイルは構造物を
Structure Feature Type
A structure feature type determines how and what to generate.
List
All structure feature types and their roles are listed below:
buried_treasure- To generate a buried treasure with hardcode.
desert_pyramid- To generate a desert temple with hardcode.
end_city- To generate an end city with structure templates.
fortress- To generate a nether fortress with hardcode.
igloo- To generate an igloo with structure templates.
jigsaw- To generate a structure feature using custom structure templates. Often used to generate large structures by connecting multiple structural templates via jigsaw blocks.
jungle_temple- To generate a jungle temple with hardcode.
mineshaft- To generate a mineshaft with hardcode.
nether_fossil- To generate a nether fossil with structure templates.
ocean_monument- To generate an ocean monument with hardcode.
ocean_ruin- To generate an underwater ruin with structure templates.
ruined_portal- To generate a ruined portal with structure templates.
shipwreck- To generate a shipwreck with structure templates.
stronghold- To generate a stronghold with hardcode.
swamp_hut- To generate a swamp hut with hardcode.
woodland_mansion- To generate a woodland mansion with structure templates.
Structure Template
Structure template refers to a structure file, which stores the template used to generate structure features. For structures of jigsaw type, the resource locations of the structure templates is customized. While for other structure features, such as end city, igloo, etc., the resource locations of structure templates are hardcoded.
Structure Pool
A structure pool (aka. jigsaw pool, template pool) groups multiple structure templates or placed features together to randomly select one of them to generate. Used in structures of type jigsaw. Stored as JSON files within a data pack in the data/<namespace>/worldgen/template_pool.
JSON Format
Custom world generation/template pool
Configured Structure Feature
A structure feature type determines how to generate a structure feature, but the specific details need to be configured additionally. After configured, it is called a configured structure feature, or simply called a structure feature or a structure.
Configured structure features are stored as JSON files within a data pack in the path data/<namespace>/worldgen/structure.
JSON Format
Custom world generation/structure
Structure Set
A structure set is used to place structures in given locations, stored as JSON files within a data pack in the path data/<namespace>/worldgen/structure_set.
JSON Format
Custom world generation/structure set
Processor List
A processor list is a list of processors used to affect blocks in structures, stored as JSON files within a data pack in the path data/<namespace>/worldgen/processor_list.
JSON Format
A processor list can be a list, or an object that contains a list.
A list:
- : A list of processors.
- プロセッサー
Or an object:
- : An object of processor list.
- processors: A list of processors.
- : A processor object.
- プロセッサー
- : A processor object.
- processors: A list of processors.
Reference
| 要素 |
| ||
|---|---|---|---|
| データパック |
| ||
| チュートリアル | |||
| デモ版 | |||||||
|---|---|---|---|---|---|---|---|
| 開発 |
| ||||||
| 技術的情報 |
| ||||||
| マルチプレイ | |||||||
| ゲームのカスタマイズ | |||||||