Compare commits
5 Commits
925a9ece29
...
deacbf14c8
Author | SHA1 | Date |
---|---|---|
|
deacbf14c8 | |
|
bc28471d26 | |
|
a9ed16717c | |
|
f19412556e | |
|
51c624f507 |
8
deco.lua
8
deco.lua
|
@ -16,9 +16,13 @@ do
|
||||||
local deco = {}
|
local deco = {}
|
||||||
if odeco.biomes then
|
if odeco.biomes then
|
||||||
deco.biomes = {}
|
deco.biomes = {}
|
||||||
|
if type(odeco.biomes) == 'table' then
|
||||||
for _, b in pairs(odeco.biomes) do
|
for _, b in pairs(odeco.biomes) do
|
||||||
deco.biomes[b] = true
|
deco.biomes[b] = true
|
||||||
end
|
end
|
||||||
|
elseif type(odeco.biomes) == 'string' then
|
||||||
|
deco.biomes[odeco.biomes] = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
deco.deco_type = odeco.deco_type
|
deco.deco_type = odeco.deco_type
|
||||||
|
@ -372,7 +376,11 @@ local function get_decoration(biome_name)
|
||||||
if not deco.biomes or deco.biomes[biome_name] then
|
if not deco.biomes or deco.biomes[biome_name] then
|
||||||
if deco.deco_type == "simple" then
|
if deco.deco_type == "simple" then
|
||||||
if deco.fill_ratio and math.random(1000) - 1 < deco.fill_ratio * 1000 then
|
if deco.fill_ratio and math.random(1000) - 1 < deco.fill_ratio * 1000 then
|
||||||
|
if type(deco.decoration) == 'string' then
|
||||||
return deco.decoration
|
return deco.decoration
|
||||||
|
elseif type(deco.decoration) == 'table' then
|
||||||
|
return deco.decoration[math.random(#deco.decoration)]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
2
init.lua
2
init.lua
|
@ -25,7 +25,7 @@ end
|
||||||
|
|
||||||
loud_walking.DEBUG = false -- for maintenance only
|
loud_walking.DEBUG = false -- for maintenance only
|
||||||
loud_walking.max_height = 31000
|
loud_walking.max_height = 31000
|
||||||
loud_walking.baseline = 28000
|
loud_walking.baseline = 30000
|
||||||
loud_walking.extent_bottom = -400
|
loud_walking.extent_bottom = -400
|
||||||
loud_walking.extent_top = 400
|
loud_walking.extent_top = 400
|
||||||
|
|
||||||
|
|
115
nodes.lua
115
nodes.lua
|
@ -222,28 +222,103 @@ newnode.groups = {snappy = 3, flammable = 2}
|
||||||
minetest.register_node("loud_walking:leaves_black", newnode)
|
minetest.register_node("loud_walking:leaves_black", newnode)
|
||||||
|
|
||||||
|
|
||||||
newnode = loud_walking.clone_node("default:water_source")
|
minetest.register_node("loud_walking:water_poison_source", {
|
||||||
newnode.description = "Poisonous Water"
|
description = "Poisonous Water",
|
||||||
newnode.groups.poison = 3
|
drawtype = "liquid",
|
||||||
--newnode.light_source = 6
|
tiles = {
|
||||||
newnode.liquid_alternative_flowing = "loud_walking:water_poison_flowing"
|
{
|
||||||
newnode.liquid_alternative_source = "loud_walking:water_poison_source"
|
name = "loud_walking_water_poison_source_animated.png",
|
||||||
newnode.post_effect_color = {a = 103, r = 108, g = 128, b = 64}
|
backface_culling = false,
|
||||||
newnode.special_tiles[1].name = "loud_walking_water_poison_source_animated.png"
|
animation = {
|
||||||
newnode.tiles[1].name = "loud_walking_water_poison_source_animated.png"
|
type = "vertical_frames",
|
||||||
minetest.register_node("loud_walking:water_poison_source", newnode)
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 2.0,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "loud_walking_water_poison_source_animated.png",
|
||||||
|
backface_culling = true,
|
||||||
|
animation = {
|
||||||
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 2.0,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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 = "loud_walking:water_poison_flowing",
|
||||||
|
liquid_alternative_source = "loud_walking:water_poison_source",
|
||||||
|
liquid_viscosity = 1,
|
||||||
|
post_effect_color = {a = 103, r = 108, g = 128, b = 64},
|
||||||
|
groups = {water = 3, liquid = 3, cools_lava = 1, poison = 4},
|
||||||
|
sounds = default.node_sound_water_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
newnode = loud_walking.clone_node("default:water_flowing")
|
minetest.register_node("loud_walking:water_poison_flowing", {
|
||||||
newnode.description = "Poisonous Water"
|
description = "Poisonous Water",
|
||||||
newnode.groups.poison = 3
|
drawtype = "flowingliquid",
|
||||||
--newnode.light_source = 6
|
tiles = {"loud_walking_water_poison.png"},
|
||||||
newnode.liquid_alternative_flowing = "loud_walking:water_poison_flowing"
|
special_tiles = {
|
||||||
newnode.liquid_alternative_source = "loud_walking:water_poison_source"
|
{
|
||||||
newnode.post_effect_color = {a = 103, r = 108, g = 128, b = 64}
|
name = "loud_walking_water_poison_flowing_animated.png",
|
||||||
newnode.special_tiles[1].name = "loud_walking_water_poison_flowing_animated.png"
|
backface_culling = false,
|
||||||
newnode.tiles[1] = "loud_walking_water_poison.png"
|
animation = {
|
||||||
minetest.register_node("loud_walking:water_poison_flowing", newnode)
|
type = "vertical_frames",
|
||||||
|
aspect_w = 16,
|
||||||
|
aspect_h = 16,
|
||||||
|
length = 0.8,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "loud_walking_water_poison_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 = "loud_walking:water_poison_flowing",
|
||||||
|
liquid_alternative_source = "loud_walking:water_poison_source",
|
||||||
|
liquid_viscosity = 1,
|
||||||
|
post_effect_color = {a = 103, r = 108, g = 128, b = 64},
|
||||||
|
groups = {water = 3, liquid = 3, not_in_creative_inventory = 1,
|
||||||
|
cools_lava = 1, poison = 3},
|
||||||
|
sounds = default.node_sound_water_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
bucket.register_liquid(
|
||||||
|
"loud_walking:water_poison_source",
|
||||||
|
"loud_walking:water_poison_flowing",
|
||||||
|
"loud_walking:bucket_poison",
|
||||||
|
"bucket_poison.png",
|
||||||
|
"Poison Bucket",
|
||||||
|
{}
|
||||||
|
)
|
||||||
|
|
||||||
minetest.register_node("loud_walking:basalt", {
|
minetest.register_node("loud_walking:basalt", {
|
||||||
description = "Basalt",
|
description = "Basalt",
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
Loading…
Reference in New Issue