Cuberite Forum

Full Version: Doors control
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I control/get door's status?
Use the function GetBlockTypeMeta from cWorld. With the meta value you should be able to check the door status.
(10-29-2015, 02:55 AM)Seadragon91 Wrote: [ -> ]Use the function GetBlockTypeMeta from cWorld. With the meta value you should be able to check the door status.

Thank you.
And how can I enable/disable open doors by player?
This should be possible with the hook HOOK_PLAYER_RIGHT_CLICK
I known the hook. But it's do not work properly Sad
I believe there was a cWorld:ToggleDoor function, but it seems it isn't exported yet.