Skip to content

Commit 788c06d

Browse files
committed
Added the configs to the wiki
1 parent 253b0b4 commit 788c06d

File tree

13 files changed

+708
-1
lines changed

13 files changed

+708
-1
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ gem "jekyll", "~> 4.3" # installed by `gem jekyll`
55

66
gem "just-the-docs", "0.10.1" # pinned to the current release
77
# gem "just-the-docs" # always download the latest release
8+
9+
gem 'jekyll-relative-links'

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ GEM
5353
webrick (~> 1.7)
5454
jekyll-include-cache (0.2.1)
5555
jekyll (>= 3.7, < 5.0)
56+
jekyll-relative-links (0.7.0)
57+
jekyll (>= 3.3, < 5.0)
5658
jekyll-sass-converter (3.1.0)
5759
sass-embedded (~> 1.75)
5860
jekyll-seo-tag (2.8.0)
@@ -105,6 +107,7 @@ PLATFORMS
105107

106108
DEPENDENCIES
107109
jekyll (~> 4.3)
110+
jekyll-relative-links
108111
just-the-docs (= 0.10.1)
109112

110113
BUNDLED WITH

_config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@ exclude:
2222

2323
sass:
2424
quiet_deps: true # https://github.com/just-the-docs/just-the-docs/issues/1541
25-
silence_deprecations: ['import'] # https://github.com/just-the-docs/just-the-docs/issues/1607
25+
silence_deprecations: ['import'] # https://github.com/just-the-docs/just-the-docs/issues/1607
26+
27+
gems:
28+
- jekyll-relative-links

