Started by
THE LIMINAL
on
Topic category: Help with Minecraft modding (Java Edition)
I have several different structures, all with 16 x 16 dimensions. I've been using this tutorial for the main generation https://mcreator.net/forum/62582/guide-random-generated-structures but I have absolutely no idea how to make it generate infinitely without crashing. A little help from some more experienced modders, please?
What I'm thinking is that I'll make a procedure that checks for a certain type of block 64 blocks away on either the x or z axis. If it finds the block, it generates a structure on it. How could I make this procedure?
Is this the kind of thing that local variables should be used for?
OK i did infinite generation in my mod so this is how it works:
There are two methods.
Method 1:
(This method is a little buggy and may look weird.)
Make a dimension with generation type Nether.
Make a new world and make a structure using Structure Blocks.
In the resources tab in MCreator, click Structures/Import structure from Minecraft.
Open your structure.
Make a "Structure" element.
Set the 'Structures per 1,000,000 chunks' to 1,000,000
Also make sure your structure is on Ground mode and it is set to your dimension biome.
Method 2:
(Make your structures beforehand and make them a set size (e.g. 10x10).)
Make a block.
Make an 'Update Tick' trigger.
Make a 'Do in dimension' block
Place your structure at the block.
Then make 4 If statements detecting if the blocks at x + structure size, x - structure size, z + structure size and z - structure size are air (Or the ground block if you bury your placer in the ground)
Put in the 'do' of the 4 if statements 'place your Placer blocks at at x + structure size, x - structure size, z + structure size and z - structure size'. That should make basic generation but you can study this workspace
https://mcreator.net/modification/82920/tvfs-backrooms
sorry if i worded this weirdly im bad at tutorials
Can you tell me how to make level 2 of the backrooms please?
If you want a simple method of creating the backrooms, make a structure that replicates the backrooms halls, and import them into mcreator. Then make a dimension for your backrooms and make the structures spawn at a specific Y level. Then, make a trigger that makes it so that the player will be teleported to that specific Y level. Then make a way to get into the dimensions and you now have the backrooms.