ReGen Chunk in selfmade World
#6
(05-15-2017, 05:18 AM)xoft Wrote: In the Hooks section of the API documentation, there's the list of hooks Cuberite supports. I think you want the HOOK_PLAYER_BROKEN_BLOCK and HOOK_PLAYER_PLACED_BLOCK.
https://api.cuberite.org/#hooks

Copying the chunk one block at a time will be slow. Instead, use a cBlockArea to read the entire chunk in one API call and write it in another single API call.

Note, though, that the cBlockArea currently doesn't support block entities nor regular entities, so your plugin will have to process those separately.

Do you have an simple example for copy with cBlockArea?
Reply
Thanks given by:


Messages In This Thread
ReGen Chunk in selfmade World - by moiko89 - 12-17-2016, 10:13 PM
RE: ReGen Chunk in selfmade World - by NiLSPACE - 12-17-2016, 10:32 PM
RE: ReGen Chunk in selfmade World - by xoft - 12-17-2016, 10:42 PM
RE: ReGen Chunk in selfmade World - by moiko89 - 05-14-2017, 10:01 PM
RE: ReGen Chunk in selfmade World - by xoft - 05-15-2017, 05:18 AM
RE: ReGen Chunk in selfmade World - by moiko89 - 05-16-2017, 04:16 AM
RE: ReGen Chunk in selfmade World - by xoft - 05-16-2017, 07:41 AM
RE: ReGen Chunk in selfmade World - by moiko89 - 05-17-2017, 05:04 AM
RE: ReGen Chunk in selfmade World - by xoft - 05-17-2017, 07:56 AM



Users browsing this thread: 2 Guest(s)