mapcleaner/readme.md

59 lines
1.4 KiB
Markdown
Raw Normal View History

2020-01-07 13:03:29 +01:00
mapcleaner
-----------------
A mod for [minetest](http://www.minetest.net)
2020-06-29 11:03:40 +02:00
![](https://github.com/BuckarooBanzay/mapcleaner/workflows/luacheck/badge.svg)
![](https://github.com/BuckarooBanzay/mapcleaner/workflows/integration-test/badge.svg)
2020-01-07 13:03:29 +01:00
# Overview
Removes unprotected map chunks on an online server
2020-01-07 13:07:41 +01:00
# Rationale
2020-06-24 13:54:36 +02:00
Cleaning up unused and stale mapgen only blocks
2020-01-07 13:07:41 +01:00
# Process
2020-01-28 12:51:51 +01:00
Runs in the background, checks and removes chunks from bottom to top.
2020-01-07 13:07:41 +01:00
2020-01-07 13:03:29 +01:00
# Protected nodes
List of protected nodes:
```
protector:protect
protector:protect2
travelnet:travelnet
xp_redo:protector
priv_protector:protector
default:chest_protected
bones:bones
advtrains:dtrack_st
advtrains:dtrack_st_45
advtrains:dtrack_cr_60
2020-01-29 18:15:00 +01:00
group:save_in_at_nodedb
2020-01-07 13:03:29 +01:00
```
# Safety range
* Player distance: 5*80 blocks
* For a chunk to be removed all surrounding chunks have to be unprotected
2020-01-28 12:51:51 +01:00
# Chatcommands
2020-01-07 13:07:41 +01:00
2020-01-28 12:51:51 +01:00
* **/mapcleaner_status** shows the current status (current position, statistics)
* **/mapcleaner_max_time [microseconds]** shows or sets the max cpu-time per step
* **/mapcleaner_step_interval [seconds]** shows or sets the seconds between intervals
* **/mapcleaner_run [true|false]** show, start or stop the process
2020-06-24 13:54:36 +02:00
* **/mapcleaner_max_lag [seconds]** sets the max lag value where the mapcleaner stops running
2020-01-28 12:51:51 +01:00
All settings are persisted across restarts
**NOTE**: by default the process is stopped and has to be started initially with **/mapcleaner_run true**
2020-01-07 13:07:41 +01:00
2020-01-07 13:03:29 +01:00
# License
MIT