How do I code the structure generation for my backrooms mod?

Started by THE LIMINAL on

Topic category: Help with modding (Java Edition)

Last seen on 21:53, 12. Sep 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I code the structure generation for my backrooms mod?

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?

Last seen on 21:53, 12. Sep 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What I'm thinking is that I…
Wed, 09/07/2022 - 22:11

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?

Last seen on 21:53, 12. Sep 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is this the kind of thing…
Wed, 09/07/2022 - 22:15

Is this the kind of thing that local variables should be used for?

Last seen on 12:06, 8. Jun 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
OK i did infinite generation…
Tue, 01/03/2023 - 22:08

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

Last seen on 20:03, 13. Apr 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you tell me how to make…
Sat, 08/05/2023 - 19:39

Can you tell me how to make level 2 of the backrooms please?

Last seen on 11:08, 19. Apr 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you want a simple method…
Sat, 08/12/2023 - 05:54

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.