Place block at X, Y and X
#1
Brick 
How do i place a block at X, Y and Z?

I'm making a protection plugin and the protection works and in the way that when someone breaks a block, it will break, just not return the item, i just need to put the exactly same block there and im sorta done.
Reply
Thanks given by:
#2
Protection should work by disabling the breaking altogether, rather than fixing the aftermath. If the offender breaks a chest, you'd have to replace all the contents - it'd be much easier not to break the chest at all. See the OnPlayerBreakingBlock hook for details on how to do that:
http://mc-server.org/wiki/doku.php?id=ap...akingblock

As to your question, block placement is done using cWorld:SetBlock() or cWorld:FastSetBlock(); the difference is that FastSetBlock() doesn't trigger block updates and doesn't process block entities.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)