Custom room gen
Essentially, I'm recreating Roblox Doors's room gen within Minecraft. Therefore, there are lots of rules that need to be followed. Firstly, rooms cannot overlap, so checks need to be made to ensure this doesn't occur. Secondly, rooms can have different types (for example firedamp rooms, gloombat rooms etc.) and cannot appear in succession. Also, many room have multiple possible exit points, and they should be decided through a few factors. 1: RNG, 2: if any room can fit there, 3: There can only be 1 exit. Any possible exits which aren't selected should become either a boarded variant, no handle variant, become a breakout room or become a dupe door if there is room. The chance for it to become a dupe door increases through each room. There are a max of 100 rooms per major floor, 50 rooms for the backdoor and 1000 rooms for the rooms. Rooms 5 doors behind should have the door close and despawn. Any players inside are voided to the rest of the group. Node markers for pathfinding will need to be either manually placed or generated automatically. Automatic node generation would be preferable, as it makes changing entrance and exit positions easier to deal with. There are scripted rooms, such as door 0, 50, 89-101, 140-152 and 195-200. In the hotel, scripted rooms such as seek chase rooms and the infirmary can spawn within a range, and figure rooms can also spawn within a range in the mines. Also, furniture is randomly generated, however some places can only have certain types of furniture, such as hiding spots and desks. Gold and items have varying chances of spawning in and on the drawers and tables, and some rooms such as the herb of veridis room and the courtyard basement are known as gold hotspots, providing mass amounts of gold.
So yeah, there's a LOT to consider. If anyone can help with any of this, it would be greatly appreciated. Thanks 😄