User Tools

Site Tools


tutorial:1.15:jigsaw

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:1.15:jigsaw [2020/08/14 18:10] – ↷ Page moved from tutorial:jigsaw to tutorial:1.15:jigsaw emmanuelmesstutorial:1.15:jigsaw [2020/08/14 18:10] emmanuelmess
Line 4: Line 4:
 A repository with finished code can be found [[https://github.com/Draylar/jigsaw-example-mod|here for 1.14]], [[https://github.com/Draylar/jigsaw-example-mod/tree/1.15|here for 1.15]], [[https://github.com/EmmanuelMess/jigsaw-example-mod/tree/1.16.1|here for 1.16]]  A repository with finished code can be found [[https://github.com/Draylar/jigsaw-example-mod|here for 1.14]], [[https://github.com/Draylar/jigsaw-example-mod/tree/1.15|here for 1.15]], [[https://github.com/EmmanuelMess/jigsaw-example-mod/tree/1.16.1|here for 1.16]] 
  
-===== Creating a StructureFeature (for 1.15) =====+===== Creating a StructureFeature =====
  
 A ''StructureFeature'' is an advanced ''Feature'': it keeps track of its location and bounds, and also has the ability to generate itself from a structure file((While you can generate your StructureFeature from a ''.nbt'' file, most vanilla StructureFeatures simply override the ''generate'' method inside their given Piece class.)). If it helps, you can think of it as a ''Structure'' + ''Feature''. We'll need to create one for our jigsaw generated structure. To start, create a class that extends ''StructureFeature<DefaultFeatureConfig>''((AbstractTempleFeature is another option. It automatically spaces out the structures similar to the existing temples-- this logic is also used by villages.)). Feature naming convention is "structure name" + "Feature"; a few vanilla examples are ''EndCityFeature'', ''OceanRuinFeature'', and ''VillageFeature''. A ''StructureFeature'' is an advanced ''Feature'': it keeps track of its location and bounds, and also has the ability to generate itself from a structure file((While you can generate your StructureFeature from a ''.nbt'' file, most vanilla StructureFeatures simply override the ''generate'' method inside their given Piece class.)). If it helps, you can think of it as a ''Structure'' + ''Feature''. We'll need to create one for our jigsaw generated structure. To start, create a class that extends ''StructureFeature<DefaultFeatureConfig>''((AbstractTempleFeature is another option. It automatically spaces out the structures similar to the existing temples-- this logic is also used by villages.)). Feature naming convention is "structure name" + "Feature"; a few vanilla examples are ''EndCityFeature'', ''OceanRuinFeature'', and ''VillageFeature''.
tutorial/1.15/jigsaw.txt · Last modified: 2021/12/28 19:44 by banana