A Luanti (minetest) mod to remove & replace unknown entities, nodes, & items.
Find a file
2021-07-12 21:43:16 -07:00
docs Re-generate HTML docs 2021-07-12 18:12:00 -07:00
locale Add details to chat command result messages 2021-07-12 21:43:16 -07:00
api.lua add support for unregistering ores via world path file 2021-07-12 18:11:37 -07:00
changelog.txt Add localization support... 2021-07-12 20:02:03 -07:00
chat.lua Add details to chat command result messages 2021-07-12 21:43:16 -07:00
entities.lua use single json file for cleaning all types 2021-07-12 18:09:54 -07:00
init.lua add support for unregistering ores via world path file 2021-07-12 18:11:37 -07:00
items.lua use single json file for cleaning all types 2021-07-12 18:09:54 -07:00
LICENSE.txt Change license to MIT 2021-05-18 17:46:18 -07:00
misc_functions.lua use single json file for cleaning all types 2021-07-12 18:09:54 -07:00
mod.conf Add localization support... 2021-07-12 20:02:03 -07:00
nodes.lua use single json file for cleaning all types 2021-07-12 18:09:54 -07:00
ores.lua add support for unregistering ores via world path file 2021-07-12 18:11:37 -07:00
README.md Add localization support... 2021-07-12 20:02:03 -07:00
settings.lua Add setting for enabling "unsafe" methods & commands 2021-07-12 15:41:53 -07:00
settingtypes.txt Add setting for enabling "unsafe" methods & commands 2021-07-12 15:41:53 -07:00
TODO.txt Add to TODO list 2021-07-12 20:02:44 -07:00

Cleaner mod for Minetest

Description:

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

Licensing:

MIT

Requirements:

  • Minetest 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