D00Med's update 19.1.17
>added stalagmites and stalagtites >added swamp biome >jungle grass is now generated
This commit is contained in:
parent
7e362bc987
commit
07e67644e2
@ -91,6 +91,27 @@
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
--swamp water
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "blob",
|
||||||
|
ore = "mapgen:dirty_water_source",
|
||||||
|
wherein = {"mapgen:dirt_with_swampgrass"},
|
||||||
|
clust_scarcity = 9 * 9 * 9,
|
||||||
|
clust_size = 8,
|
||||||
|
y_min = -31000,
|
||||||
|
y_max = 31000,
|
||||||
|
noise_threshold = 0.0,
|
||||||
|
noise_params = {
|
||||||
|
offset = 0.5,
|
||||||
|
scale = 0.2,
|
||||||
|
spread = {x = 5, y = 5, z = 5},
|
||||||
|
seed = 766,
|
||||||
|
octaves = 1,
|
||||||
|
persist = 0.0
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
--new stone
|
--new stone
|
||||||
|
|
||||||
minetest.register_ore({
|
minetest.register_ore({
|
||||||
@ -409,6 +430,25 @@
|
|||||||
|
|
||||||
minetest.clear_registered_biomes()
|
minetest.clear_registered_biomes()
|
||||||
|
|
||||||
|
--Swamp
|
||||||
|
minetest.register_biome({
|
||||||
|
name = "swamp",
|
||||||
|
--node_dust = "",
|
||||||
|
node_top = "mapgen:dirt_with_swampgrass",
|
||||||
|
depth_top = 3,
|
||||||
|
node_filler = "default:dirt",
|
||||||
|
depth_filler = 3,
|
||||||
|
--node_stone = "",
|
||||||
|
node_water_top = "mapgen:dirty_water_source",
|
||||||
|
depth_water_top = 1,
|
||||||
|
--node_water = "",
|
||||||
|
--node_river_water = "",
|
||||||
|
y_min = 1,
|
||||||
|
y_max = 21000,
|
||||||
|
heat_point = 40,
|
||||||
|
humidity_point = 0,
|
||||||
|
})
|
||||||
|
|
||||||
-- Icesheet
|
-- Icesheet
|
||||||
|
|
||||||
minetest.register_biome({
|
minetest.register_biome({
|
||||||
@ -888,7 +928,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- Cold desert
|
-- Cold desert
|
||||||
|
--[[
|
||||||
minetest.register_biome({
|
minetest.register_biome({
|
||||||
name = "cold_desert",
|
name = "cold_desert",
|
||||||
--node_dust = "",
|
--node_dust = "",
|
||||||
@ -928,6 +968,7 @@
|
|||||||
heat_point = 40,
|
heat_point = 40,
|
||||||
humidity_point = 0,
|
humidity_point = 0,
|
||||||
})
|
})
|
||||||
|
]]
|
||||||
|
|
||||||
-- Savanna
|
-- Savanna
|
||||||
|
|
||||||
@ -1120,6 +1161,26 @@ local function register_dry_grass_decoration(offset, scale, length)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function register_jungle_grass_decoration(offset, scale, length)
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"mapgen:dirt_with_junglegrass", "default:dirt"},
|
||||||
|
sidelen = 16,
|
||||||
|
noise_params = {
|
||||||
|
offset = offset,
|
||||||
|
scale = scale,
|
||||||
|
spread = {x = 200, y = 200, z = 200},
|
||||||
|
seed = 329,
|
||||||
|
octaves = 3,
|
||||||
|
persist = 0.6
|
||||||
|
},
|
||||||
|
biomes = {"rainforest", "rainforest_swamp", "rainforest_ocean",},
|
||||||
|
y_min = 1,
|
||||||
|
y_max = 31000,
|
||||||
|
decoration = "default:grass_" .. length,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
minetest.clear_registered_decorations()
|
minetest.clear_registered_decorations()
|
||||||
|
|
||||||
@ -1602,6 +1663,14 @@ minetest.register_decoration({
|
|||||||
register_grass_decoration(0.015, 0.045, 2)
|
register_grass_decoration(0.015, 0.045, 2)
|
||||||
register_grass_decoration(0.03, 0.03, 1)
|
register_grass_decoration(0.03, 0.03, 1)
|
||||||
|
|
||||||
|
--Jungle grasses
|
||||||
|
|
||||||
|
register_grass_decoration(-0.03, 0.09, 5)
|
||||||
|
register_grass_decoration(-0.015, 0.075, 4)
|
||||||
|
register_grass_decoration(0, 0.06, 3)
|
||||||
|
register_grass_decoration(0.015, 0.045, 2)
|
||||||
|
register_grass_decoration(0.03, 0.03, 1)
|
||||||
|
|
||||||
-- Dry grasses
|
-- Dry grasses
|
||||||
|
|
||||||
register_dry_grass_decoration(0.01, 0.05, 5)
|
register_dry_grass_decoration(0.01, 0.05, 5)
|
||||||
@ -1706,3 +1775,48 @@ minetest.register_decoration({
|
|||||||
flags = "place_center_x, place_center_z",
|
flags = "place_center_x, place_center_z",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_on_generated(function(minp, maxp)
|
||||||
|
if maxp.y < -50 or maxp.y > 10 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
local dirt = minetest.find_nodes_in_area(minp, maxp,
|
||||||
|
{"default:stone"})
|
||||||
|
for n = 1, #dirt do
|
||||||
|
if math.random(1, 50) == 1 then
|
||||||
|
local pos = {x = dirt[n].x, y = dirt[n].y, z = dirt[n].z }
|
||||||
|
if minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name == "air" then
|
||||||
|
if math.random(1,2) == 1 then
|
||||||
|
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "mapgen:stalagtite"})
|
||||||
|
elseif math.random(1,2) == 1 then
|
||||||
|
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "mapgen:stalagtite1"})
|
||||||
|
elseif math.random(1,2) == 1 then
|
||||||
|
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "mapgen:stalagtite2"})
|
||||||
|
else
|
||||||
|
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "mapgen:stalagtite3"})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
|
minetest.register_on_generated(function(minp, maxp)
|
||||||
|
if maxp.y < -150 or maxp.y > 20 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
local dirt = minetest.find_nodes_in_area(minp, maxp,
|
||||||
|
{"default:stone"})
|
||||||
|
for n = 1, #dirt do
|
||||||
|
if math.random(1, 50) == 1 then
|
||||||
|
local pos = {x = dirt[n].x, y = dirt[n].y, z = dirt[n].z }
|
||||||
|
if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name == "air" and pos.y >= -100 then
|
||||||
|
if math.random(1,2) == 1 then
|
||||||
|
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, {name = "mapgen:stalagmite0"})
|
||||||
|
elseif math.random(1,2) == 1 then
|
||||||
|
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, {name = "mapgen:stalagmite1"})
|
||||||
|
else
|
||||||
|
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, {name = "mapgen:stalagmite2"})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
@ -341,6 +341,219 @@ minetest.register_node("mapgen:flame_lily", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:jungle_grass_1", {
|
||||||
|
description = "Jungle Grass",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
tiles = {"mapgen_jungle_grass_1.png"},
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
|
buildable_to = true,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
drop = "mapgen:jungle_grass_5",
|
||||||
|
inventory_image = "mapgen_jungle_grass_1.png",
|
||||||
|
groups = {snappy=3, flammable=1, attatched_node=1, flora=1, not_in_creative_inventory=1},
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
||||||
|
},
|
||||||
|
walkable = false,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:jungle_grass_2", {
|
||||||
|
description = "Jungle Grass",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
tiles = {"mapgen_jungle_grass_2.png"},
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
|
buildable_to = true,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
drop = "mapgen:jungle_grass_5",
|
||||||
|
inventory_image = "mapgen_jungle_grass_2.png",
|
||||||
|
groups = {snappy=3, flammable=1, attatched_node=1, flora=1, not_in_creative_inventory=1},
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
||||||
|
},
|
||||||
|
walkable = false,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:jungle_grass_3", {
|
||||||
|
description = "Jungle Grass",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
tiles = {"mapgen_jungle_grass_3.png"},
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
|
buildable_to = true,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
drop = "mapgen:jungle_grass_5",
|
||||||
|
inventory_image = "mapgen_jungle_grass_3.png",
|
||||||
|
groups = {snappy=3, flammable=1, attatched_node=1, flora=1, not_in_creative_inventory=1},
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
||||||
|
},
|
||||||
|
walkable = false,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:jungle_grass_4", {
|
||||||
|
description = "Jungle Grass",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
tiles = {"mapgen_jungle_grass_4.png"},
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
|
buildable_to = true,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
drop = "mapgen:jungle_grass_5",
|
||||||
|
inventory_image = "mapgen_jungle_grass_4.png",
|
||||||
|
groups = {snappy=3, flammable=1, attatched_node=1, flora=1, not_in_creative_inventory=1},
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
||||||
|
},
|
||||||
|
walkable = false,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:jungle_grass_5", {
|
||||||
|
description = "Jungle Grass",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
tiles = {"mapgen_jungle_grass_5.png"},
|
||||||
|
paramtype = "light",
|
||||||
|
is_ground_content = false,
|
||||||
|
buildable_to = true,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
drop = "mapgen:jungle_grass_5",
|
||||||
|
inventory_image = "mapgen_jungle_grass_5.png",
|
||||||
|
groups = {snappy=3, flammable=1, attatched_node=1, flora=1},
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
||||||
|
},
|
||||||
|
walkable = false,
|
||||||
|
on_construct = function(pos)
|
||||||
|
local num = math.random(1,5)
|
||||||
|
minetest.env:set_node(pos, {name="mapgen:jungle_grass_"..num})
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:stalagtite", {
|
||||||
|
description = "Stalagtite",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
tiles = {"mapgen_stalagmite0.png"},
|
||||||
|
inventory_image = "mapgen_stalagmite0.png",
|
||||||
|
is_ground_content = false,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
|
||||||
|
},
|
||||||
|
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
||||||
|
sounds = default.node_sound_stone_defaults()
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:stalagtite1", {
|
||||||
|
description = "Stalagtite",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
tiles = {"mapgen_stalagmite1.png"},
|
||||||
|
inventory_image = "mapgen_stalagmite1.png",
|
||||||
|
is_ground_content = false,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
|
||||||
|
},
|
||||||
|
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:stalagtite2", {
|
||||||
|
description = "Stalagtite",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
tiles = {"mapgen_stalagmite2.png"},
|
||||||
|
inventory_image = "mapgen_stalagmite2.png",
|
||||||
|
is_ground_content = false,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
|
||||||
|
},
|
||||||
|
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
||||||
|
sounds = default.node_sound_stone_defaults()
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:stalagtite3", {
|
||||||
|
description = "Stalagtite",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
tiles = {"mapgen_stalagmite3.png"},
|
||||||
|
inventory_image = "mapgen_stalagmite3.png",
|
||||||
|
is_ground_content = false,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
|
||||||
|
},
|
||||||
|
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
||||||
|
sounds = default.node_sound_stone_defaults()
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:stalagmite0", {
|
||||||
|
description = "Stalagmite",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
tiles = {"mapgen_stalagmite0.png^[transformFY"},
|
||||||
|
inventory_image = "mapgen_stalagmite0.png^[transformFY",
|
||||||
|
is_ground_content = false,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
|
||||||
|
},
|
||||||
|
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
||||||
|
sounds = default.node_sound_stone_defaults()
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:stalagmite1", {
|
||||||
|
description = "Stalagmite",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
visual_scale = 1.5,
|
||||||
|
tiles = {"mapgen_stalagmite3.png^[transformFY"},
|
||||||
|
inventory_image = "mapgen_stalagmite3.png^[transformFY",
|
||||||
|
is_ground_content = false,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
|
||||||
|
},
|
||||||
|
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
||||||
|
sounds = default.node_sound_stone_defaults()
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:stalagmite2", {
|
||||||
|
description = "Stalagmite",
|
||||||
|
drawtype = "plantlike",
|
||||||
|
visual_scale = 1.5,
|
||||||
|
tiles = {"mapgen_stalagmite2.png^[transformFY"},
|
||||||
|
inventory_image = "mapgen_stalagmite2.png^[transformFY",
|
||||||
|
is_ground_content = false,
|
||||||
|
sunlight_propagates = true,
|
||||||
|
paramtype = "light",
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
|
||||||
|
},
|
||||||
|
groups = {crumbly=1, oddly_breakable_by_hand=1},
|
||||||
|
sounds = default.node_sound_stone_defaults()
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("mapgen:vine", {
|
minetest.register_node("mapgen:vine", {
|
||||||
description = "Vines",
|
description = "Vines",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -359,111 +572,6 @@ minetest.register_node("mapgen:vine", {
|
|||||||
groups = {cracky=3, dig_immediate=3, oddly_breakeable_by_hand=1},
|
groups = {cracky=3, dig_immediate=3, oddly_breakeable_by_hand=1},
|
||||||
})
|
})
|
||||||
|
|
||||||
--code taken from default
|
|
||||||
|
|
||||||
--License of source code
|
|
||||||
----------------------
|
|
||||||
|
|
||||||
--GNU Lesser General Public License, version 2.1
|
|
||||||
--Copyright (C) 2011-2016 celeron55, Perttu Ahola <celeron55@gmail.com>
|
|
||||||
--Copyright (C) 2011-2016 Various Minetest developers and contributors
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("mapgen:dirty_water_source", {
|
|
||||||
description = "Dirty Water Source",
|
|
||||||
drawtype = "liquid",
|
|
||||||
tiles = {
|
|
||||||
{
|
|
||||||
name = "mapgen_dirty_water_source_animated.png",
|
|
||||||
animation = {
|
|
||||||
type = "vertical_frames",
|
|
||||||
aspect_w = 16,
|
|
||||||
aspect_h = 16,
|
|
||||||
length = 2.0,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
special_tiles = {
|
|
||||||
{
|
|
||||||
name = "mapgen_dirty_water_source_animated.png",
|
|
||||||
animation = {
|
|
||||||
type = "vertical_frames",
|
|
||||||
aspect_w = 16,
|
|
||||||
aspect_h = 16,
|
|
||||||
length = 2.0,
|
|
||||||
},
|
|
||||||
backface_culling = false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
alpha = 160,
|
|
||||||
paramtype = "light",
|
|
||||||
walkable = false,
|
|
||||||
pointable = false,
|
|
||||||
diggable = false,
|
|
||||||
buildable_to = true,
|
|
||||||
is_ground_content = false,
|
|
||||||
drop = "",
|
|
||||||
drowning = 1,
|
|
||||||
liquidtype = "source",
|
|
||||||
liquid_alternative_flowing = "mapgen:dirty_water_flowing",
|
|
||||||
liquid_alternative_source = ",mapgen:dirty_water_source",
|
|
||||||
liquid_viscosity = 2,
|
|
||||||
liquid_renewable = false,
|
|
||||||
liquid_range = 2,
|
|
||||||
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
|
|
||||||
groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1},
|
|
||||||
sounds = default.node_sound_water_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("mapgen:dirty_water_flowing", {
|
|
||||||
description = "Flowing Dirty Water",
|
|
||||||
drawtype = "flowingliquid",
|
|
||||||
tiles = {"default_river_water.png^[colorize:green:100"},
|
|
||||||
special_tiles = {
|
|
||||||
{
|
|
||||||
name = "mapgen_dirty_water_flowing_animated.png",
|
|
||||||
backface_culling = false,
|
|
||||||
animation = {
|
|
||||||
type = "vertical_frames",
|
|
||||||
aspect_w = 16,
|
|
||||||
aspect_h = 16,
|
|
||||||
length = 0.8,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name = "mapgen_dirty_water_flowing_animated.png",
|
|
||||||
backface_culling = true,
|
|
||||||
animation = {
|
|
||||||
type = "vertical_frames",
|
|
||||||
aspect_w = 16,
|
|
||||||
aspect_h = 16,
|
|
||||||
length = 0.8,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
alpha = 160,
|
|
||||||
paramtype = "light",
|
|
||||||
paramtype2 = "flowingliquid",
|
|
||||||
walkable = false,
|
|
||||||
pointable = false,
|
|
||||||
diggable = false,
|
|
||||||
buildable_to = true,
|
|
||||||
is_ground_content = false,
|
|
||||||
drop = "",
|
|
||||||
drowning = 1,
|
|
||||||
liquidtype = "flowing",
|
|
||||||
liquid_alternative_flowing = "mapgen:dirty_water_flowing",
|
|
||||||
liquid_alternative_source = "mapgen:dirty_water_source",
|
|
||||||
liquid_viscosity = 1,
|
|
||||||
liquid_renewable = false,
|
|
||||||
liquid_range = 2,
|
|
||||||
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
|
|
||||||
groups = {water = 3, liquid = 3, puts_out_fire = 1,
|
|
||||||
not_in_creative_inventory = 1, cools_lava = 1},
|
|
||||||
sounds = default.node_sound_water_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("mapgen:dirt_with_swampgrass", {
|
minetest.register_node("mapgen:dirt_with_swampgrass", {
|
||||||
description = "Dirt With Swamp Grass",
|
description = "Dirt With Swamp Grass",
|
||||||
tiles = {"mapgen_swamp_grass.png", "default_dirt.png", "default_dirt.png^mapgen_swamp_grass_side.png"},
|
tiles = {"mapgen_swamp_grass.png", "default_dirt.png", "default_dirt.png^mapgen_swamp_grass_side.png"},
|
||||||
@ -598,3 +706,110 @@ minetest.register_node("mapgen:dead_grass", {
|
|||||||
},
|
},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
--code taken from default
|
||||||
|
|
||||||
|
--License of source code
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
--GNU Lesser General Public License, version 2.1
|
||||||
|
--Copyright (C) 2011-2016 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||||
|
--Copyright (C) 2011-2016 Various Minetest developers and contributors
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:dirty_water_source", {
|
||||||
|
description = "Dirty Water Source",
|
||||||
|
drawtype = "liquid",
|
||||||
|
tiles = {
|
||||||
|
{
|
||||||
|
name = "mapgen_dirty_water_source_animated.png",
|
||||||
|
animation = {
|
||||||
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 2.0,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
special_tiles = {
|
||||||
|
{
|
||||||
|
name = "mapgen_dirty_water_source_animated.png",
|
||||||
|
animation = {
|
||||||
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 2.0,
|
||||||
|
},
|
||||||
|
backface_culling = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
alpha = 160,
|
||||||
|
paramtype = "light",
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
diggable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
is_ground_content = false,
|
||||||
|
drop = "",
|
||||||
|
drowning = 1,
|
||||||
|
liquidtype = "source",
|
||||||
|
liquid_alternative_flowing = "mapgen:dirty_water_flowing",
|
||||||
|
liquid_alternative_source = ",mapgen:dirty_water_source",
|
||||||
|
liquid_viscosity = 2,
|
||||||
|
liquid_renewable = false,
|
||||||
|
liquid_range = 2,
|
||||||
|
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
|
||||||
|
groups = {water = 3, liquid = 3, puts_out_fire = 1, cools_lava = 1},
|
||||||
|
sounds = default.node_sound_water_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mapgen:dirty_water_flowing", {
|
||||||
|
description = "Flowing Dirty Water",
|
||||||
|
drawtype = "flowingliquid",
|
||||||
|
tiles = {"default_river_water.png^[colorize:green:100"},
|
||||||
|
special_tiles = {
|
||||||
|
{
|
||||||
|
name = "mapgen_dirty_water_flowing_animated.png",
|
||||||
|
backface_culling = false,
|
||||||
|
animation = {
|
||||||
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 0.8,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "mapgen_dirty_water_flowing_animated.png",
|
||||||
|
backface_culling = true,
|
||||||
|
animation = {
|
||||||
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 0.8,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
alpha = 160,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "flowingliquid",
|
||||||
|
walkable = false,
|
||||||
|
pointable = false,
|
||||||
|
diggable = false,
|
||||||
|
buildable_to = true,
|
||||||
|
is_ground_content = false,
|
||||||
|
drop = "",
|
||||||
|
drowning = 1,
|
||||||
|
liquidtype = "flowing",
|
||||||
|
liquid_alternative_flowing = "mapgen:dirty_water_flowing",
|
||||||
|
liquid_alternative_source = "mapgen:dirty_water_source",
|
||||||
|
liquid_viscosity = 1,
|
||||||
|
liquid_renewable = false,
|
||||||
|
liquid_range = 2,
|
||||||
|
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
|
||||||
|
groups = {water = 3, liquid = 3, puts_out_fire = 1,
|
||||||
|
not_in_creative_inventory = 1, cools_lava = 1},
|
||||||
|
sounds = default.node_sound_water_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
BIN
mods/mapgen/textures/mapgen_duckweed.png
Normal file
BIN
mods/mapgen/textures/mapgen_duckweed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 325 B |
BIN
mods/mapgen/textures/mapgen_stalagmite0.png
Normal file
BIN
mods/mapgen/textures/mapgen_stalagmite0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 458 B |
BIN
mods/mapgen/textures/mapgen_stalagmite1.png
Normal file
BIN
mods/mapgen/textures/mapgen_stalagmite1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 449 B |
BIN
mods/mapgen/textures/mapgen_stalagmite2.png
Normal file
BIN
mods/mapgen/textures/mapgen_stalagmite2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 958 B |
BIN
mods/mapgen/textures/mapgen_stalagmite3.png
Normal file
BIN
mods/mapgen/textures/mapgen_stalagmite3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 902 B |
Loading…
x
Reference in New Issue
Block a user