fdd2cce4c4
sry
200 lines
5.7 KiB
Lua
200 lines
5.7 KiB
Lua
local load_time_start = os.clock()
|
|
|
|
minetest.register_craft({
|
|
output = "sumpf:junglestonebrick",
|
|
recipe = {
|
|
{"sumpf:junglestone", "sumpf:junglestone"},
|
|
{"sumpf:junglestone", "sumpf:junglestone"},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "sumpf:junglestone 4",
|
|
recipe = {
|
|
{"sumpf:junglestonebrick"},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "cooking",
|
|
output = "sumpf:junglestone",
|
|
recipe = "sumpf:cobble",
|
|
})
|
|
|
|
minetest.register_node("sumpf:junglestone", {
|
|
description = "Swamp Stone",
|
|
tiles = {"sumpf_swampstone.png"},
|
|
groups = {cracky=3},
|
|
legacy_mineral = true,
|
|
drop = "sumpf:cobble",
|
|
sounds = default.node_sound_stone_defaults(),
|
|
})
|
|
|
|
minetest.register_node("sumpf:cobble", {
|
|
description = "Swamp Cobble Stone",
|
|
tiles = {"sumpf_cobble.png"},
|
|
groups = {cracky=3},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
})
|
|
|
|
minetest.register_node("sumpf:junglestonebrick", {
|
|
description = "Swamp Stone Brick",
|
|
tiles = {"sumpf_swampstone_brick.png"},
|
|
groups = {cracky=2, stone=1},
|
|
sounds = default.node_sound_stone_defaults(),
|
|
})
|
|
|
|
minetest.register_node("sumpf:peat", {
|
|
description = "Peat",
|
|
tiles = {"sumpf_peat.png"},
|
|
groups = {crumbly=3, falling_node=1, sand=1, soil=1},
|
|
sounds = default.node_sound_sand_defaults({
|
|
footstep = {name="sumpf", gain=0.4},
|
|
place = {name="sumpf", gain=0.4},
|
|
dig = {name="sumpf", gain=0.4},
|
|
dug = {name="default_dirt_footstep", gain=0.25}
|
|
}),
|
|
})
|
|
|
|
minetest.register_node("sumpf:kohle", {
|
|
description = "Coal Ore",
|
|
tiles = {"sumpf_swampstone.png^default_mineral_coal.png"},
|
|
groups = {cracky=3},
|
|
drop = 'default:coal_lump',
|
|
sounds = default.node_sound_stone_defaults(),
|
|
})
|
|
|
|
minetest.register_node("sumpf:eisen", {
|
|
description = "Iron Ore",
|
|
tiles = {"sumpf_swampstone.png^default_mineral_iron.png"},
|
|
groups = {cracky=3},
|
|
drop = 'default:iron_lump',
|
|
sounds = default.node_sound_stone_defaults(),
|
|
})
|
|
|
|
minetest.register_node("sumpf:sumpf", {
|
|
description = "Swamp",
|
|
tiles = {"sumpf.png"},
|
|
groups = {crumbly=3, soil=1},
|
|
sounds = default.node_sound_dirt_defaults({
|
|
footstep = {name="sumpf", gain=0.4},
|
|
}),
|
|
})
|
|
|
|
minetest.register_node("sumpf:sumpf2", {
|
|
tiles = {"sumpf.png","sumpf_swampstone.png","sumpf_swampstone.png^sumpf2.png"},
|
|
groups = {cracky=3, soil=1},
|
|
drop = "sumpf:cobble",
|
|
sounds = default.node_sound_stone_defaults({
|
|
footstep = {name="sumpf", gain=0.4},
|
|
}),
|
|
})
|
|
|
|
|
|
----------------------stairs and slabs------------------
|
|
|
|
stairs.register_stair_and_slab("swampstone", "sumpf:junglestone",
|
|
{cracky=3},
|
|
{"sumpf_swampstone.png"},
|
|
"Swamp Stone Stair",
|
|
"Swamp Stone Slab",
|
|
default.node_sound_stone_defaults()
|
|
)
|
|
|
|
stairs.register_stair_and_slab("swampcobble", "sumpf:cobble",
|
|
{cracky=3},
|
|
{"sumpf_cobble.png"},
|
|
"Swamp Cobble Stone Stair",
|
|
"Swamp Cobble Stone Slab",
|
|
default.node_sound_stone_defaults()
|
|
)
|
|
|
|
stairs.register_stair_and_slab("swampstonebrick", "sumpf:junglestonebrick",
|
|
{cracky=2, stone=1},
|
|
{"sumpf_swampstone_brick.png"},
|
|
"Swamp Stone Brick Stair",
|
|
"Swamp Stone Brick Slab",
|
|
default.node_sound_stone_defaults()
|
|
)
|
|
|
|
---------------------------------------------------------
|
|
|
|
|
|
|
|
minetest.register_node("sumpf:gras", {
|
|
description = "Swamp Grass",
|
|
tiles = {"sumpfgrass.png"},
|
|
inventory_image = "sumpfgrass.png",
|
|
drawtype = "plantlike",
|
|
paramtype = "light",
|
|
selection_box = {type = "fixed",fixed = {-1/3, -1/2, -1/3, 1/3, -1/5, 1/3},},
|
|
buildable_to = true,
|
|
walkable = false,
|
|
groups = {snappy=3,flammable=3,flora=1,attached_node=1},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
})
|
|
|
|
minetest.register_node("sumpf:dirtywater_flowing", {
|
|
drawtype = "flowingliquid",
|
|
tiles = {"default_water.png"},
|
|
special_tiles = {
|
|
{name="sumpfwasser2.png", backface_culling=false, animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1}},
|
|
{name="sumpfwasser2.png", backface_culling=true, animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1}}
|
|
},
|
|
alpha = WATER_ALPHA,
|
|
paramtype = "light",
|
|
walkable = false,
|
|
pointable = false,
|
|
diggable = false,
|
|
buildable_to = true,
|
|
drop = "",
|
|
liquidtype = "flowing",
|
|
liquid_alternative_flowing = "sumpf:dirtywater_flowing",
|
|
liquid_alternative_source = "sumpf:dirtywater_source",
|
|
liquid_viscosity = WATER_VISC,
|
|
post_effect_color = {a=64, r=70, g=90, b=120},
|
|
groups = {water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1},
|
|
})
|
|
|
|
minetest.register_node("sumpf:dirtywater_source", {
|
|
description = "Swampwater",
|
|
drawtype = "liquid",
|
|
tiles = {
|
|
{name="sumpfwasser.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.0}},
|
|
{name="sumpfwasser.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.0}},
|
|
{name="sumpfwasser2.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.0}}
|
|
},
|
|
special_tiles = {{name="sumpfwasser.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.0}, backface_culling=false},},
|
|
alpha = WATER_ALPHA,
|
|
paramtype = "light",
|
|
walkable = false,
|
|
pointable = false,
|
|
diggable = false,
|
|
buildable_to = true,
|
|
liquidtype = "source",
|
|
liquid_alternative_flowing = "sumpf:dirtywater_flowing",
|
|
liquid_alternative_source = "sumpf:dirtywater_source",
|
|
liquid_viscosity = WATER_VISC,
|
|
post_effect_color = {a=64, r=70, g=90, b=120},
|
|
groups = {water=3, liquid=3, puts_out_fire=1},
|
|
})
|
|
|
|
bucket.register_liquid(
|
|
"sumpf:dirtywater_source",
|
|
"sumpf:dirtywater_flowing",
|
|
"sumpf:bucket_dirtywater",
|
|
"bucket.png^sumpf_bucket_dirtywater.png",
|
|
"Swampwater Bucket"
|
|
)
|
|
|
|
|
|
sumpf = {}
|
|
dofile(minetest.get_modpath("sumpf").."/settings.lua")
|
|
dofile(minetest.get_modpath("sumpf").."/functions.lua")
|
|
dofile(minetest.get_modpath("sumpf") .. "/birke.lua")
|
|
if sumpf.enable_mapgen then
|
|
dofile(minetest.get_modpath("sumpf") .. "/mapgen.lua")
|
|
end
|
|
|
|
print(string.format("[sumpf] loaded after ca. %.2fs", os.clock() - load_time_start))
|