issue with generation code

Started by sneko on

Topic category: Help with modding (Java Edition)

Last seen on 04:39, 22. Jan 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
issue with generation code
Mon, 01/16/2023 - 07:27 (edited)

image above is a screen shot of the code

(the 4 alone pieces go right under the spawn structure procedure btw)

bottom left works, bottom right does not

i'm just practicing by making a backrooms generation system. everything works fine except for something weird that i might just be overlooking.

I have a block that is placed below the player when they enter the dimension i have set for it, it will spawn a room above it and then see if the area near by has a floor indicating a room. if it does not have a floor it will copy itself in the spot it needs to, to place another room. it will repeat this north south east and west and then it delete its self to avoid lag from the ticking.

the issue arises when I load the game and go into the dimension, it will place the first room and then do as planned to the north and west and everywhere in between, but the south and east place one room and fill the spots in between and then just stop working

picture of what it looks like in game the room with the hole in the ceiling is the starting room

Edited by sneko on Mon, 01/16/2023 - 07:27