Started by
Mister_Pavel
on
Topic category: Help with Minecraft modding (Java Edition)
how to create a structure consisting of many small structures that will always be generated differently as an ancient city or village
Topic category: Help with Minecraft modding (Java Edition)
how to create a structure consisting of many small structures that will always be generated differently as an ancient city or village
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.)
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.
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.
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.
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
but the procedure - "or" can only be inserted into - "if", but it is impossible in the part where I insert - "generate structure"?
I can send you pictures, if that would help.
Yes, I think it will help me, thank you.
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
must i write my discord you so that you can send me pictures?
No, I can send pictures on MCreator. I’m just away from my computer for awhile, so it might take a while.
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.
excuse me, could you take a picture of the result, how would it look generated?
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.