User Tools

Site Tools


tutorial:jigsaw

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:jigsaw [2020/08/15 13:06] emmanuelmesstutorial:jigsaw [2021/12/30 05:47] (current) – Fix link directing at Forge version, not Fabric redgrapefruit
Line 2: Line 2:
 Jigsaws are good for advanced structures such as dungeons & villages, and allow you to spend more time on actually building content vs. messing with procedural generation code.  Jigsaws are good for advanced structures such as dungeons & villages, and allow you to spend more time on actually building content vs. messing with procedural generation code. 
  
-A repository with finished code can be found [[https://github.com/Draylar/jigsaw-example-mod/tree/1.16|here for 1.16]] +A repository with the finished code from this tutorial can be found [[https://github.com/Draylar/jigsaw-example-mod|here for 1.14 - 1.16]]. 
 +A full example with structure files and more can be found [[https://github.com/TelepathicGrunt/StructureTutorialMod/tree/1.18.x-Fabric-Jigsaw|here for 1.15 - 1.18]].
  
 ===== Creating a StructureFeature ===== ===== Creating a StructureFeature =====
Line 65: Line 66:
     ExamplePiece.init();     ExamplePiece.init();
  
-    StructurePoolBasedGenerator.addPieces(config.startPool, config.size, ExamplePiece::new, chunkGenerator, structureManager,+    StructurePoolBasedGenerator.method_30419(config.getStartPool(), config.getSize(), ExamplePiece::new, chunkGenerator, structureManager,
             pos, children, random, calculateMaxYFromPiecePositions, randomYPos);             pos, children, random, calculateMaxYFromPiecePositions, randomYPos);
  
tutorial/jigsaw.1597496796.txt.gz · Last modified: 2020/08/15 13:06 by emmanuelmess