get_string and set_string appear not working
Here is my code:
This is an ABM that runs every second, but it still reruns the same code, doesn't matter if generatingportal is not nil. Anyone has an idea on this issue?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_abm({
nodenames = "nether:nether_portal_creator",
interval = 1.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
if nodemeta:get_string("generatingportal") == "" or nodemeta:get_string("generatingportal") == nil then
nodemeta:set_string("generatingportal", "true")
...
end
})
This is an ABM that runs every second, but it still reruns the same code, doesn't matter if generatingportal is not nil. Anyone has an idea on this issue?