Remove nodes when a mod is disabled?

Post Reply
User avatar
TumeniNodes
Member
Posts: 2943
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Remove nodes when a mod is disabled?

by TumeniNodes » Post

I am just wondering, if it is even possible..., and could be considered for the next release...
to make it so, when the user disables a mod, which was previously enabled in a world, that all nodes/items/objects associated with that mod, are removed from the world?
I imagine if it is possible, it would most likely entail lots of work. Which is why I am suggesting it for a future release, given whether it is possible.
It would definitely be a pretty awesome feature, and I think many users would be thrilled. I know I would :D
A Wonderful World

User avatar
xeranas
Member
Posts: 162
Joined: Fri Feb 05, 2016 11:06

Re: Remove nodes when a mod is disabled?

by xeranas » Post

I believe there exist mod for that, probably based on ABM.

If I build magnificent castle and and accidentally disable lets say castle bricks mod and then load map. Goodbye to my castle. Same applies with other people maps or old saved worlds. Currently it says what missing and you can fix map without losing creations. I think 'destructive' responsibility should be at mod level so user can blame only himself for losing stuff.

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: Remove nodes when a mod is disabled?

by BBmine » Post

I know you can replace nodes. Make a temporary folder called alias or something. In there, make an init.lua file. I will give you an example of what to put in init.lua:

minetest.register_alias("protector:protect", "default:steelblock")

est31
Developer
Posts: 173
Joined: Mon Dec 29, 2014 01:49

Re: Remove nodes when a mod is disabled?

by est31 » Post

You can use LBMs for that, they were designed for use cases including this. You'd need to write a mod for it of course.

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests