How to use puzzle blocks to create custom, randomly generated structures

How to use puzzle blocks to create custom, randomly generated structures

HomeTalonHow to use puzzle blocks to create custom, randomly generated structures
How to use puzzle blocks to create custom, randomly generated structures
ChannelPublish DateThumbnail & View CountDownload Video
Channel AvatarPublish Date not found Thumbnail
0 Views
Roguelike dungeons, randomly generated houses, villages, and puzzle blocks are powerful but underused building tools. In this tutorial, you'll learn how to use these little-known blocks and how to generate random structures using a custom template pool (similar to a table of contents, but with randomness).

0:00 /"Introduction/"

0:12 /"Step 1: Rooms/"
– /give @p structure block

2:38 /"Step 2: Connections/"
– /give @p Puzzle

7:48 /"Step 3: Custom Template Pools (Table of Contents)/"
– Template data pack: https://www.planetminecraft.com/data-pack/template-for-custom-jigsaw-template-pools/
– Rename the NAMESPACE folder to a short name (use only lowercase letters and underscores)*
– Rename the TEMPLATEPOOL JSON file to a short name (use only lowercase letters, numbers and underscores)
– Rename NAMESPACE and TEMPLATEPOOL in the file TEMPLATEPOOL to the appropriate names
– Also rename STRUCTURENAME in the TEMPLATEPOOL file to the name you saved in the structure block

13:36 //Step 4: Jigsaw settings //

14:52 //Step 5: Generate!/
– Updated for 1.19 (check reason below) – Finished example datapack (does not contain structures!): https://www.planetminecraft.com/data-pack/finished-jigsaw-datapack/

Extended information!
– Side jigsaws can only be connected to other side jigsaws and vertical jigsaws can only be connected to other vertical jigsaws
– Your structure files are saved under Your_World/generated/minecraft
– You can copy these into the PlanetMinecraft data package in the directory your-title-goes-here/data/NAMESPACE/structures/.
– When you copy your structure files, you need to update their location in the TEMPLATEPOOL JSON file and replace minecraft:STRUCTURENAME with NAMESPACE:STRUCTURENAME.
– You can also prefix connectors with your namespace (e.g. talon:walkside), just make sure to change it everywhere and save it in the TEMPLATEPOOL JSON file.
– Puzzles have super cool logic when using block states. If you define a direction block state like oak_log[axis=x], the puzzle block will apply that before rotating the structure, meaning the oak trunk will always point in the right direction
– Block states are found by pressing F3 and looking at the right side of the screen
– Block names (for the "Transforms into" setting) can be found by pressing F3 + H and hovering over the correct block.
– You can actually leave one of the structures in the template pool empty so that the structure occasionally generates nothing
– The billys (cats) generated with structure were randomly generated, but they all kept the Silent:1b tag I gave them. So entities keep some tags they were saved with (the normal tags affected by spawn are randomly generated).
– A broader definition of levels is the length of a path. A single path can branch into many other paths and also branch back again, creating a total of far more than seven structures. This means that the more puzzle pieces a single structure has, the more branches that structure will create and the larger the final product will be.

World download: https://www.planetminecraft.com/project/jigsaw-world-from-tutorial/#tab_image_gallery
1.19 Troubleshooting: https://youtu.be/Cf0d7IRGyTY
Edit for 1.19: World and finished data pack updated for 1.19. Due to some changes, the template pool file had to be split for more consistent generation. Basically, you need one template pool file per exclusive connection name. So in the world, the green, orange, and purple rooms all had the walkway connector, but the cat structure did not. So I put the cat structure in its own template pool file and updated the structures stored in the world. It doesn't matter how many template files you have, so if you get the "No starting puzzle found" error, you should add another template pool file for all exclusive connection names.
Advanced Jigsaw Generation Control Tutorial: https://youtu.be/cmH9PajUP30
Tutorial on how to make puzzles appear naturally in the world: https://youtu.be/7R612D4zXDA

I've packed as much information as I can into the advanced section, but if you still have any further questions, ask and I'll do my best to answer each one.

Closing music:
/"Pamgaea/" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0
http://creativecommons.org/licenses/by/3.0/

Not an official Minecraft product. Not approved by or affiliated with Mojang.

Chapter:
0:00 /"Introduction/"
0:12 /"Step 1: Rooms/"
2:38 /"Step 2: Connections/"
7:48 /"Step 3: Custom Template Pools (Table of Contents)/"
13:36 //Step 4: Jigsaw settings //
14:52 //Step 5: Generate!/

#JigsawBlock #RandomlyGeneratedStructuresInMinecraft #Talon2863

Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.