[mod] Remove unknown nodes [remove_unknown]

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

[mod] Remove unknown nodes [remove_unknown]

by indriApollo » Wed Feb 18, 2015 18:41

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
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: [mod] Remove unknown nodes [remove_unknown]

by rubenwardy » Wed Feb 18, 2015 19:00

There is no point using voxel manip when you use minetest.get_node. Unless you mean to force load the area.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [mod] Remove unknown nodes [remove_unknown]

by Krock » Wed Feb 18, 2015 19:55

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.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

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

Re: [mod] Remove unknown nodes [remove_unknown]

by indriApollo » Thu Feb 19, 2015 15:01

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

Re: [mod] Remove unknown nodes [remove_unknown]

by Bas080 » Thu Feb 19, 2015 19:56

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: 144
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay

Re: [mod] Remove unknown nodes [remove_unknown]

by indriApollo » Thu Feb 19, 2015 20:20

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)
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 26 guests

cron