A Luanti (minetest) mod to remove & replace unknown entities, nodes, & items.
Find a file
2025-01-18 02:31:16 -08:00
.github/workflows Change workflow to build versioned docs on gh-pages 2021-08-16 02:24:16 -07:00
.ldoc Update for name change to Luanti 2025-01-18 02:27:49 -08:00
locale Update localization template & Spanish translation 2021-07-31 01:20:16 -07:00
textures Add pencil tool for erasing, adding, & swapping nodes 2021-07-28 01:39:38 -07:00
.cdb.json Update ContentDB config for move to Codeberg 2025-01-18 02:28:17 -08:00
.gitattributes Add helper script for setting version 2021-08-14 21:55:00 -07:00
api.lua Docstrings update 2021-07-31 15:43:58 -07:00
changelog.txt Update version & changelog 2025-01-18 02:31:16 -08:00
chat.lua Add FIXME note 2025-01-18 02:18:34 -08:00
entities.lua use single json file for cleaning all types 2021-07-12 18:09:54 -07:00
init.lua Move pencil into tools.lua 2021-07-29 13:38:10 -07:00
items.lua Add remove_item function to API 2021-07-12 23:44:28 -07:00
LICENSE.txt Change license to MIT 2021-05-18 17:46:18 -07:00
misc_functions.lua Use sounds mod for playing sounds 2021-08-14 21:51:59 -07:00
mod.conf Update version & changelog 2025-01-18 02:31:16 -08:00
nodes.lua Use more appropriate node swapping 2021-07-27 16:58:33 -07:00
ores.lua add support for unregistering ores via world path file 2021-07-12 18:11:37 -07:00
README.md Update for name change to Luanti 2025-01-18 02:27:49 -08:00
screenshot.png Add screenshot 2021-07-30 23:20:45 -07:00
set_version.py Add helper script for setting version 2021-08-14 21:55:00 -07:00
settings.lua Add some details to settings docstrings 2021-07-30 16:15:52 -07:00
settingtypes.txt Add some details to settings docstrings 2021-07-30 16:15:52 -07:00
TODO.txt Add to TODO list 2021-08-08 20:49:39 -07:00
tools.lua Update docstrings 2021-07-31 18:47:34 -07:00

Cleaner mod for Luanti

Description:

A Luanti (Minetest) mod that can be used to remove/replace unknown entities, nodes, & items. Originally forked from PilzAdam's clean mod.

screenshot

Licensing:

  • Code: MIT
  • Textures: CC0

Requirements:

  • Luanti minimum version: 5.0
  • Depends: none

Usage:

Registering items, entities, etc. for cleaning can be done in cleaner.json in the world directory. If it does not exist it will be created automatically when the server is started.

It is formatted as follows:

{
	"entities" :
	{
		"remove" : []
	},
	"items" :
	{
		"replace" : {}
	},
	"nodes" :
	{
		"remove" : [],
		"replace" : {}
	},
	"ores" :
	{
		"remove" : []
	}
}

Cleaning nodes example:

{
	"nodes" :
	{
		"remove" : [
			"old:node_1",
			"old:node_2",
		],
		"replace" : {
			"old:node_3" : "new:node_1",
			"old:node_4" : "new:node_2",
		}
	},
}

remove key works for nodes, entities, & ores. replace key works for nodes & items. Their functions are self-explanatory.

Settings:

cleaner.unsafe
- Enables unsafe methods & commands (remove_ore).
- type:    bool
- default: false