Changed: MC Mod

Changed: MC Mod

156k Downloads

Procedurally generated facility

LtxProgrammer opened this issue ยท 6 comments

commented

As title states, a randomly generated facility akin to a stronghold in Minecraft. Some foundation already exists for this in the mod's codebase: FacilityPieces.java

commented

All the effort for creating the rooms need to be put off until the door issue #562. However, I will putting effort into the generation code. I've created a new block to aid in the structure aligning process changed:glu. The generator will attempt to align jigsaw blocks and glu blocks face to face.

commented

Naturally, the structures I already made for the facility are subject to change. Maybe add glu metadata to specify door size and if there is a vent to connect the rooms.

commented

I may also need to adjust the placement bounding box check to allow an immediate child section to trespass into the parents bound box, to allow for interesting shaped rooms.

commented

I should also mention I had planned for the majority of the facility to generate underground, with an entrance piece into it on the surface. I could explore generating an above ground building, however I must take care and consideration with the design of the rooms to be able to generate nicely looking on the outside.

commented

The code for underground facility generation should be good, and all that remains is the facility pieces themselves, advanced configuration with generation, and some extra deco blocks.

commented

Now this time, facility generation is 99% stable. Just some more room variety and it should be good for release. Additional zones can be added in a later update.