External Publication
Visit Post

Modding Discussion • Re: Check for air not working as expected

Luanti Forums - Index page [Unofficial] February 9, 2026
Source

-- ...but it can be flora if core.get_item_group(above_node_name, "flora") ~= 0 then

I think this should be == 0 because you want to exit if it's not flora

In the future, I recommend using print statements or asserts to check your assumptions

When asking for help, you should also make a minimal reproducible example and actually test it to narrow things down and make sure it's not a silly mistake like this

Also, you probably want to be using airlike and buildable_to rather than checking for specific node names and groups

Statistics: Posted by rubenwardy — Mon Feb 09, 2026 01:19


Discussion in the ATmosphere

Loading comments...