-
Notifications
You must be signed in to change notification settings - Fork 2
Presets
PssbleTrngle edited this page Feb 27, 2022
·
2 revisions
Presets can be used to extract a block provider into a seperate file. This way, if a more complex block provider is used mulitple times or in multiple config files, it only needs to be defined once.
Presets can be used in config files using references
For example the preset with the id flowers
and the mod my_namespace
would be placed at
data/my_namespace/skygrid/presets/flowers.xml
While the overall syntax is the same as in config files, the root element of a preset is the <preset>
tag, containing a single block provider
<preset>
<block id="stone">
<side on="down">
<block id="lantern">
<set key="hanging" value="true">
</block>
</side>
</block>
</preset>