Removing unknown entities

Post Reply
Marshall_maz
Member
Posts: 249
Joined: Mon Jul 14, 2014 17:13
In-game: Mazal
Location: Cullinan, South-Africa

Removing unknown entities

by Marshall_maz » Post

Hi everyone , I am trying to clean up my world from a previous mobs mod that I removed.

I managed to remove the unknown nodes with this script as a mod that someone here gave me a while ago:

Code: Select all

local old_nodes = {"mobs:rat"}

for _,node_name in ipairs(old_nodes) do
    minetest.register_node(":"..node_name, {
        groups = {old=1},
    })
end

minetest.register_abm({
    nodenames = {"group:old"},
    interval = 1,
    chance = 1,
    action = function(pos, node)
        minetest.remove_node(pos)
    end,
})
It removed nodes like eggs for example. But it doesn't work for entities like mobs:rat

How must I change the script to remove the unknown entities please.

Thank you

Marshall_maz
Member
Posts: 249
Joined: Mon Jul 14, 2014 17:13
In-game: Mazal
Location: Cullinan, South-Africa

Re: Removing unknown entities

by Marshall_maz » Post

Found this: viewtopic.php?id=2777

and going to try that

shadowzone
Member
Posts: 78
Joined: Tue Jul 01, 2014 22:02
GitHub: TheShadowZone12
IRC: shadowzone
In-game: shadowzone
Location: Nowhere Sorry

Re: Removing unknown entities

by shadowzone » Post

Try /clearobjects
Hey!

Marshall_maz
Member
Posts: 249
Joined: Mon Jul 14, 2014 17:13
In-game: Mazal
Location: Cullinan, South-Africa

Re: Removing unknown entities

by Marshall_maz » Post

shadowzone wrote:Try /clearobjects
I did , but that crashes the server.

The above mentioned link worked perfectly.

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests