mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Add /emergeblocks command and core.emerge_area() Lua API
This commit is contained in:
parent
596484da4f
commit
f062bbd7a1
9 changed files with 162 additions and 49 deletions
|
@ -109,9 +109,13 @@ public:
|
|||
static void getMapgenNames(std::list<const char *> &mgnames);
|
||||
void startThreads();
|
||||
void stopThreads();
|
||||
bool enqueueBlockEmerge(u16 peer_id, v3s16 p, bool allow_generate);
|
||||
bool enqueueBlockEmerge(u16 peer_id, v3s16 p, bool allow_generate,
|
||||
bool force_queue_block=false);
|
||||
|
||||
//mapgen helper methods
|
||||
v3s16 getContainingChunk(v3s16 blockpos);
|
||||
static v3s16 getContainingChunk(v3s16 blockpos, s16 chunksize);
|
||||
|
||||
// mapgen helper methods
|
||||
Biome *getBiomeAtPoint(v3s16 p);
|
||||
int getGroundLevelAtPoint(v2s16 p);
|
||||
bool isBlockUnderground(v3s16 blockpos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue