I have the following code in my plugin CRPG, similar to bukkit's MCMMO. It's almost ready for release however, I have the following code
And it is working fine in that it's destroying the blocks a character clicks on, however I'm unsure of how to get the blocks to be instantly destroyed and have the item drop like normal. Is there some class for this that can do this?
Any help with this would be greatly appreciated!
Code:
World = Player:GetWorld()
World:DigBlock(BlockX, BlockY, BlockZ)
And it is working fine in that it's destroying the blocks a character clicks on, however I'm unsure of how to get the blocks to be instantly destroyed and have the item drop like normal. Is there some class for this that can do this?
Any help with this would be greatly appreciated!