Inaccurate entity data tracking and strange advancement behavior

Status
Resolved
Issue description

First off, one particular advancement (fyi its the "Tough Opponent" one) is being very stubborn and not appearing in-game. All seems well in the workspace however it will not register in minecraft. Even commands, like grant advancement don't even register it's existence.

Also, the other issue (the one I'm most concerned about) is in my first procedure "dark damage", where if you are in darkness it will hurt you. I have added particles to see where it is tracking, however the location of particles and where the game is finding the light level seem to be separate. The issue here is that when standing next to a block, specifically on it's north side, it will appear to the procedure that you are inside the block, registering as light level 0. Is there anyway to fix this? I have tried offsetting the co-ords but that doesn't work.

Workspace attached

Issue comments

First off, one particular advancement (fyi its the "Tough Opponent" one) is being very stubborn and not appearing in-game. All seems well in the workspace however it will not register in minecraft. Even commands, like grant advancement don't even register it's existence.

Covered by: https://mcreator.net/tracker/issue/64826

Also, the other issue (the one I'm most concerned about) is in my first procedure "dark damage", where if you are in darkness it will hurt you. I have added particles to see where it is tracking, however the location of particles and where the game is finding the light level seem to be separate. The issue here is that when standing next to a block, specifically on it's north side, it will appear to the procedure that you are inside the block, registering as light level 0. Is there anyway to fix this? I have tried offsetting the co-ords but that doesn't work.

Offset light level check by at least 2 blocks, it needs to be above all blocks to detect properly.