Gravity data

This commit is contained in:
XevianLight
2026-02-03 23:35:41 -07:00
parent 74731444ea
commit 331da7c78f
5 changed files with 219 additions and 3 deletions

View File

@@ -23,6 +23,7 @@ public class OxygenService {
public static boolean hasOxygen(Entity entity) {
// Not sure if this is at the entity's feet, head, or the middle... research later
// Blockpos is from entity's feet ~Xev
BlockPos entityBlockPos = BlockPos.containing(entity.getX(), entity.getY(), entity.getZ());
return hasOxygen(entity.level(), entityBlockPos);
}