add a procedure that triggers if only the head of the player or certain entity or entities are within a block
this procedure would be used with a suffocation procedure to check if a player is in a custom poison gas block and start suffocating them if their head was inside it.
Issue comments
I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei
You can do this by checking if the block on the entity location + 1 is not air, which can be done with procedures.