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 May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Please don't use jigsaw…
Sun, 10/15/2023 - 20:42

Please don't use jigsaw blocks, they're a nightmare to get working. You'll be much better off writing a special procedure to place your structures under specific positions, or make custom blocks that place your structures specifically how you want, based on their surroundings. (You could, for example, make a block that loads the structure if the surroundings are suitable, then more inside that place different rooms and furniture, or randomly alter the structure's blocks.)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you, but no, this…
Mon, 10/16/2023 - 20:03

thank you, but no, this method doesn't suit me, it's too complicated, I can't make it so that random structure and with the right turn is generated next to the structure.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need a method with…
Mon, 10/16/2023 - 20:06

I need a method with procedural generation like in minecraft and most likely I will need to use jigsaw blocks for this. It's more convenient this way even though I don't know how to do it.

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can do procedural…
Mon, 10/16/2023 - 20:12

You can do procedural generation with this method- and it’s not as complicated as it sounds. The problem with Jigsaw blocks is that they’ve got limitations, and they’re difficult to program. If you make your own blocks, you can program them to do whatever you want.

For the room example, you can make four different cases depending on which corner it’s in, and have each one randomly choose a structure to place with the corresponding rotation.

Up to you though. I’ve only worked with Jigsaw blocks enough to know I don’t want to work with jigsaw blocks, so I wouldn’t really know where to start.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in fact, I'm not well (bad)…
Mon, 10/16/2023 - 20:31

in fact, I'm not well (bad) versed in procedures and still don't understand how to do random generation and I didn't understand your example of how it can be done because I also don't understand English good, and it's not clear through the browser translator

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but the procedure - "or" can…
Mon, 10/16/2023 - 20:42

but the procedure - "or" can only be inserted into - "if", but it is impossible in the part where I insert - "generate structure"?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can send you pictures, if…
Mon, 10/16/2023 - 20:49

I can send you pictures, if that would help.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, I think it will help me…
Mon, 10/16/2023 - 20:52

Yes, I think it will help me, thank you.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried to make a random…
Mon, 10/16/2023 - 20:55

I tried to make a random generation using jigsaw blocks, but I failed, perhaps because mcreator does not perceive the symbol - "/" in the name of the registry

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
must i write my discord you…
Mon, 10/16/2023 - 20:58

must i write my discord you so that you can send me pictures?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, I can send pictures on…
Mon, 10/16/2023 - 21:58

No, I can send pictures on MCreator. I’m just away from my computer for awhile, so it might take a while.

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here's a basic example. The…
Tue, 10/17/2023 - 00:58

Here's a basic example. The procedure checks if the block is in a corner. It sets a local number variable to a random number, (you can add more numbers if you want more variants), and then chooses a structure to placed based on the number, with a rotation based on the adjacent blocks.

 

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
excuse me, could you take a…
Tue, 10/17/2023 - 17:42

excuse me, could you take a picture of the result, how would it look generated?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The result will look…
Tue, 10/17/2023 - 17:47

The result will look different every time, because the procedure randomly chooses which structure to place. Here's an example, generated using a more complicated procedure:

The procedure places blocks to generate roads, places the arches with different rotations along the roads, then checks the terrain, and if there's room, randomly chooses what to place, with random rotation. There's some additional custom blocks that randomly place moss and plants around the village.