Impossible to prevent bucket item use - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html) +--- Thread: Impossible to prevent bucket item use (/thread-2512.html) Pages:
1
2
|
RE: Impossible to prevent bucket item use - xoft - 09-13-2016 Use a cLineBlockTracer to find the block coords when the client doesn't give you any. RE: Impossible to prevent bucket item use - PureTryOut - 09-14-2016 Well that worked. I still find it weird though, even more so because when using a lighter it's only called once... Currently my method feels more like a hack but ooh well, it does the job. What I ended up with: Code: function OnPlayerUsingItem(Player, BlockX, BlockY, BlockZ, BlockFace, CursorX, CursorY, CursorZ, BlockType, BlockMeta) RE: Impossible to prevent bucket item use - NiLSPACE - 09-15-2016 @xoft didn't you do some work on the OnPlayerPlacingBlock and OnPlayerBreakingBlock hooks I thought it detected water and lava placements now. RE: Impossible to prevent bucket item use - xoft - 09-15-2016 I honestly don't remember. |