Difference between revisions of "Dungeon Grid"

From ChocolateQuestWiki
Jump to navigation Jump to search
(Created page with "Category:Dungeon Generator Category:Configuration A dungeon grid defines the positions where dungeons can spawn. These grids consist of a set of dungeons belonging t...")
 
Line 10: Line 10:
  
 
== Configuration values ==
 
== Configuration values ==
|class="wikitable sortable" width=100%
+
{|class="wikitable sortable" width=100%
 
!width=10%|Option  
 
!width=10%|Option  
 
!width=20%|Data type
 
!width=20%|Data type

Revision as of 19:10, 22 November 2021

A dungeon grid defines the positions where dungeons can spawn.

These grids consist of a set of dungeons belonging to this grid, a side length, a chance and weight and a spread factor.

The length defines the size parameters of each grid cell and thus the density of dungeons spawning on this grid.

Each grid has it's own config file and there needs to be at least one grid for the mod to work properly!

Configuration values

Option Data type Description Constraints
distance Integer Side length of one grid cell, defined in blocks. Has to be at least 1.
spread Integer TBD Has to be at least 0.
rarityFactor Double Has to be positive.
checkRadius Integer Defines a radius in chunks. This is used to check for other structures which is used to avoid overlapping. Has to be at least 0.
chance Integer Chance for this grid to try to generate something. Has to be between 0 and 100.
priority Integer Priority of this grid. This is used to calculate the generation order of grids when trying to generate a structure. Lower priority means that it gets selected before grids with a higher priority. It is to be understood as a place in a queue. Has to be positive.
offset Integer Used to place dungeons less griddy. It will be applied to a selected position to avoid a griddy shape. Has to be at least 0.
dungeons List of Dungeon Configuration names Defines the dungeons that use this grid.