[TUTORIAL] How to use jigsaw blocks in making of structures

Started by @sashakyotoz on

Topic category: User side tutorials

Last seen on 17:40, 23. Apr 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[TUTORIAL] How to use jigsaw blocks in making of structures
Fri, 06/30/2023 - 02:59 (edited)

Custom structures with jigsaw generation:

  1. Creating of Structures:
    Preamble: this tutorial will work on versions from 1.14.4 - 1.19.4, but below 1.19.4 we must write name of template pool and path to it in template pool
     Every structure set must have:
    Center of structure(where will be placed jigsaw blocks, that generate whole structure set)
    Connector of parts(some streets or corridors that will generate another connectors or houses/decorators/anything that you want)
     

    Building of structuresTower structures

  2. Adding of jigsaw blocks:
    Jigsaw block have next parameters:
    target pool(path to "storange of structures")
    target name/name("identifying key" of structure, that allows to jigsaw block to find needable structure)
    turns into(transforming of jigsaw block to some block after generation)
    Jigsaw block in entrance(so important to place jigsaw block on border of structure, else jigsaw won't generate other onces)

    Example of dungeons jigsawExample of street jigsaw


    If target pool is empty, then it will be just like target name to another, if target pool isn't empty, then jigsaw will try to find and generate structure in current pool

     

     

     

  3. Writing of Template pools:
    In folder data/"your_modid" we should make new folders - worldgen/structure, stucture_set and template_pool
     

    Folder shower

(Json files we must write absolutly like in jigsaw blocks in structures)
 

Example of template pool

If you use version of Minecraft below 1.19.4 than you should add upper of fallback next one:
"name:modid+ path to this template pool + name of this file"

weight(chance to spawn some structure from current pool)
projection(type of generation of structures, if you wrote rigid, then structure won't be changed during generation, else if you wrote terrain_matching, then structure will be spawned adaptable to world surface)
location(path to structure)
processors(rules to spawn structure)

  1. Writing of structure.json and structure_set.json:

    File of structure.json you can generate here: https://misode.github.io/worldgen/structure/
     

    json file

File of structure_set.json you can generate here: https://misode.github.io/worldgen/structure-set/
 

  1. Finally, test it in game, and fix errors if they are
     

    Structure in game

File of template pool you can generate here: https://misode.github.io/worldgen/template-pool/
Any incorrectness in json file will cause safe mode in minecraft
My tutorial how to make own village in Mcreator:https://www.youtube.com/watch?v=4qIqKOzYI7U

 

Edited by @sashakyotoz on Fri, 06/30/2023 - 02:59
Last seen on 18:35, 22. Aug 2023
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Amazing!
Sun, 05/14/2023 - 16:58

Amazing!

Last seen on 11:01, 25. Apr 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what's the point of the code…
Wed, 06/21/2023 - 02:08

what's the point of the code? where is that meant to be executed?

Last seen on 17:40, 23. Apr 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
NerdyPuzzle, if you mean…
Wed, 06/21/2023 - 08:42

NerdyPuzzle, if you mean java script, then it fixes template pool and is necessary for old versions, but in versions 1.18 and newer it's not needed

Last seen on 11:01, 25. Apr 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Javascript and Java are 2…
Wed, 06/21/2023 - 12:18

Javascript and Java are 2 very different languages. Java is used for software development, and Javascript is mostly used for websites. Also I really don't see why you'd ever want to write that code if it isn't actually used anywhere. It doesn't seem like you are subscribing to any events so that code would never be used.

Last seen on 17:40, 23. Apr 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I splited java and script by…
Thu, 06/22/2023 - 08:06

I splited java and script by Space, and i meant script that wrote on Java

Last seen on 18:52, 13. Jan 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried this and then got…
Wed, 07/05/2023 - 16:27

I tried this and then got this error
java.lang.IllegalStateException: Unbound values in registry ResourceKey[minecraft:root / minecraft:worldgen/structure]: [hard_mc:brickshaft]
i have no idea what this means

Last seen on 17:40, 23. Apr 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you have problem with json…
Fri, 07/07/2023 - 09:38

you have problem with json file in folder "structure"

Last seen on 17:40, 23. Apr 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you put that here?  
Fri, 07/07/2023 - 09:38

can you put that here?

 

Last seen on 22:57, 24. Apr 2024
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey do you by chance have a…
Thu, 08/10/2023 - 21:34

Hey do you by chance have a guide for using those structure file generators?

Last seen on 01:38, 24. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This post isnt really clear
Sat, 09/30/2023 - 18:43

This post isnt really clear

Last seen on 20:01, 8. Dec 2023
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Between this and a couple of…
Sun, 11/05/2023 - 23:18

Between this and a couple of other videos I was able to get it to work. The json generator was very helpful as well

Last seen on 22:06, 12. Nov 2023
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Will this work in 1.20+?
Sun, 11/12/2023 - 16:56

Will this work in 1.20+?

Last seen on 17:40, 23. Apr 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Gearsaw Studios yes it works…
Thu, 11/16/2023 - 03:34

Gearsaw Studios yes it works fine on 1.20, 1.20.1 and 1.20.2, but in 1.21 where will be some changes with jigsaw blocks i'm not sure

Last seen on 11:48, 21. Apr 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for the detailed…
Fri, 11/17/2023 - 16:45

Thank you for the detailed exlpanation!
For me it works fine when I place it with command but it won't generate in the world.
I already tried /locate structure and it says that it couldn't be found.
I have looked on all your json's but I can't find the solution, I am on Mcraetor version 2023.3 if that is relevant.
Any help is welcome!