diff options
author | Alexander Harkness <bearbin@gmail.com> | 2013-07-27 17:16:04 +0200 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2013-07-27 17:16:04 +0200 |
commit | 0623a4f9be1c21651ea212f7b4d86136a67ddffe (patch) | |
tree | 5a96f13f72fa394bf74d10839a76ec7a1eac9275 /Core/onchunkgenerating.lua | |
parent | Removed all the pre-exising core files. (diff) | |
download | cuberite-0623a4f9be1c21651ea212f7b4d86136a67ddffe.tar cuberite-0623a4f9be1c21651ea212f7b4d86136a67ddffe.tar.gz cuberite-0623a4f9be1c21651ea212f7b4d86136a67ddffe.tar.bz2 cuberite-0623a4f9be1c21651ea212f7b4d86136a67ddffe.tar.lz cuberite-0623a4f9be1c21651ea212f7b4d86136a67ddffe.tar.xz cuberite-0623a4f9be1c21651ea212f7b4d86136a67ddffe.tar.zst cuberite-0623a4f9be1c21651ea212f7b4d86136a67ddffe.zip |
Diffstat (limited to '')
-rw-r--r-- | Core/onchunkgenerating.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Core/onchunkgenerating.lua b/Core/onchunkgenerating.lua new file mode 100644 index 000000000..44a6cf298 --- /dev/null +++ b/Core/onchunkgenerating.lua @@ -0,0 +1,16 @@ +function OnChunkGenerating(World, ChunkX, ChunkZ, ChunkDesc) + if (LimitWorld == true) then + if not LimitWorldsCuboid[World:GetName()]:IsInside( Vector3i(ChunkX, 128, ChunkZ) ) then + FillBlocks(ChunkDesc) + end + end +end + +function FillBlocks(ChunkDesc) + ChunkDesc:FillBlocks(0,0) + ChunkDesc:SetUseDefaultBiomes(false) + ChunkDesc:SetUseDefaultHeight(false) + ChunkDesc:SetUseDefaultComposition(false) + ChunkDesc:SetUseDefaultStructures(false) + ChunkDesc:SetUseDefaultFinish(false) +end
\ No newline at end of file |