[Mod] Cleaner [cleaner]

Post Reply
User avatar
AntumDeluge
Member
Posts: 194
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge
Contact:

[Mod] Cleaner [cleaner]

by AntumDeluge » Post

Cleaner - Remove Unknown Entities, Nodes, & Items

Description:

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

Licensing:

MIT

Requirements:
  • Minetest 0.4.16 or newer
  • Depends: none
Usage:

There are three files in the world path that can be edited: clean_entities.json, clean_nodes.json, & clean_items.json. If they do not already exist when the server is started they will be created automatically.

They are formatted as follows:

Code: Select all

{
  "remove":
  [
    "creatures:ghost",
    "creatures:sheep",
  ],
  "replace":
  {
    "biofuel:biofuel":"default:leaves",
    "helicopter:heli":"default:copper_lump",
    "unifieddyes:airbrush":"default:coal_lump",
  },
}
remove key works for nodes & entities. replace key works for nodes & items. Their functions are self-explanatory.

Links:
Releases:
  • Image
Last edited by AntumDeluge on Fri May 28, 2021 03:27, edited 7 times in total.

John_Constructor
Member
Posts: 76
Joined: Thu Jun 01, 2017 20:06
GitHub: John-Constructor
In-game: Nooberton
Location: On Minetest 24/7

Re: [Mod] Cleaner [0.4] [cleaner]

by John_Constructor » Post

This might be helpful! Definitely for those who have an ore mod and might want to disable it for their world.
Constructing mechs and wingless aircraft since 2016.

User avatar
azekill_DIABLO
Member
Posts: 7502
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Cleaner [0.4] [cleaner]

by azekill_DIABLO » Post

+1 definitivly needed

IanniPowerup!!!
Member
Posts: 100
Joined: Wed Nov 29, 2017 17:33
In-game: IanniPowerup
Contact:

Re: [Mod] Cleaner [0.4] [cleaner]

by IanniPowerup!!! » Post

doesnt work :(

User avatar
Grizzly Adam
Member
Posts: 252
Joined: Sat Aug 05, 2017 01:28
GitHub: Grizzly-Adam
Location: Lost in America
Contact:

Re: [Mod] Cleaner [0.4] [cleaner]

by Grizzly Adam » Post

Does work. Thank you.
Check out my Mods: BBQ Mod Crops Plus

User avatar
neko259
Member
Posts: 805
Joined: Sun Jun 19, 2011 06:51

Re: [Mod] Cleaner [0.4] [cleaner]

by neko259 » Post

It would be better to add not only nodes to remove but node substitutes too. Sometimes a node was renamed or moved to other mod and can be simply replaced.

mase
Member
Posts: 66
Joined: Tue Feb 21, 2017 20:16
In-game: mase

Re: [Mod] Cleaner [0.4] [cleaner]

by mase » Post

How can I get rid of whole node or entity groups, for example all zombies,
or all kind of trails from the trails mod?

bell07
Member
Posts: 600
Joined: Sun Sep 04, 2016 15:15
GitHub: bell07

Re: [Mod] Cleaner [0.4] [cleaner]

by bell07 » Post

Please use register_lbm with run_at_every_load instead of register_abm to clean nodes. Should use less ressources.

User avatar
AntumDeluge
Member
Posts: 194
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge
Contact:

Re: [Mod] Cleaner [0.4] [cleaner]

by AntumDeluge » Post

Thank you bell07. I will check that out.

mase
Member
Posts: 66
Joined: Tue Feb 21, 2017 20:16
In-game: mase

Re: [Mod] Cleaner [0.4] [cleaner]

by mase » Post

Does this mod remove all unknown objects on server start, or only when a player is near?

User avatar
AntumDeluge
Member
Posts: 194
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge
Contact:

Re: [Mod] Cleaner [0.4] [cleaner]

by AntumDeluge » Post

mase wrote:Does this mod remove all unknown objects on server start, or only when a player is near?
As I understand it, only when a player is near. But it's been a while since I looked at the code.

User avatar
AntumDeluge
Member
Posts: 194
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge
Contact:

Re: [Mod] Cleaner [cleaner] (v1.0)

by AntumDeluge » Post

bell07 wrote:
Sun Jul 15, 2018 19:39
Please use register_lbm with run_at_every_load instead of register_abm to clean nodes. Should use less ressources.
Added to my TODO list. I am active again.

User avatar
AntumDeluge
Member
Posts: 194
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge
Contact:

Re: [Mod] Cleaner [cleaner] (v1.0)

by AntumDeluge » Post

neko259 wrote:
Mon Dec 25, 2017 11:05
It would be better to add not only nodes to remove but node substitutes too. Sometimes a node was renamed or moved to other mod and can be simply replaced.
Done.

User avatar
AntumDeluge
Member
Posts: 194
Joined: Sun Aug 07, 2016 05:42
GitHub: AntumDeluge
IRC: AntumDeluge
Contact:

Re: [Mod] Cleaner [0.4] [cleaner]

by AntumDeluge » Post

bell07 wrote:
Sun Jul 15, 2018 19:39
Please use register_lbm with run_at_every_load instead of register_abm to clean nodes. Should use less ressources.
Done: 2c127af

Post Reply

Who is online

Users browsing this forum: MirceaKitsune and 2 guests