Skip to content

Sub Schematics

Ryandw11 edited this page Jul 2, 2022 · 4 revisions

Sub-schematics are a way for you to spawn additional schematics in a structure. (Similar to a jigsaw block in vanilla Minecraft.)

In order to use sub-schematics you must tell custom structures what schematics a structure has access to. To do that see this page.

Sub Schematic Signs

To add sub structures you must place a sign specifying what structure to spawn or which structures to randomly pick from.

First Line: [schem] or [schematic]
Second Line: 0 or [0;2]
0 tells the plugin to spawn the first schematic in the list.
[0;2] tells the plugin to randomly pick a schematic in the range from 0 to 2. So the first, second, and third schematics in the list can spawn.
(The plugin starts counting at 0 when it comes to structures).

Example Images:

Image showcasing the information above.
Second image showcasing the information above.

Advanced Sub-Schematics

Advanced SubSchematics allows for a far more customizable system for spawning sub-schematics within structures. With Advanced SubSchematics you can define schematic categories and assign probability weights for each schematic within a category. You then specific on an Advanced SubSchematic sign which category you would like to spawn.

Advanced Sub-Schematic categories are defined in a structure's configuration file. Here is an example:

AdvancedSubSchematics:
  tree:
    tree1:
      Weight: 20
      PlaceAir: false
      UseRotation: false
      File: tree1.schem
    tree2:
      Weight: 20
      PlaceAir: false
      UseRotation: false
      File: tree2.schem
    tree3:
      Weight: 20
      PlaceAir: false
      UseRotation: false
      File: tree3.schem
    tree4:
      Weight: 20
      PlaceAir: false
      UseRotation: false
      File: tree4.schem
    tree5:
      Weight: 10
      PlaceAir: false
      UseRotation: false
      File: tree5.schem
  other:
    demo:
      Weight: 20
      PlaceAir: false
      UseRotation: false
      File: demo.schem

In the example there are two categories: tree and other.
The tree category has 5 schematics that can spawn. Each schematic is given a name, weight, and properties. Here is the schematic tree1 in the tree category:

tree1:
  Weight: 20
  PlaceAir: false
  UseRotation: false
  File: tree1.schem

Weight: Works the same way as the weight system for the loot tables. Higher number means a higher probability of spawning.
PlaceAir: If the schematic should be placed with air blocks.
UseRotation: If the schematic should have the same rotation as the sign that is spawning it.
File: The schematic file to spawn.

Sign Layout

[advschem]
{category}

Example Image

Example advance schematic sign.

Clone this wiki locally