make geodes slightly larger, fix positioning
This commit is contained in:
parent
607511518f
commit
7f8a366a7b
@ -13,8 +13,8 @@ local function set_node_no_bedrock(pos,node)
|
|||||||
return minetest.set_node(pos,node)
|
return minetest.set_node(pos,node)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function makegeode(pos,pr)
|
local function makegeode(pos,def,pr)
|
||||||
local size = pr:next(4,7)
|
local size = pr:next(5,7)
|
||||||
local p1 = vector.offset(pos,-size,-size,-size)
|
local p1 = vector.offset(pos,-size,-size,-size)
|
||||||
local p2 = vector.offset(pos,size,size,size)
|
local p2 = vector.offset(pos,size,size,size)
|
||||||
local calcite = {}
|
local calcite = {}
|
||||||
@ -79,8 +79,5 @@ mcl_structures.register_structure("geode",{
|
|||||||
y_max = -24,
|
y_max = -24,
|
||||||
y_min = mcl_vars.mg_overworld_min,
|
y_min = mcl_vars.mg_overworld_min,
|
||||||
y_offset = function(pr) return pr:next(-4,-2) end,
|
y_offset = function(pr) return pr:next(-4,-2) end,
|
||||||
place_func = function(pos,def,pr)
|
place_func = makegeode,
|
||||||
local p = vector.new(pos.x + pr:next(-30,30),pos.y,pos.z + pr:next(-30,30))
|
|
||||||
return makegeode(p,pr)
|
|
||||||
end
|
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user