[mod] Remove unknown nodes [remove_unknown]

Post Reply
User avatar
indriApollo
Member
Posts: 146
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

[mod] Remove unknown nodes [remove_unknown]

by indriApollo » Post

remove_unknown

Use this mod to remove unknown nodes from your minetest world.

If worldedit is installed, select a region and execute /rm.

Alternatively, you can use /rm <radius>

Privileges :
rm

Depends :
-- none --

Licence :
GNU LGPL v2.1

Browse code :
https://github.com/indriApollo/remove_unknown

Download :
https://github.com/indriApollo/remove_u ... master.zip

User avatar
rubenwardy
Moderator
Posts: 7026
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: London, United Kingdom
Contact:

Re: [mod] Remove unknown nodes [remove_unknown]

by rubenwardy » Post

There is no point using voxel manip when you use minetest.get_node. Unless you mean to force load the area.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Krock
Developer
Posts: 4683
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [mod] Remove unknown nodes [remove_unknown]

by Krock » Post

Exactly. The variable "nodes" in "remove_unknown.rm()" is never used.
Please choose one way to remove those unknown nodes and don't mix them together.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
indriApollo
Member
Posts: 146
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

Re: [mod] Remove unknown nodes [remove_unknown]

by indriApollo » Post

Woops you are both right, I'm now using the voxel manipulator correctly (I hope :).
This mod was quickly written to help a server admin and was mostly copy-pasted from an other mod I've made that fixes the orientation of torches. Since you can't set param2 with voxelmanip and I was too lazy to write a for loop, I use iterp() on a selection and then minetest.get_node/set/remove.
But I realise now it's very inefficient :/

User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

Re: [mod] Remove unknown nodes [remove_unknown]

by Bas080 » Post

Would like to see this mod working correctly. Should be in default as it is really annoying having all these undefined nodes and nothing to do about it except define 'air' aliases for them.

User avatar
indriApollo
Member
Posts: 146
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

Re: [mod] Remove unknown nodes [remove_unknown]

by indriApollo » Post

This has nothing to do in default. Unknown nodes only appear when you mess with your mods.
My mod is more of a one-time tool for server admins who screw things up. (as I do regularly)

Post Reply