10-17-2014, 04:51 AM
The hooks are already available: HOOK_CHUNK_GENERATED, HOOK_PLAYER_BREAKING_BLOCK.
There will be way too many files - one file for each chunk, and you need to take care of all of them, so that you can restore the world back once players start digging. I recommend saving each chunk as a .schematic file in a folder; make one folder per 32x32 chunks (so the path will be something like "SavedChunks/r.-1.0/ch.-2.5.schematic" for chunk [-2, 5])
I use ZeroBrane Studio - I wrote a plugin so that it can debug MCServer plugins directly while the server is running, and the entire thing is awesome. Set it up according to this guide: http://mc-server.xoft.cz/LuaAPI/SettingUpZeroBrane.html
There will be way too many files - one file for each chunk, and you need to take care of all of them, so that you can restore the world back once players start digging. I recommend saving each chunk as a .schematic file in a folder; make one folder per 32x32 chunks (so the path will be something like "SavedChunks/r.-1.0/ch.-2.5.schematic" for chunk [-2, 5])
I use ZeroBrane Studio - I wrote a plugin so that it can debug MCServer plugins directly while the server is running, and the entire thing is awesome. Set it up according to this guide: http://mc-server.xoft.cz/LuaAPI/SettingUpZeroBrane.html