Minecraft Wiki
Advertisement
Clock JE3
このユーザーのページは内容の更新を必要とします。 
このユーザーのページを更新して、最近のアップデートや新たな情報を反映してください。
詳細:23w12a (and others) change.
Information icon
この項目はJava Edition限定の要素です。 

本記事では、データパックを用いて構造物をカスタマイズする方法と、それに必要な情報を記載する。

概論

構造物生成設定、構造物配置設定、構造物テンプレート、テンプレートプール、構造物処理子、処理子リスト

構造物は構造物生成設定ファイルによって定義される。このファイルは構造物がどのように生成されるかを決定しており、構造物のタイプによって設定内容や生成される構造物が異なっている。ユーザーは、構造物のタイプjigsawを使用することでジグソーブロックを介して自作の構造物を生成することができる。構造物生成設定ファイルで定義された構造物は、構造物配置設定ファイルでその構造物がどのようにワールドに配置されるかを設定することでワールドに生成されるようになる。

なお、構造物のタイプでjigsawを使用している場合には、ジグソーブロックから生成する構造物の候補一覧とその付属情報を記載したファイルであるテンプレートプールと、テンプレートプールの候補であり実際に生成される構造物のNBTデータである構造物テンプレートが必要である。またテンプレートプールから生成された構造物には構造物処理子を用いtえ一定の処理を施すことができ、この場合には構造物処理子リストを定義する必要がある。

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
  • desert_pyramid
  • end_city
    • To generate an end city with structure templates.
  • fortress
  • 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
  • mineshaft
  • nether_fossil
  • ocean_monument
  • ocean_ruin
    • To generate an underwater ruin with structure templates.
  • ruined_portal
  • shipwreck
    • To generate a shipwreck with structure templates.
  • stronghold
  • swamp_hut
  • woodland_mansion

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.
        • プロセッサー

Reference

Advertisement