{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreidh5tzc5fpskckgdqseriivlxwiuju3wleecgzg7hwuj6awpg2ime",
    "uri": "at://did:plc:pvz7ox4x2ehjiezsahttqyyz/app.bsky.feed.post/3me6kcxr2qfp2"
  },
  "path": "/viewtopic.php?p=449353#p449353",
  "publishedAt": "2026-02-06T08:54:19.000Z",
  "site": "https://forum.luanti.org",
  "tags": [
    "karlexceed"
  ],
  "textContent": "> What do you mean that it doesn't work 100% of the time. Is it running in cases where it shouldn't, or isn't in cases where it should?\n> The most recent bit of code you shared looks like the soil check is ignored, as the above node check will run every time regardless of the results of the soil check. If you want the function to only run when both cases are true (the node is soil with air above) you need to put both checks into the same if conditional, or nest the air check inside the soil check.\n\nThe nodes are spawning, replacing nodes that already exist on top of the soil blocks. I want it to only spawn them where the space on top of the soil block is air.\n\nThere are several other checks in the function, each bailing out with a \"return\" if the check fails. The intention is that every check must pass and at the very end a node is placed on a soil block with nothing already on top of it.\n\n\n> The MapBlock above may have been unloaded before the ABM was executed.\n\nDuring my testing, I'm hovering directly above the area and watching.\n\nStatistics: Posted by karlexceed — Fri Feb 06, 2026 08:54\n\n* * *",
  "title": "Modding Discussion • Re: Check for air not working as expected",
  "updatedAt": "2026-02-06T08:54:19.000Z"
}