tutorial:jigsaw
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:jigsaw [2020/08/15 13:06] – emmanuelmess | tutorial: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:// | + | A repository with the finished code from this tutorial |
+ | A full example with structure files and more can be found [[https:// | ||
===== Creating a StructureFeature ===== | ===== Creating a StructureFeature ===== | ||
Line 65: | Line 66: | ||
ExamplePiece.init(); | ExamplePiece.init(); | ||
- | StructurePoolBasedGenerator.addPieces(config.startPool, config.size, ExamplePiece:: | + | StructurePoolBasedGenerator.method_30419(config.getStartPool(), config.getSize(), ExamplePiece:: |
pos, children, random, calculateMaxYFromPiecePositions, | pos, children, random, calculateMaxYFromPiecePositions, | ||
tutorial/jigsaw.1597496796.txt.gz · Last modified: 2020/08/15 13:06 by emmanuelmess