U
/u/No_Unit9980
Guest
| Every player gets their own fresh Trial Chamber — no more arriving to find it already cleared or looted by someone else. How Instance Creation Works:1. Void WorldWhen the plugin loads for the first time, it creates a dedicated blank world called trial_chamber_instances. This world is completely empty — no terrain, no mobs, no weather. It only exists as a neutral space to paste dungeons intoThe world persists across server restarts so that active instances are kept intact 2. Grid LayoutThe void world is divided into an invisible grid. Each cell in the grid is 2000 blocks apart, arranged in rows of 100 When a new instance is needed, the plugin picks the next free grid cell — for example cell (0, 0), then (1, 0), then (2, 0), and so on. When an instance is finished and wiped, its cell is returned to the pool and can be reused by a future instance This means up to 100 instances per row, expanding downward indefinitely, instances never collide with each other 3. Schematic PasteOnce a grid cell is reserved, the plugin randomly picks one .schem file from its structures/ folder and pastes it into the reserved area using FastAsyncWorldEdit, centered at Y=64 of that cell. The paste runs on a background thread so the server doesn't freeze.4. Post-Paste SetupAfter the structure appears in the world, the plugin does a quick scan of all blocks inside the pasted area to:
5. TeleportationAll party members are teleported to the spawn point at the same time. Their current overworld location is saved so they can be returned there when the instance ends 6. CleanupWhen the instance ends (all vaults opened, grace timer expired, or all players left), the plugin:
[link] [comments] |
Continue reading...