Cuberite Forum

Full Version: How to test if the player is standing on a block?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I was wondering if there was a method to check and see if the player is standing on a block.

I have tried checking the block below the player to see if it is air, but that doesn't seem to work well, since the player may be half way through the air block right above the floor.

If someone could help me out with this, that'd be great.

Thanks,
Nathan
You can use the IsOnGround function ( if (Player:IsOnGround()) then )
(05-11-2015, 04:32 AM)NiLSPACE Wrote: [ -> ]You can use the IsOnGround function ( if (Player:IsOnGround()) then )

Whoops, I guess I missed that in the documentation. Thanks!