master
azekillDIABLO 2017-02-18 13:08:02 +01:00
parent 5ab1b2a64b
commit d6d454942b
9 changed files with 19 additions and 23 deletions

View File

@ -1,14 +1,10 @@
# ziggurat
This mod places ziggurats in desert and jungle biomes. They're full of sealed, stone chambers, occasionally containing a treasure chest (if you're running my booty mod). Living mummies, horrible curses, and savage priests are not included.
![screenshot](https://raw.githubusercontent.com/duane-r/zigg/master/screenshot1.png)
# zungle
This mod places temples in jungle biomes. They're full of sealed, stone chambers, occasionally containing a treasure chest (if you're running duane's booty mod). Living mummies, horrible curses, and savage priests are not included.
The source is available on github.
Code: LGPL2
Mod dependencies: default
Mod dependencies: default, booty?
Download: https://github.com/duane-r/zigg/archive/master.zip

View File

@ -1,2 +1,2 @@
default
booty?
booty?

View File

@ -1,15 +1,15 @@
-- Zigg init.lua
-- zungle init.lua
-- Copyright Duane Robertson (duane@duanerobertson.com), 2017
-- Distributed under the LGPLv2.1 (https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html)
zigg_mod = {}
zigg_mod.version = "1.0"
zigg_mod.path = minetest.get_modpath(minetest.get_current_modname())
zigg_mod.world = minetest.get_worldpath()
zungle_mod = {}
zungle_mod.version = "1.0"
zungle_mod.path = minetest.get_modpath(minetest.get_current_modname())
zungle_mod.world = minetest.get_worldpath()
function zigg_mod.clone_node(name)
function zungle_mod.clone_node(name)
if not (name and type(name) == 'string') then
return
end
@ -20,4 +20,4 @@ function zigg_mod.clone_node(name)
end
dofile(zigg_mod.path .. "/mapgen.lua")
dofile(zungle_mod.path .. "/mapgen.lua")

View File

@ -1,4 +1,4 @@
-- Ziggurat mapgen.lua
-- zungle mapgen.lua
-- Copyright Duane Robertson (duane@duanerobertson.com), 2017
-- Distributed under the LGPLv2.1 (https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html)
@ -22,7 +22,7 @@ local node = setmetatable({}, {
local biome_ids = {}
if true or zigg_mod.use_bi_hi then
if true or zungle_mod.use_bi_hi then
-- Create a table of biome ids, so I can use the biomemap.
local get_biome_id = minetest.get_biome_id
for name, desc in pairs(minetest.registered_biomes) do
@ -50,12 +50,12 @@ local function generate(p_minp, p_maxp, seed)
local area = VoxelArea:new({MinEdge = emin, MaxEdge = emax})
local csize = vector.add(vector.subtract(maxp, minp), 1)
if true or zigg_mod.use_bi_hi then
if true or zungle_mod.use_bi_hi then
heightmap = minetest.get_mapgen_object("heightmap")
end
local biomemap
if true or zigg_mod.use_bi_hi then
if true or zungle_mod.use_bi_hi then
biomemap = minetest.get_mapgen_object("biomemap")
end
@ -69,7 +69,7 @@ local function generate(p_minp, p_maxp, seed)
math.randomseed(seed)
end
local write = zigg_mod.ziggurat(minp, maxp, data, area, biomemap, biome_ids, node, heightmap)
local write = zungle_mod.zungle(minp, maxp, data, area, biomemap, biome_ids, node, heightmap)
if write then
vm:set_data(data)
@ -86,8 +86,8 @@ local function generate(p_minp, p_maxp, seed)
end
if zigg_mod.path then
dofile(zigg_mod.path .. "/ziggurat.lua")
if zungle_mod.path then
dofile(zungle_mod.path .. "/zungle.lua")
end

View File

@ -1 +1 @@
name = zigg
name = zungle

Binary file not shown.

Before

Width:  |  Height:  |  Size: 384 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 875 B