_sass/custom/custom.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,30 @@ th {
119119
margin-left: calc( (100% - #{$page-width}) / 2 + #{$sidebar-width} );
120120
}
121121
}
122+
123+
section.config-indent {
124+
--indent-size: 2em;
125+
126+
&::before, &::after {
127+
position: relative;
128+
left: calc(-1 * var(--indent-size) - 0.2em);
129+
}
130+
131+
&::before { content: "{"; }
132+
&::after { content: "}"; }
133+
134+
& :first-child { margin-top: 0; }
135+
& :last-child { margin-bottom: 0; }
136+
137+
padding-left: var(--indent-size);
138+
139+
--bracket-height: 2em;
140+
border-left: 1px solid transparent;
141+
border-image: linear-gradient(to bottom,
142+
transparent var(--bracket-height),
143+
grey var(--bracket-height),
144+
grey calc(100% - var(--bracket-height)),
145+
transparent calc(100% - var(--bracket-height))
146+
);
147+
border-image-slice: 1;
148+
}

wiki/configs/Core.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
layout: page
3+
title: Core
4+
parent: Configs
5+
grand_parent: Wiki
6+
nav_order: 1
7+
---
8+
9+
# Core-Config
10+
11+
> **Info:**
12+
> When a "default" is mentioned for any option, it is meant that if the option is commented out, that is what BlueMap will use.
13+
> This may not be the same as the option that is pre-filled-in.
14+
{: .info }
15+
16+
## `accept-download`
17+
By changing this setting to `true` you are indicating that you have accepted [Mojang's EULA](https://account.mojang.com/documents/minecraft_eula),
18+
you confirm that you own a license to Minecraft (Java Edition)
19+
and you agree that BlueMap will download and use a minecraft-client file (depending on the minecraft-version)
20+
from [Mojang's servers](https://piston-meta.mojang.com/mc/game/version_manifest.json) for you.
21+
This file contains resources that belong to Mojang and you must not redistribute it or do anything else that is not compliant with mojang's EULA.
22+
23+
BlueMap uses resources in this file to generate the 3D-models used for the map and texture them. (BlueMap will not work without those resources.)
24+
25+
## `data`
26+
The folder where BlueMap saves data-files it needs during runtime, or to save e.g. the render-progress to resume it later.
27+
28+
_Default is_ `"bluemap"`
29+
30+
## `render-thread-count`
31+
This changes the amount of threads that BlueMap will use to render the maps.
32+
A higher value can improve render-speed, but could impact performance on the host machine.
33+
This should be always below or equal to the number of available processor-cores.
34+
35+
Zero or a negative value means the amount of available processor-cores subtracted by the value.
36+
(So a value of -2 with 6 cores results in 4 render-processes)
37+
38+
_Default varies per machine_
39+
40+
## `scan-for-mod-resources`
41+
Controls whether BlueMap should try to find and load mod-resources and datapacks from the server/world-directories.
42+
43+
_Default is_ `true`
44+
45+
## `metrics`
46+
If this is `true`, BlueMap might send really basic metrics reports containing only the implementation-type and the version that is being used to [metrics.bluecolored.de/bluemap](https://metrics.bluecolored.de/)
47+
48+
This allows me to track the basic usage of BlueMap and helps me stay motivated to further develop this tool!
49+
Please leave it on :)
50+
51+
An example report looks like this: `{"implementation":"bukkit","version":"5.13","mcVersion":"?"}`
52+
53+
_Default is_ `true`
54+
55+
## `log`
56+
Config-section for debug-logging
57+
58+
<section markdown="1" class="config-indent">
59+
60+
### `file`
61+
The file where the debug-log will be written to.
62+
Comment out to disable debug-logging completely.
63+
64+
[Java String formatting syntax](https://docs.oracle.com/javase/8/docs/api/java/util/Formatter.html) can be used to add time.
65+
66+
_Default is no logging_
67+
68+
### `append`
69+
Whether the logger should append to an existing file, or overwrite it
70+
71+
_Default is_ `false`
72+
73+
</section>

wiki/configs/Maps.md

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
---
2+
layout: page
3+
title: Maps
4+
parent: Configs
5+
grand_parent: Wiki
6+
nav_order: 5
7+
---
8+
9+
# Map-Config
10+
11+
In your `maps` directory, there is one `.conf` file per map.
12+
Usually, that will be three: `world.conf`, `world_nether.conf`, and `world_the_end.conf`,
13+
but may be more or less depending on the amount of loaded worlds when BlueMap was first installed.
14+
15+
You can copy another map config to create a new map.
16+
You will probably want to change at least the [`world`](#world) and [`name`](#name) options,
17+
but you don't actually have to! By keeping them the same, you can have multiple maps of the same world.
18+
19+
> **Info:**
20+
> When a "default" is mentioned for any option, it is meant that if the option is commented out, that is what BlueMap will use.
21+
> This may not be the same as the option that is pre-filled-in.
22+
{: .info }
23+
24+
## `world`
25+
The path to the save-folder of the world to render.
26+
27+
(If this is not defined (commented out or removed), the map will be only registered to the web-server and the web-app, but not rendered or loaded by BlueMap. This can be used to display a map that has been rendered somewhere else.)
28+
29+
## `dimension`
30+
The dimension of the world. Can be `"minecraft:overworld"`, `"minecraft:the_nether"`, `"minecraft:the_end"` or any dimension-key introduced by a mod or datapack.
31+
32+
## `name`
33+
The display-name of this map -> how this map will be named on the webapp.
34+
35+
You can change this at any time.
36+
37+
_Default is the id of this map_
38+
39+
## `sorting`
40+
A lower value makes the map sorted first (in lists and menus), a higher value makes it sorted later.
41+
The value needs to be an integer, but it can be negative.
42+
43+
You can change this at any time.
44+
45+
_Default is_ `0`
46+
47+
## `start-pos`
48+
The position on the world where the map will be centered if you open it.
49+
50+
You can change this at any time.
51+
52+
_This defaults to the world-spawn if you don't set it._
53+
54+
## `sky-color`
55+
The color of the sky as a hex-color
56+
57+
You can change this at any time.
58+
59+
_Default is_ `"#7dabff"`
60+
61+
## `void-color`
62+
The color of the void as a hex-color
63+
64+
You can change this at any time.
65+
66+
_Default is_ `"#000000"`
67+
68+
## `sky-light`
69+
Defines the initial sky-light-strength the map will be set to when it is opened.
70+
71+
`0` is no sky-light, `1` is fully lighted.
72+
73+
You can change this at any time.
74+
75+
_Default is_ `1`
76+
77+
## `ambient-light`
78+
Defines the ambient light-strength that every block is receiving, regardless of the sunlight/blocklight.
79+
80+
`0` is no ambient light, `1` is fully lighted.
81+
82+
You can change this at any time.
83+
84+
_Default is_ `0`
85+
86+
## `remove-caves-below-y`
87+
BlueMap tries to omit all blocks that are below this Y-level and are not visible from above-ground.
88+
More specifically: Block-Faces that have a sunlight/skylight value of 0 are removed.
89+
90+
This improves the performance of the map on slower devices by a lot, but might cause some blocks to disappear that should normally be visible.
91+
92+
**Changing this value requires a re-render of the map.**
93+
94+
Set to a very high value to remove caves everywhere (e.g. `10000`)
95+
Set to a very low value to remove nothing and render all caves (e.g. `-10000`)
96+
97+
_Default is_ `55` _(slightly below water-level)_
98+
99+
## `cave-detection-ocean-floor`
100+
This is the amount of blocks relative to the "ocean-floor" heightmap that the cave-detection will start at.
101+
Everything above that (heightmap-relative) y-level will not be removed.
102+
103+
Comment or set to a very high value to disable using the ocean-floor heightmap for cave-detection.
104+
105+
**Changing this value requires a re-render of the map.**
106+
107+
_Defaults to_ `10000` _(disabled)_
108+
109+
## `cave-detection-uses-block-light`
110+
With this value set to `true`, BlueMap also uses the block-light value (additionally to the sky-light) to "detect caves".
111+
(See: [`remove-caves-below-y`](#remove-caves-below-y))
112+
113+
**Changing this value requires a re-render of the map.**
114+
115+
_Default is_ `false`
116+
117+
## `min-inhabited-time`
118+
The minimum "inhabitedTime" value that a chunk must have to be rendered.
119+
The "inhabitedTime" value of a chunk refers to the cumulative number of ticks players have been near this chunk.
120+
121+
If you set this to a value greater than `0`, BlueMap will only render chunks that players have visited already.
122+
123+
_Default is_ `0`
124+
125+
## `render-mask`
126+
With the render-mask you can limit the map-render.
127+
128+
This can be used to render only a certain part of a world, or ignore the Nether's ceiling.
129+
130+
If you change the render-mask, BlueMap automatically tries to update the map,
131+
including deleting map-tiles which are outside the new limits.
132+
133+
You can use `/bluemap fix-edges <map>` to fix any remaining issues.
134+
135+
Please check out [this wiki page](/wiki/customization/Masks.md) for more detailed information on how to configure this.
136+
137+
_Default is no mask; BlueMap will render everything that exists._
138+
139+
## `render-edges`
140+
Using this, BlueMap pretends that every Block outside of the defined render-mask is AIR,
141+
this means you can see the blocks where the world is cut (instead of having a see-through/xray view).
142+
This has only an effect if you set some [`render-mask`](#render-mask) above.
143+
144+
**Changing this value requires a re-render of the map.**
145+
146+
_Default is_ `true`
147+
148+
## `edge-light-strength`
149+
The sun-light strength that blocks at map-edges will recieve if render-edges is enabled.
150+
151+
Should be a value between `0` and `15`
152+
153+
_Default is_ `15`
154+
155+
## `enable-perspective-view`
156+
Whether the perspective view will be enabled for this map.
157+
158+
**Changing this to `true` requires a re-render of the map, only if the hires-layer is enabled and free-flight view is disabled.**
159+
160+
_Default is_ `true`
161+
162+
## `enable-flat-view`
163+
Whether the flat (isometric, top-down) view will be enabled for this map.
164+
165+
Having only flat-view enabled while disabling free-flight and perspective will speed up the render and reduce the maps storage-size.
166+
167+
_Default is_ `true`
168+
169+
## `enable-free-flight-view`
170+
Whether the free-flight view will be enabled for this map.
171+
172+
**Changing this to `true` requires a re-render of the map, only if the hires-layer is enabled and perspective view is disabled.**
173+
174+
_Default is_ `true`
175+
176+
## `enable-hires`
177+
Whether the hires-layer will be enabled.
178+
179+
Disabling this will speed up rendering and reduce the size of the map-files a lot.
180+
But you will not be able to see the full 3d-models if you zoom in on the map.
181+
182+
Changing this to `false` will not remove any existing tiles; existing tiles just won't get updated anymore.
183+
184+
**Changing this to `true` will require a re-render of the map.**
185+
186+
_Default is_ `true`
187+
188+
## `storage`
189+
This defines the [storage-config](storages/) that will be used to save this map.
190+
191+
You can find your storage configs next to this config file in the 'storages'-folder.
192+
193+
**Changing this value requires a re-render of the map. The map in the old storage will not be deleted.**
194+
195+
_Default is_ `"file"`
196+
197+
## `ignore-missing-light-data`
198+
Normally BlueMap detects if a chunk has not yet generated it's light-data and omits rendering those chunks.
199+
200+
If this is set to `true`, BlueMap will render Chunks even if there is no light-data!
201+
202+
This can be useful for example if some mod prevents light-data from being saved correctly.
203+
However, this also has a few drawbacks:
204+
- For those chunks, every block will always be fully lit
205+
- Night-mode might not work correctly
206+
- Caves will always be rendered (ignoring the [`remove-caves-below-y`](#remove-caves-below-y) setting)
207+
208+
_Default is_ `false`
209+
210+
## `marker-sets`
211+
Here you can define any static marker-sets with markers that should be displayed on the map.
212+
213+
You can change this at any time.
214+
215+
If you need dynamic markers, you can use any plugin that integrates with BlueMap's API.
216+
[Here is a list.](/community/3rdPartySupport.md)
217+
218+
Please check out [this wiki page](/wiki/customization/Markers.md) for information on how to configure this.

0 commit comments

Comments
 (0)