minetest-mod-sea/seawrecks/init.lua

853 lines
20 KiB
Lua
Raw Normal View History

-- Fill chests function
local random = math.random
2016-02-20 02:56:14 +01:00
local function fill_chest(pos, min_pre, max_pre)
local n = minetest.get_node(pos)
if n and n.name and n.name == "default:chest" then
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
inv:set_size("main", 32)
local stacks = {}
if minetest.get_modpath("treasurer") ~= nil then
stacks = treasurer.select_random_treasures(8, min_pre, max_pre, {"armes", "armures", "outils", "bonus", "carburant", "precieux"})
end -- TODO else if no treasurer
for s=1,#stacks do
if not inv:contains_item("main", stacks[s]) then
inv:set_stack("main", random(1,32), stacks[s])
end
end
end
end
-- NODES
2016-02-20 02:56:14 +01:00
minetest.register_node("seawrecks:woodship", {
description = "Sand for the wooden ship",
tiles = {"default_sand.png"},
is_ground_content = true,
groups = {crumbly=3, falling_node=1, sand=1, soil=1, not_in_creative_inventory=1},
sounds = default.node_sound_sand_defaults(),
})
minetest.register_node("seawrecks:uboot", {
description = "Dirt for the U-boot",
tiles = {"default_dirt.png"},
is_ground_content = true,
groups = {crumbly=3, falling_node=1, sand=1, soil=1, not_in_creative_inventory=1},
sounds = default.node_sound_sand_defaults(),
2016-02-20 02:56:14 +01:00
})
-- WRECK GENERATION
minetest.register_ore({
ore_type = "scatter",
ore = "seawrecks:woodship",
wherein = "default:sand",
clust_scarcity = 40*40*40,
2016-02-20 02:56:14 +01:00
clust_num_ores = 1,
clust_size = 12,
y_max = -4,
y_min = -31000,
2016-02-20 02:56:14 +01:00
})
minetest.register_ore({
ore_type = "scatter",
ore = "seawrecks:uboot",
wherein = "default:sand",
clust_scarcity = 50*50*50,
2016-02-20 02:56:14 +01:00
clust_num_ores = 1,
clust_size = 12,
y_max = -10,
y_min = -31000,
2016-02-20 02:56:14 +01:00
})
local function generate_ore(name, wherein, minp, maxp, seed, chunks_per_volume, chunk_size, ore_per_chunk, y_min, y_max)
if maxp.y < y_min or minp.y > y_max then
2016-02-20 02:56:14 +01:00
return
end
local y_min = math.max(minp.y, y_min)
local y_max = math.min(maxp.y, y_max)
2016-02-20 02:56:14 +01:00
if chunk_size >= y_max - y_min + 1 then
return
end
local volume = (maxp.x-minp.x+1)*(y_max-y_min+1)*(maxp.z-minp.z+1)
local pr = PseudoRandom(seed)
local num_chunks = math.floor(chunks_per_volume * volume)
local inverse_chance = math.floor(chunk_size*chunk_size*chunk_size / ore_per_chunk)
for i=1,num_chunks do
local y0 = pr:next(y_min, y_max-chunk_size+1)
if y0 >= y_min and y0 <= y_max then
2016-02-20 02:56:14 +01:00
local x0 = pr:next(minp.x, maxp.x-chunk_size+1)
local z0 = pr:next(minp.z, maxp.z-chunk_size+1)
local p0 = {x=x0, y=y0, z=z0}
for x1=0,chunk_size-1 do
for y1=0,chunk_size-1 do
for z1=0,chunk_size-1 do
if pr:next(1,inverse_chance) == 1 then
local x2 = x0+x1
local y2 = y0+y1
local z2 = z0+z1
local p2 = {x=x2, y=y2, z=z2}
if minetest.get_node(p2).name == wherein then
minetest.set_node(p2, {name=name})
end
end
end
end
end
end
end
end
-- ABM'S
minetest.register_abm({
nodenames = {"seawrecks:woodship"},
interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
local yp = {x = pos.x, y = pos.y + 3, z = pos.z}
if minetest.get_node(pos).name == "seawrecks:woodship" and
(minetest.get_node(yp).name == "default:water_source" or
minetest.get_node(yp).name == "noairblocks:water_sourcex") then
minetest.add_node(pos, {name = "default:sand"})
pos.y = pos.y + 1
pos.x = pos.x - 6
for a = 1, 11 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:tree"})
end
pos.z = pos.z + 1
pos.x = pos.x - 10
for a = 1, 9 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:tree"})
end
pos.z = pos.z - 2
pos.x = pos.x - 9
for a = 1, 9 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:tree"})
end
pos.y = pos.y + 1
pos.x = pos.x - 8
pos.z = pos.z - 1
for a = 1, 7 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:tree"})
end
pos.z = pos.z + 4
pos.x = pos.x - 7
for a = 1, 7 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:tree"})
end
pos.z = pos.z - 1
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:wood"})
pos.z = pos.z - 1
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:wood"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:tree"})
pos.z = pos.z - 1
pos.x = pos.x - 2
minetest.add_node(pos, {name = "default:tree"})
pos.z = pos.z + 2
pos.x = pos.x - 8
minetest.add_node(pos, {name = "default:tree"})
pos.z = pos.z - 1
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:tree"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:tree"})
pos.z = pos.z - 1
pos.x = pos.x + 2
minetest.add_node(pos, {name = "default:tree"})
pos.y = pos.y + 1
pos.z = pos.z - 1
for a = 1, 7 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:wood"})
end
pos.z = pos.z + 4
pos.x = pos.x - 7
for a = 1, 7 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:wood"})
end
pos.z = pos.z - 1
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:wood"})
pos.z = pos.z - 1
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:wood"})
pos.z = pos.z - 1
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:wood"})
pos.z = pos.z + 2
pos.x = pos.x - 8
minetest.add_node(pos, {name = "default:wood"})
pos.z = pos.z - 1
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:wood"})
for a = 1, 3 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:wood"})
end
pos.z = pos.z - 1
pos.x = pos.x + 4
minetest.add_node(pos, {name = "default:wood"})
pos.z = pos.z + 1
pos.x = pos.x + 3
minetest.add_node(pos, {name = "default:wood"})
pos.y = pos.y + 1
minetest.add_node(pos, {name = "default:wood"})
pos.y = pos.y - 2
minetest.add_node(pos, {name = "default:wood"})
pos.y = pos.y + 3
pos.z = pos.z - 4
for a = 1, 7 do
pos.z = pos.z + 1
minetest.add_node(pos, {name = "default:wood"})
end
pos.z = pos.z - 3
for a = 1, 2 do
pos.y = pos.y + 1
minetest.add_node(pos, {name = "default:wood"})
end
pos.y = pos.y + 1
pos.z = pos.z - 3
for a = 1, 5 do
pos.z = pos.z + 1
minetest.add_node(pos, {name = "default:wood"})
end
pos.y = pos.y + 1
pos.z = pos.z - 2
minetest.add_node(pos, {name = "default:wood"})
pos.y = pos.y - 7
pos.z = pos.z + 1
pos.x = pos.x - 2
minetest.add_node(pos, {name = "default:chest"})
fill_chest(pos, 1, 4)
2016-02-20 02:56:14 +01:00
else
return
end
end
})
minetest.register_abm({
nodenames = {"seawrecks:uboot"},
interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
local yp = {x = pos.x, y = pos.y + 8, z = pos.z}
if minetest.get_node(pos).name == "seawrecks:uboot" and
(minetest.get_node(yp).name == "default:water_source" or
minetest.get_node(yp).name == "noairblocks:water_sourcex") then
minetest.add_node(pos, {name = "default:sand"})
2016-02-20 02:56:14 +01:00
pos.y = pos.y + 1
pos.x = pos.x - 15
for a = 1, 31 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z + 1
pos.x = pos.x + 1
for a = 1, 31 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z + 1
pos.x = pos.x +1
for a = 1, 27 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z - 3
pos.x = pos.x + 1
for a = 1, 27 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z - 1
pos.x = pos.x + 2
for a = 1, 21 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z + 5
pos.x = pos.x + 1
for a = 1, 21 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.y = pos.y + 1
pos.z = pos.z + 1
pos.x = pos.x - 1
for a = 1, 21 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z - 7
pos.x = pos.x + 1
for a = 1, 21 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z + 1
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 24
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z + 5
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 22
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z - 1
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 29
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z - 3
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 28
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z + 1
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 32
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 32
minetest.add_node(pos, {name = "default:copperblock"})
pos.y = pos.y + 1
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x + 32
minetest.add_node(pos, {name = "default:steelblock"})
pos.z = pos.z - 1
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x - 32
minetest.add_node(pos, {name = "default:steelblock"})
pos.z = pos.z - 1
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x + 28
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:steelblock"})
pos.z = pos.z + 3
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x - 28
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
pos.z = pos.z + 1
pos.x = pos.x + 2
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:obsidian_glass"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x + 22
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:obsidian_glass"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:steelblock"})
pos.z = pos.z + 1
pos.x = pos.x - 2
for a = 1, 3 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:obsidian_glass"})
for a = 1, 3 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:obsidian_glass"})
for a = 1, 3 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:obsidian_glass"})
for a = 1, 9 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.z = pos.z - 6
pos.x = pos.x - 3
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:obsidian_glass"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x + 22
minetest.add_node(pos, {name = "default:steelblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:obsidian_glass"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:steelblock"})
pos.z = pos.z - 1
pos.x = pos.x - 2
for a = 1, 3 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:obsidian_glass"})
for a = 1, 3 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:obsidian_glass"})
for a = 1, 3 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:obsidian_glass"})
for a = 1, 9 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.y = pos.y + 1
pos.z = pos.z + 7
pos.x = pos.x - 1
for a = 1, 21 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z - 7
pos.x = pos.x + 1
for a = 1, 21 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z + 1
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 24
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z + 5
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 22
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z - 1
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 29
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z - 3
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 28
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z + 1
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 32
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 32
minetest.add_node(pos, {name = "default:copperblock"})
pos.y = pos.y + 1
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 28
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 28
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z - 1
pos.x = pos.x + 2
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 22
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z + 3
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 22
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
pos.z = pos.z + 1
pos.x = pos.x + 2
for a = 1, 21 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z - 5
pos.x = pos.x + 1
for a = 1, 21 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.y = pos.y + 1
pos.z = pos.z + 2
pos.x = pos.x - 4
for a = 1, 3 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.x = pos.x + 21
for a = 1, 3 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z + 1
pos.x = pos.x + 1
for a = 1, 3 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.x = pos.x - 21
for a = 1, 3 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z + 2
pos.x = pos.x + 3
for a = 1, 4 do
pos.z = pos.z - 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z - 1
pos.x = pos.x + 1
for a = 1, 4 do
pos.z = pos.z + 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.x = pos.x + 6
for a = 1, 13 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z - 3
pos.x = pos.x + 1
for a = 1, 13 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:copperblock"})
end
pos.z = pos.z + 1
pos.x = pos.x - 1
for a = 1, 13 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:bronzeblock"})
end
pos.z = pos.z + 1
pos.x = pos.x + 1
for a = 1, 13 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:bronzeblock"})
end
pos.z = pos.z - 3
for a = 1, 6 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.z = pos.z + 5
pos.x = pos.x - 1
for a = 1, 6 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.y = pos.y + 1
for a = 1, 4 do
pos.z = pos.z - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.x = pos.x - 5
pos.z = pos.z - 1
for a = 1, 4 do
pos.z = pos.z + 1
minetest.add_node(pos, {name = "default:steelblock"})
end
for a = 1, 4 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.x = pos.x + 1
pos.z = pos.z - 3
for a = 1, 4 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.y = pos.y + 1
pos.x = pos.x - 1
pos.z = pos.z - 1
for a = 1, 4 do
pos.z = pos.z + 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.x = pos.x + 5
pos.z = pos.z + 1
for a = 1, 4 do
pos.z = pos.z - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
for a = 1, 4 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.x = pos.x - 1
pos.z = pos.z + 3
for a = 1, 4 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.y = pos.y + 1
pos.x = pos.x - 1
pos.z = pos.z - 1
for a = 1, 2 do
pos.x = pos.x - 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.x = pos.x - 1
pos.z = pos.z - 1
for a = 1, 2 do
pos.x = pos.x + 1
minetest.add_node(pos, {name = "default:steelblock"})
end
pos.y = pos.y - 7
pos.x = pos.x +16
pos.z = pos.z +3
minetest.add_node(pos, {name = "default:chest"})
fill_chest(pos, 1, 10)
2016-02-20 02:56:14 +01:00
else
return
end
end
})