I love the green wisps, but I have also noticed the lag capabilities of the wisps. Perhaps consider making it so that whenever the world quits, despawn all wisps not in jars, like:
local function freewispwipe()
mod_storage:set_string("wisps", "")
mod_storage:set_string("jars", minetest.serialize(data.jars))
end
So, running, in this example, freewispwipe instead of save in:
minetest.register_on_shutdown(freewispwipe)
Also, it gets annoying trying to chase down the wisps when they get too high or too low. Would it be possible to make the wisps first try to flee if a player is too close (which it already does), then, if no player is nearby, start trying to approach nodes from group:tree? It would make sense for them to approach the source of their creation when they are left alone.
I don't know how to code that, sorry. I tried, but each time I tried it seems to have trouble as soon as the wisp stopped being too close to you, the game crashed.
I love the green wisps, but I have also noticed the lag capabilities of the wisps. Perhaps consider making it so that whenever the world quits, despawn all wisps not in jars, like:
So, running, in this example, freewispwipe instead of save in: minetest.register_on_shutdown(freewispwipe)
Also, it gets annoying trying to chase down the wisps when they get too high or too low. Would it be possible to make the wisps first try to flee if a player is too close (which it already does), then, if no player is nearby, start trying to approach nodes from group:tree? It would make sense for them to approach the source of their creation when they are left alone.
I don't know how to code that, sorry. I tried, but each time I tried it seems to have trouble as soon as the wisp stopped being too close to you, the game crashed.