<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mutigeraffe.com/index.php?action=history&amp;feed=atom&amp;title=UtilityBiome%3ABiome_Census</id>
	<title>UtilityBiome:Biome Census - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mutigeraffe.com/index.php?action=history&amp;feed=atom&amp;title=UtilityBiome%3ABiome_Census"/>
	<link rel="alternate" type="text/html" href="https://wiki.mutigeraffe.com/index.php?title=UtilityBiome:Biome_Census&amp;action=history"/>
	<updated>2026-10-19T20:42:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.mutigeraffe.com/index.php?title=UtilityBiome:Biome_Census&amp;diff=492&amp;oldid=prev</id>
		<title>Maintenance script: UtilityBiome wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.mutigeraffe.com/index.php?title=UtilityBiome:Biome_Census&amp;diff=492&amp;oldid=prev"/>
		<updated>2026-10-19T07:06:58Z</updated>

		<summary type="html">&lt;p&gt;UtilityBiome wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A &amp;#039;&amp;#039;&amp;#039;biome census&amp;#039;&amp;#039;&amp;#039; samples an area of the world generator and counts which biomes occur there. It is useful to check a seed before you open a server, to see how big and how common the biomes of a world-generation mod are, and to add hard numbers to a bug report. It reads the world generator only, so no chunks are generated and nobody has to fly there.&lt;br /&gt;
&lt;br /&gt;
There are two ways to run one: the command &amp;lt;code&amp;gt;/ub census&amp;lt;/code&amp;gt; and a census at server start.&lt;br /&gt;
&lt;br /&gt;
== The report ==&lt;br /&gt;
The first line names the centre, radius and step, the number of samples and how many different biomes were found. Below it comes one line per biome, sorted by share:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Part !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| Share in % || How much of the sampled area this biome covers.&lt;br /&gt;
|-&lt;br /&gt;
| Name || The biome as &amp;lt;code&amp;gt;Zone/Tile.Name&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Zone/Custom.Name&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| Nearest || Position of the sample of this biome closest to the centre, and its distance in blocks.&lt;br /&gt;
|-&lt;br /&gt;
| Patches || How many separate patches of this biome were found. Neighbouring samples of the same biome, diagonals included, count as one patch.&lt;br /&gt;
|-&lt;br /&gt;
| Average / largest width || How wide an average patch and the largest patch are, given as the side of a square of the same area.&lt;br /&gt;
|}&lt;br /&gt;
Patches at the edge of the area are cut off and count smaller than they are. With a filter, only the matching biomes are listed, but the shares still refer to the whole area.&lt;br /&gt;
&lt;br /&gt;
The number of samples grows quickly: a radius of 2000 with step 32 means about 16,000 samples. For large areas use a larger step.&lt;br /&gt;
&lt;br /&gt;
== /ub census ==&lt;br /&gt;
The command samples the default world around a point you choose (by default (0, 0), not your position). The options are listed on [[UtilityBiome:Commands#/ub census|Commands]]. Examples:&lt;br /&gt;
* &amp;lt;code&amp;gt;/ub census&amp;lt;/code&amp;gt;: 4000 × 4000 blocks around (0, 0), one sample every 32 blocks.&lt;br /&gt;
* &amp;lt;code&amp;gt;/ub census --radius 6000 --step 64 --filter BetterBiomes_&amp;lt;/code&amp;gt;: a larger area, only the biomes of Better Biomes listed.&lt;br /&gt;
* &amp;lt;code&amp;gt;/ub census --x 12000 --z -3000 --radius 1000 --step 16&amp;lt;/code&amp;gt;: a detailed look at one region.&lt;br /&gt;
&lt;br /&gt;
== Census at server start ==&lt;br /&gt;
Server admins can let Utility Biome run a census automatically once all worlds have loaded. This works without anyone joining. Set the environment variable &amp;lt;code&amp;gt;UTILITYBIOME_CENSUS&amp;lt;/code&amp;gt; before starting the server:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UTILITYBIOME_CENSUS=radius[:step[:prefix]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;radius&amp;lt;/code&amp;gt;: half the side length in blocks (0 or more). Unlike the command, there is no upper limit.&lt;br /&gt;
* &amp;lt;code&amp;gt;step&amp;lt;/code&amp;gt;: distance between samples, default 32.&lt;br /&gt;
* &amp;lt;code&amp;gt;prefix&amp;lt;/code&amp;gt;: optional, only biomes whose name starts with it are listed and highlighted.&lt;br /&gt;
* The centre is always (0, 0) of the default world.&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;code&amp;gt;UTILITYBIOME_CENSUS=4000:32:BetterBiomes_&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The result goes to the server log, every line starting with &amp;lt;code&amp;gt;Start-Census:&amp;lt;/code&amp;gt;:&lt;br /&gt;
* the number of loaded biomes and the ones matching the prefix,&lt;br /&gt;
* with a prefix: the matching cave types and ores per zone,&lt;br /&gt;
* the full report described above,&lt;br /&gt;
* a map image.&lt;br /&gt;
&lt;br /&gt;
=== The census map ===&lt;br /&gt;
Utility Biome writes the file &amp;lt;code&amp;gt;census-map.png&amp;lt;/code&amp;gt; into the working directory of the server. It has one pixel per sample, north is up, and a cross marks (0, 0). Biomes that match the prefix get strong colours. All other biomes get a muted colour per zone, with Custom biomes such as rivers and mountains a little darker. The log lists which colour belongs to which biome and zone. On the map you can see how big a biome is, what shape it has, and where zone borders, rivers or mountains cut it off.&lt;br /&gt;
&lt;br /&gt;
If the value of the variable cannot be read, the log shows a warning and no census runs.&lt;br /&gt;
&lt;br /&gt;
{{UtilityBiome Nav}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>