Skip to content

Commit 7c37c90

Browse files
committed
2 parents a2f825b + b8aa1dc commit 7c37c90

File tree

8 files changed

+158
-155
lines changed

8 files changed

+158
-155
lines changed

common/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ node {
3131
version = "20.14.0"
3232
download = true
3333
nodeProjectDir = file("webapp/")
34+
npmInstallCommand = "ci"
3435
}
3536

3637
tasks.register("buildWebapp", type = NpmTask::class) {

common/src/main/resources/de/bluecolored/bluemap/config/core.conf

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,47 @@
33
## Core-Config ##
44
## ##
55

6-
# By changing the setting (accept-download) below to TRUE you are indicating that you have accepted mojang's EULA (https://account.mojang.com/documents/minecraft_eula),
7-
# you confirm that you own a license to Minecraft (Java Edition)
8-
# and you agree that BlueMap will download and use a minecraft-client file (depending on the minecraft-version) from mojangs servers (https://piston-meta.mojang.com/) for you.
9-
# 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.
10-
# 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.)
6+
# By changing the setting (accept-download) below to TRUE you are indicating that you have accepted Mojang's EULA (https://account.mojang.com/documents/minecraft_eula),
7+
# you confirm that you own a license to Minecraft (Java Edition),
8+
# and you agree that BlueMap will download and use a Minecraft client file (depending on the Minecraft version) from Mojang's servers (https://piston-meta.mojang.com/) for you.
9+
# 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.
10+
# BlueMap uses resources in this file to generate the 3D models used for the map and texture them. Without these, BlueMap will not work.
1111
# ${timestamp}
1212
accept-download: false
1313

14-
# The folder where bluemap saves data-files it needs during runtime or to save e.g. the render-progress to resume it later.
14+
# The folder where BlueMap saves data files it needs during runtime.
15+
# For example, the render progress file, which is used to resume the render across restarts.
1516
# Default is "bluemap"
1617
data: "${data}"
1718

1819
# This changes the amount of threads that BlueMap will use to render the maps.
19-
# A higher value can improve render-speed but could impact performance on the host machine.
20-
# This should be always below or equal to the number of available processor-cores.
21-
# Zero or a negative value means the amount of available processor-cores subtracted by the value.
22-
# (So a value of -2 with 6 cores results in 4 render-processes)
20+
# A higher value can improve the render speed, but could impact performance on the host machine.
21+
# This should be always below or equal to the number of available processor cores.
22+
# Zero or a negative value means the amount of available processor cores subtracted by the value.
23+
# For example, on a machine with 6 cores, a value of -2 would result in 4 render threads.
2324
# Default is 1
2425
render-thread-count: ${render-thread-count}
2526

26-
# Controls whether BlueMap should try to find and load mod-resources and datapacks from the server/world-directories.
27+
# Controls whether BlueMap should try to find and load mod resources and datapacks from the server/world directories.
2728
# Default is true
2829
scan-for-mod-resources: true
2930
${metrics<<
30-
# If this is true, BlueMap might send really basic metrics reports containing only the implementation-type and the version that is being used to https://metrics.bluecolored.de/bluemap/
31+
# If this is true, BlueMap might send really basic metric reports containing only the implementation type and the version that is being used to https://metrics.bluecolored.de/bluemap/
3132
# This allows me to track the basic usage of BlueMap and helps me stay motivated to further develop this tool! Please leave it on :)
3233
# An example report looks like this: {"implementation":"${implementation}","version":"${version}","mcVersion":"${mcVersion}"}
3334
# Default is true
3435
metrics: true
3536
>>}
36-
# Config-section for debug-logging
37+
# Config-section for debug logging:
3738
log: {
38-
# The file where the debug-log will be written to.
39-
# Comment out to disable debug-logging completely.
40-
# Java String formatting syntax can be used to add time, see: https://docs.oracle.com/javase/8/docs/api/java/util/Formatter.html
41-
# Default is no logging
39+
# The file where the debug log will be written to.
40+
# Comment out to disable debug logging completely.
41+
# Java String formatting syntax can be used to add timestamps, see: https://docs.oracle.com/javase/8/docs/api/java/util/Formatter.html
42+
# Default is no logging.
4243
file: "${logfile}"
4344
#file: "${logfile-with-time}"
4445

45-
# Whether the logger should append to an existing file, or overwrite it
46-
# Default is false
46+
# Whether the logger should append to an existing file, or overwrite it.
47+
# Default is false (overwrite the file).
4748
append: false
4849
}

common/src/main/resources/de/bluecolored/bluemap/config/maps/map.conf

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,91 +3,91 @@
33
## Map-Config ##
44
## ##
55

6-
# The path to the save-folder of the world to render.
7-
# (If this is not defined (commented out or removed), the map will be only registered to the web-server and the web-app
8-
# but not rendered or loaded by BlueMap. This can be used to display a map that has been rendered somewhere else.)
6+
# The path to the save folder of the world to render.
7+
# If this is not defined (commented out or removed), the map will be only registered to the webserver and the webapp
8+
# but not rendered or loaded by BlueMap. This can be used to display a map that has been rendered somewhere else.
99
world: "${world}"
1010

11-
# The dimension of the world. Can be "minecraft:overworld", "minecraft:the_nether", "minecraft:the_end"
12-
# or any dimension-key introduced by a mod or datapack.
11+
# The dimension of the world. Can be "minecraft:overworld", "minecraft:the_nether", "minecraft:the_end",
12+
# or any dimension key introduced by a mod or datapack.
1313
dimension: "${dimension}"
1414

15-
# The display-name of this map -> how this map will be named on the webapp.
15+
# The display name of this map (how this map will be named on the webapp).
1616
# You can change this at any time.
1717
# Default is the id of this map
1818
name: "${name}"
1919

20-
# A lower value makes the map sorted first (in lists and menus), a higher value makes it sorted later.
20+
# A lower value makes the map appear first (in lists and menus), a higher value makes it appear later.
2121
# The value needs to be an integer but it can be negative.
2222
# You can change this at any time.
2323
# Default is 0
2424
sorting: ${sorting}
2525

26-
# The position on the world where the map will be centered if you open it.
26+
# The position in the world where the map will be centered on when you open it.
2727
# You can change this at any time.
2828
# Default is { x: 0, z: 0 }
2929
start-pos: { x: 0, z: 0 }
3030

31-
# The color of the sky as a hex-color
31+
# The color of the sky as a hex-color.
3232
# You can change this at any time.
3333
# Default is "#7dabff"
3434
sky-color: "${sky-color}"
3535

36-
# The color of the void as a hex-color
36+
# The color of the void as a hex-color.
3737
# You can change this at any time.
3838
# Default is "#000000"
3939
void-color: "${void-color}"
4040

41-
# Defines the initial sky-light-strength the map will be set to when it is opened.
42-
# 0 is no sky-light, 1 is fully lighted.
41+
# Defines the initial sky light strength the map will be set to when it is opened.
42+
# 0 is no sky light, 1 is fully lit up.
4343
# You can change this at any time.
4444
# Default is 1
4545
sky-light: 1
4646

47-
# Defines the ambient light-strength that every block is receiving, regardless of the sunlight/blocklight.
48-
# 0 is no ambient light, 1 is fully lighted.
47+
# Defines the ambient light strength that every block is receiving, regardless of the sunlight/blocklight.
48+
# 0 is no ambient light, 1 is fully lit up.
4949
# You can change this at any time.
5050
# Default is 0
5151
ambient-light: ${ambient-light}
5252

53-
# BlueMap tries to omit all blocks that are below this Y-level and are not visible from above-ground.
54-
# More specific: Block-Faces that have a sunlight/skylight value of 0 are removed.
53+
# BlueMap tries to omit all blocks that are below this Y-level and are not visible from above ground.
54+
# More specifically, block faces that have a sunlight/skylight value of 0 are removed.
5555
# 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.
5656
# Changing this value requires a re-render of the map.
57-
# Set to a very high value to remove caves everywhere (e.g. 10000)
58-
# Set to a very low value to remove nothing and render all caves (e.g. -10000)
59-
# Default is 55 (slightly below water-level)
57+
# Set to a very high value to remove caves everywhere (e.g. 10000).
58+
# Set to a very low value to remove nothing and render all caves (e.g. -10000).
59+
# Default is 55 (slightly below water-level).
6060
remove-caves-below-y: ${remove-caves-below-y}
6161

62-
# This is the amount of blocks relative to the "ocean-floor" heightmap that the cave-detection will start at.
63-
# Everything above that (heightmap-relative) y-level will not be removed.
64-
# Comment or set to a very high value to disable using the ocean-floor heightmap for cave-detection.
62+
# This is the amount of blocks relative to the "ocean floor" heightmap that the cave detection will start at.
63+
# Everything above that (heightmap relative) y-level will not be removed.
64+
# Comment or set to a very high value to disable using the ocean floor heightmap for cave detection.
6565
# Changing this value requires a re-render of the map.
66-
# Defaults to 10000 (disabled)
66+
# Defaults to 10000 (disabled).
6767
cave-detection-ocean-floor: -5
6868

69-
# With this value set to true, BlueMap also uses the block-light value (additionally to the sky-light) to "detect caves".
70-
# (See: remove-caves-below-y)
69+
# With this value set to true, BlueMap also uses the block light value (additionally to the sky light) to "detect caves"
70+
# (see the option above: remove-caves-below-y).
7171
# Changing this value requires a re-render of the map.
7272
# Default is false
7373
cave-detection-uses-block-light: false
7474

7575
# The minimum "inhabitedTime" value that a chunk must have to be rendered.
7676
# The "inhabitedTime" value of a chunk refers to the cumulative number of ticks players have been near this chunk.
77-
# If you set this to a value greater than 0, bluemap will only render chunks that players have visited already.
78-
# Default is 0
77+
# If you set this to a value greater than 0, BlueMap will only render chunks that players have visited already.
78+
# Default is 0 (all generated chunks).
7979
min-inhabited-time: 0
8080

81-
# With the render-mask you can limit the map-render.
82-
# This can be used to render only a certain part of a world or ignore the nethers ceiling.
83-
# If you change the render-mask, bluemap automatically tries to update the map,
84-
# including deleting map-tiles which are outside the new limits.
81+
# With the render-mask you can limit the map render.
82+
# This can be used to render only a certain part of a world or ignore the Nether's ceiling.
83+
# If you change the render-mask, BlueMap automatically tries to update the map,
84+
# including deleting map tiles which are outside the new limits.
8585
# You can use "/bluemap fix-edges <map>" to fix any remaining issues.
8686
#
8787
# Please check out the wiki for more detailed information on how to configure this:
8888
# https://bluemap.bluecolored.de/wiki/customization/Masks.html
8989
#
90-
# Default is no mask, bluemap will render everything that exists.
90+
# Default is no mask, BlueMap will render everything that exists.
9191
render-mask: [
9292
{
9393
#min-x: -4000
@@ -98,8 +98,8 @@ render-mask: [
9898
#max-y: 100
9999
}${remove-nether-ceiling<<
100100
{
101-
# this removes everything at and between y 90 and 127 (the nethers ceiling)
102-
# structures above the bedrock-ceiling remain visible
101+
# This removes everything at and between y 90 and 127 (the Nether's ceiling).
102+
# Structures above the bedrock ceiling remain visible.
103103
subtract: true
104104
min-y: 90
105105
max-y: 127
@@ -108,13 +108,13 @@ render-mask: [
108108

109109
# Using this, BlueMap pretends that every Block outside of the defined render-mask is AIR,
110110
# this means you can see the blocks where the world is cut (instead of having a see-through/xray view).
111-
# This has only an effect if you set some render-mask above.
111+
# This only has an effect if you set some render-mask above.
112112
# Changing this value requires a re-render of the map.
113113
# Default is true
114114
render-edges: true
115115

116-
# The sun-light strength that blocks at map-edges will recieve if render-edges is enabled.
117-
# Should be a value between 0 and 15
116+
# The sun-light strength that blocks at map edges will recieve if render-edges is enabled.
117+
# Should be a value between 0 and 15.
118118
# Default is 15
119119
edge-light-strength: 8
120120

@@ -124,7 +124,7 @@ edge-light-strength: 8
124124
enable-perspective-view: true
125125

126126
# Whether the flat (isometric, top-down) view will be enabled for this map.
127-
# Having only flat-view enabled while disabling free-flight and perspective will speed up the render and reduce the maps storage-size.
127+
# Having only flat-view enabled while disabling free-flight and perspective will speed up the render and reduce the maps storage size.
128128
# Default is true
129129
enable-flat-view: true
130130

@@ -134,8 +134,8 @@ enable-flat-view: true
134134
enable-free-flight-view: true
135135

136136
# Whether the hires-layer will be enabled.
137-
# Disabling this will speed up rendering and reduce the size of the map-files a lot.
138-
# But you will not be able to see the full 3d-models if you zoom in on the map.
137+
# Disabling this will speed up rendering and reduce the size of the map files a lot.
138+
# But you will not be able to see the full 3D models if you zoom in on the map.
139139
# Changing this to false will not remove any existing tiles, existing tiles just won't get updated anymore.
140140
# Changing this to true will require a re-render of the map.
141141
# Default is true
@@ -147,14 +147,14 @@ enable-hires: true
147147
# Default is "file"
148148
storage: "file"
149149

150-
# Normally BlueMap detects if a chunk has not yet generated it's light-data and omits rendering those chunks.
151-
# If this is set to true BlueMap will render Chunks even if there is no light-data!
152-
# This can be useful for example if some mod prevents light-data from being saved correctly.
150+
# Normally BlueMap detects if a chunk has not yet generated it's light data and omits rendering those chunks.
151+
# If this is set to true BlueMap will render Chunks even if there is no light data!
152+
# This can be useful for example if some mod prevents light data from being saved correctly.
153153
# However, this also has a few drawbacks:
154-
# - Cave rendering will always be enabled (BlueMap is using the sky-light data to detect "caves")
155-
# - Everything will be rendered fully lit (sky-light value of 15, looks similar to having night vision)
156-
# - Night-mode might not work correctly
157-
# Default is false
154+
# - Cave rendering will always be enabled (BlueMap is using the sky light data to detect "caves").
155+
# - Everything will be rendered fully lit (sky light value of 15, looks similar to having night vision).
156+
# - Night mode might not work correctly.
157+
# Default is false (wait for light data).
158158
ignore-missing-light-data: false
159159

160160
# Here you can define any static marker-sets with markers that should be displayed on the map.

common/src/main/resources/de/bluecolored/bluemap/config/plugin.conf

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
## Plugin-Config ##
44
## ##
55

6-
# If the server should send player-positions to the webapp.
6+
# If the server should send player positions to the webapp.
77
# This only works if the integrated webserver is enabled.
88
# Default is true
99
live-player-markers: true
1010

1111
# A list of gamemodes that will prevent a player from appearing on the map.
12-
# Possible values are: survival, creative, spectator, adventure
12+
# Possible values are: survival, creative, spectator or adventure.
1313
hidden-game-modes: [
14-
"spectator"
14+
"spectator"
1515
]
1616

1717
# If this is true, players that are vanished (by a plugin) will be hidden on the map.
18-
# (This only works with Spigot and Sponge based vanish-plugins)
18+
# (This only works with Spigot and Sponge based vanish plugins).
1919
# Default is true
2020
hide-vanished: true
2121

@@ -27,46 +27,45 @@ hide-invisible: true
2727
# Default is false
2828
hide-sneaking: false
2929

30-
# Hides the player if they are in a sky or block-light level below the given number.
30+
# Hides the player if they are in a sky (or block) light level below the given number.
3131
# BOTH values have to be below the threshold for the player to be hidden!
32-
# E.g. if you set both to 1, then the player will be hidden on the map if they are in absolute darkness
33-
# Or, if you want players only be visible on the surface you set the sky-threshold to something between 1 and 15
34-
# and the block-threshold to 16
35-
# Default is 0 (don't hide the player)
32+
# E.g. if you set both to 1, then the player will be hidden on the map if they are in absolute darkness.
33+
# Or, if you want players only be visible on the surface, then set the sky threshold to something between
34+
# 1 and 15 and the block threshold to 16.
35+
# Default is 0 (don't hide the player).
3636
hide-below-sky-light: 0
3737
hide-below-block-light: 0
3838

39-
# If this is true, players that are on a different world than the viewed map will not appear on the player-list.
39+
# If this is true, players that are on a different world than the viewed map will not appear on the player list.
4040
# Default is false
4141
hide-different-world: false
4242

43-
# The interval in seconds that the markers will be written to the map-storage.
44-
# This is useful if you can't create a live-connection between the server and the webapp
45-
# and the markers can only be updated via the map-storage.
46-
# 0 or lower means that the markers will never be written to the map-storage.
43+
# The interval in seconds at which the markers will be written to the map storage.
44+
# This is useful if you can't create a live connection between the server and the webapp
45+
# and the markers can only be updated via the map storage.
46+
# 0 or lower means that the markers will never be written to the map storage.
4747
# Default is 0
4848
#write-markers-interval: 10
4949

50-
# The interval in seconds that the players will be written to the map-storage.
51-
# This is useful if you can't create a live-connection between the server and the webapp
52-
# and the players can only be updated via the map-storage.
53-
# 0 or lower means that the players will never be written to the map-storage.
50+
# The interval in seconds at which the players will be written to the map storage.
51+
# This is useful if you can't create a live connection between the server and the webapp
52+
# and the players can only be updated via the map storage.
53+
# 0 or lower means that the players will never be written to the map storage.
5454
# Default is 0
5555
#write-players-interval: 3
5656

57-
# Download the skin from mojang-servers when a player joins your server, so it can be used for the player-markers.
57+
# Download the skin from mojang servers when a player joins your server, so it can be used for the player markers.
5858
# Default is true
5959
skin-download: true
6060

61-
# The amount of players that is needed to pause BlueMap's render-threads.
62-
# -> If this amount of players or more is online, bluemap will stop rendering map-updates until enough players
63-
# have logged off again
64-
# Setting this to 0 or -1 will disable this feature -> bluemap will not pause rendering
61+
# The amount of players that is needed to pause BlueMap's render threads.
62+
# If this amount of players or more is online, BlueMap will stop rendering map updates until enough players have logged off again.
63+
# Setting this to 0 or -1 will disable this feature, which means BlueMap will not pause rendering.
6564
# Default is -1
6665
player-render-limit: -1
6766

68-
# The interval in minutes in which a full map-update will be triggered.
69-
# This is ADDITIONALLY to the normal map-update process (in case that fails to detect any file-changes).
67+
# The interval in minutes at which a full map update will be triggered.
68+
# This is IN ADDITION to the normal map update process (in case that fails to detect any file changes).
7069
# ! This DOESN'T re-render the entire map each time, it only checks if there are some changes that have not been rendered yet!
71-
# Default is 1440 (24 hours)
70+
# Default is 1440 (24 hours).
7271
full-update-interval: 1440

0 commit comments

Comments
 (0)