how to create a structure that will be generated as if using jigsaw blocks

Started by Mister_Pavel on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to create a structure that will be generated as if using jigsaw blocks

how to create a structure consisting of many small structures that will always be generated differently as an ancient city or village

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you, now it's clearer…
Tue, 10/17/2023 - 18:01

Thank you, now it's clearer how it looks, very beautiful. I wanted to write something else, but at that moment you have already answered me, but I will throw it off anyway:I meant that the center structure is generated first, and then random structures would be generated next to it from it, which would fit nicely to the center, but this dunge would always be generated differently. sorry, but I'm not an expert in procedures, so I want to ask, if this is generated in the corners of stone bricks, then these structures will be generated wherever there are corners of stone bricks, and not just from the center of dunge (near it) being one structure? And, if it says generate a structure in x y z in the corner, then there will be a center in the corner, and the structure will pass through the corner, or will a corner of this structure be generated in the corner of stone bricks and this corner will fit nicely to the corner of stone bricks as in natural generation? I apologize that there is a lot of text, I write in such detail because I do not know how clearly the translator will translate it and how well you will understand it and I want you to understand me

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem, I am happy to…
Tue, 10/17/2023 - 18:21

No problem, I am happy to help! The village has a central structure, (the village square), which has four special blocks on each side. Each of these blocks has a procedure that changes blocks to make roads, and then randomly places structures in different parts of the village. 

The village is an example of a very complicated structure made using procedures and modded blocks. But the procedure example shows how you can do this for simple structures. If you have a structure where the walls are made of stone bricks, and you want random rooms, you can place the special blocks in the corner. Then, when the structure is loaded, the block checks the blocks next to it for stone bricks, to determine which corner it is in, and which way to rotate the structure. (If you always place it in the same corner, you do not need to worry about rotation.) Then, it sets a local number variable to a random number. Depending on which number it chooses, it selects a different structure. 

 

You can either make a custom block to do this, or you can do it entirely using procedures. 

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you're still interested…
Tue, 11/07/2023 - 16:21

If you're still interested in using jigsaw blocks, I've gotten them to work within MCreator. It's not the most intuitive process at first but it works well for me.

 

Here's a list of resources I used to figure it out:

Tutorial for jigsaw blocks within MCreator - Link

    The OP is not a native English speaker so their video is a little hard to follow but it does a decent job of showing where to create the files needed for procedural generation within MCreator

 

YouTube Tutorial 1 - Link

   This video does a good job of breaking down the jigsaw block itself. You just have to keep an eye on your naming convention within the jigsaw block fields as it's a little different when working within MCreator. There are some shots of the jigsaw GUI in the first video above that will help with this

 

YouTube Tutorial 2 - Link

    This video also does a good job of breaking down the jigsaw block and really showcases its ability to make something that looks really cool. Also, having the concept/process explained in a different way helped me put it all together to get it to work. This video also shows how you can use jigsaw blocks within your structure to create randomly generated 'features' to keep the structures from feeling stale and repetitive

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For me the structures can be…
Fri, 11/17/2023 - 18:49

For me the structures can be manually spawned but not from the mod generation, I followed everythiong in the video.
How did you get it to work, did you also have to make the java pool file?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It might depend on what…
Sat, 11/18/2023 - 15:16

It might depend on what version of MCreator you're using. In previous versions, structures are treated as world features rather than actual structures; which means you can run procedures on them; in later versions the game uses true structures, which only support jigsaw blocks. I would assume if there's a file you need, you would have to manually put it in the Mod's src file.