Scarpet: No way to directly access an entity's `FallDistance` without querying NBT
James103 opened this issue ยท 1 comments
As of Carpet Mod 1.4.57 and Minecraft 1.18.1, there is no way that I know of to access an entity's fall distance from Scarpet without querying full NBT.
To fix this, a new function query(e, 'fall_distance')
and modify(e, 'fall_distance', value)
will need to be added, which directly gets the current fall distance using available methods.
For example, I would like to allow survival players to fly in certain conditions, but disable flying capabilities when the player is falling more than a short distance to ensure that players that are knocked out of the air still take fall damage.