fix some stuff
This commit is contained in:
parent
2c34fa0902
commit
ea46187fb2
@ -7,13 +7,17 @@ minetest.register_node("sumpf:sapling", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {snappy=2,dig_immediate=3,flammable=2},
|
groups = {snappy=2,dig_immediate=3,flammable=2},
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
furnace_burntime = 9,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("sumpf:birk", {
|
minetest.register_node("sumpf:birk", {
|
||||||
tiles = {"birke_mossytree.png"},
|
tiles = {"birke_mossytree.png"},
|
||||||
inventory_image = "birke_mossytree.png^birke_sapling.png",
|
inventory_image = "birke_mossytree.png^birke_sapling.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
stack_max = 1024,
|
stack_max = 1024,
|
||||||
groups = {snappy=2,dig_immediate=3},
|
groups = {snappy=2,dig_immediate=3},
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
mache_birke(pos)
|
mache_birke(pos)
|
||||||
end,
|
end,
|
||||||
@ -45,6 +49,7 @@ minetest.register_node("sumpf:tree", {
|
|||||||
description = "Birch Trunk",
|
description = "Birch Trunk",
|
||||||
tiles = {"birke_tree_top.png", "birke_tree_top.png", "birke_tree.png"},
|
tiles = {"birke_tree_top.png", "birke_tree_top.png", "birke_tree.png"},
|
||||||
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
||||||
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("sumpf:tree_horizontal", {
|
minetest.register_node("sumpf:tree_horizontal", {
|
||||||
@ -54,12 +59,14 @@ minetest.register_node("sumpf:tree_horizontal", {
|
|||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
||||||
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("sumpf:mossytree", {
|
minetest.register_node("sumpf:mossytree", {
|
||||||
description = "Mossy Birch Trunk",
|
description = "Mossy Birch Trunk",
|
||||||
tiles = {"birke_tree_top.png", "sumpf.png", "birke_mossytree.png"},
|
tiles = {"birke_tree_top.png", "sumpf.png", "birke_mossytree.png"},
|
||||||
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
||||||
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
local function tree_crafts(input)
|
local function tree_crafts(input)
|
||||||
@ -109,7 +116,7 @@ local function add_tree_branch(pos, dir)
|
|||||||
p = {x=pos.x+i, y=pos.y+1, z=pos.z+k}
|
p = {x=pos.x+i, y=pos.y+1, z=pos.z+k}
|
||||||
n = minetest.env:get_node(p)
|
n = minetest.env:get_node(p)
|
||||||
if (n.name=="air") then
|
if (n.name=="air") then
|
||||||
minetest.env:add_node(p, {name="sumpf:leaves"})
|
minetest.env:add_node(p, {name="sumpf:leaves"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -137,16 +144,19 @@ end
|
|||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"sumpf:sapling"},
|
nodenames = {"sumpf:sapling"},
|
||||||
interval = 10,
|
interval = 10,
|
||||||
chance = 6,
|
chance = 16,
|
||||||
action = function(pos)
|
action = function(pos)
|
||||||
mache_birke(pos)
|
if minetest.env:find_node_near(pos, 1, "group:crumbly")
|
||||||
|
and minetest.env:get_node_light(pos, nil) > 7 then
|
||||||
|
mache_birke(pos)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
,})
|
,})
|
||||||
|
|
||||||
--function anti_generate(node, surfaces, minp, maxp, height_min, height_max, spread, habitat_size, habitat_nodes)
|
--function anti_generate(node, surfaces, minp, maxp, height_min, height_max, spread, habitat_size, habitat_nodes)
|
||||||
if sumpf.enable_birches then
|
if sumpf.enable_birches then
|
||||||
minetest.register_on_generated(function(minp, maxp, seed)
|
minetest.register_on_generated(function(minp, maxp, seed)
|
||||||
generate("sumpf:birk", {"default:dirt_with_grass"}, minp, maxp, 20, 25, 100, 500,
|
generate("sumpf:birk", {"default:dirt_with_grass"}, minp, maxp, 20, 25, 100, 500,
|
||||||
{"default:water_source"},30,{"default:desert_sand"})
|
{"default:water_source"},30,{"default:desert_sand"})
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
@ -2,3 +2,4 @@ default
|
|||||||
riesenpilz
|
riesenpilz
|
||||||
jungletree
|
jungletree
|
||||||
habitat
|
habitat
|
||||||
|
bucket
|
||||||
|
@ -5,6 +5,20 @@ sounds: supertux (GPL)
|
|||||||
I looked at snow mod for mapgen and
|
I looked at snow mod for mapgen and
|
||||||
at the jungletree mod for birches.
|
at the jungletree mod for birches.
|
||||||
]]
|
]]
|
||||||
|
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_node("sumpf:gras", {
|
minetest.register_node("sumpf:gras", {
|
||||||
description = "Swamp Grass",
|
description = "Swamp Grass",
|
||||||
@ -21,10 +35,17 @@ minetest.register_node("sumpf:gras", {
|
|||||||
|
|
||||||
minetest.register_node("sumpf:junglestone", {
|
minetest.register_node("sumpf:junglestone", {
|
||||||
description = "Swamp Stone",
|
description = "Swamp Stone",
|
||||||
tile_images = {"sumpfstein.png"},
|
tile_images = {"sumpf_swampstone.png"},
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
legacy_mineral = true,
|
legacy_mineral = true,
|
||||||
sounds = SOUND,
|
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", {
|
minetest.register_node("sumpf:peat", {
|
||||||
@ -39,7 +60,7 @@ minetest.register_node("sumpf:peat", {
|
|||||||
|
|
||||||
minetest.register_node("sumpf:kohle", {
|
minetest.register_node("sumpf:kohle", {
|
||||||
description = "Coal Ore",
|
description = "Coal Ore",
|
||||||
tiles = {"sumpfstein.png^default_mineral_coal.png"},
|
tiles = {"sumpf_swampstone.png^default_mineral_coal.png"},
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
drop = 'default:coal_lump',
|
drop = 'default:coal_lump',
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
@ -47,7 +68,7 @@ minetest.register_node("sumpf:kohle", {
|
|||||||
|
|
||||||
minetest.register_node("sumpf:eisen", {
|
minetest.register_node("sumpf:eisen", {
|
||||||
description = "Iron Ore",
|
description = "Iron Ore",
|
||||||
tiles = {"sumpfstein.png^default_mineral_iron.png"},
|
tiles = {"sumpf_swampstone.png^default_mineral_iron.png"},
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
drop = 'default:iron_lump',
|
drop = 'default:iron_lump',
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
@ -63,7 +84,7 @@ minetest.register_node("sumpf:sumpf", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("sumpf:sumpf2", {
|
minetest.register_node("sumpf:sumpf2", {
|
||||||
tiles = {"sumpf.png","sumpfstein.png","sumpfstein.png^sumpf2.png"},
|
tiles = {"sumpf.png","sumpf_swampstone.png","sumpf_swampstone.png^sumpf2.png"},
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
drop = "sumpf:junglestone",
|
drop = "sumpf:junglestone",
|
||||||
sounds = default.node_sound_stone_defaults({
|
sounds = default.node_sound_stone_defaults({
|
||||||
@ -110,6 +131,14 @@ minetest.register_node("sumpf:dirtywater_source", {
|
|||||||
groups = {water=3, liquid=3, puts_out_fire=1},
|
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 = {}
|
sumpf = {}
|
||||||
dofile(minetest.get_modpath("sumpf").."/settings.lua")
|
dofile(minetest.get_modpath("sumpf").."/settings.lua")
|
||||||
dofile(minetest.get_modpath("sumpf") .. "/birke.lua")
|
dofile(minetest.get_modpath("sumpf") .. "/birke.lua")
|
||||||
|
BIN
sumpf/textures/sumpf_bucket_dirtywater.png
Normal file
BIN
sumpf/textures/sumpf_bucket_dirtywater.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 176 B |
Before Width: | Height: | Size: 777 B After Width: | Height: | Size: 777 B |
BIN
sumpf/textures/sumpf_swampstone_brick.png
Normal file
BIN
sumpf/textures/sumpf_swampstone_brick.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Loading…
x
Reference in New Issue
Block a user