mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-15 15:00:34 +01:00
Various adaptations (again again...)
This commit is contained in:
parent
b5d96cabe1
commit
8735192dbb
|
@ -89,7 +89,6 @@ end
|
||||||
function watershed_jungletree(x, y, z, area, data)
|
function watershed_jungletree(x, y, z, area, data)
|
||||||
local c_juntree = minetest.get_content_id("default:jungletree")
|
local c_juntree = minetest.get_content_id("default:jungletree")
|
||||||
local c_wsjunleaf = minetest.get_content_id("watershed:jungleleaf")
|
local c_wsjunleaf = minetest.get_content_id("watershed:jungleleaf")
|
||||||
local c_vine = minetest.get_content_id("watershed:vine")
|
|
||||||
local top = math.random(17,23)
|
local top = math.random(17,23)
|
||||||
local branch = math.floor(top * 0.6)
|
local branch = math.floor(top * 0.6)
|
||||||
for j = -5, top do
|
for j = -5, top do
|
||||||
|
@ -112,16 +111,6 @@ function watershed_jungletree(x, y, z, area, data)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if j >= 0 and j <= top - 3 then -- climbable nodes
|
|
||||||
for i = -1, 1 do
|
|
||||||
for k = -1, 1 do
|
|
||||||
if math.abs(i) + math.abs(k) == 1 then
|
|
||||||
local vi = area:index(x + i, y + j, z + k)
|
|
||||||
data[vi] = c_vine
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if j <= top - 3 then -- trunk
|
if j <= top - 3 then -- trunk
|
||||||
local vi = area:index(x, y + j, z)
|
local vi = area:index(x, y + j, z)
|
||||||
data[vi] = c_juntree
|
data[vi] = c_juntree
|
||||||
|
|
|
@ -20,17 +20,7 @@ minetest.register_alias("watershed:jungling", "default:junglesapling")
|
||||||
|
|
||||||
minetest.register_alias("watershed:dirt", "default:dirt")
|
minetest.register_alias("watershed:dirt", "default:dirt")
|
||||||
|
|
||||||
minetest.register_node("watershed:icydirt", {
|
minetest.register_alias("watershed:icydirt", "default:dirt_with_grass")
|
||||||
description = "Icy dirt",
|
|
||||||
tiles = {"watershed_icydirt.png"},
|
|
||||||
is_ground_content = false,
|
|
||||||
groups = {crumbly=1},
|
|
||||||
drop = "default:dirt",
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
|
||||||
footstep = {name="default_snow_footstep", gain=0.15},
|
|
||||||
dug = {name="default_snow_footstep", gain=0.45},
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_alias("watershed:grass", "default:dirt_with_grass")
|
minetest.register_alias("watershed:grass", "default:dirt_with_grass")
|
||||||
|
|
||||||
|
@ -42,23 +32,7 @@ minetest.register_alias("watershed:stone", "default:stone")
|
||||||
|
|
||||||
minetest.register_alias("watershed:cactus", "default:cactus")
|
minetest.register_alias("watershed:cactus", "default:cactus")
|
||||||
|
|
||||||
minetest.register_node("watershed:goldengrass", {
|
minetest.register_alias("watershed:goldengrass", "default:dry_shrub")
|
||||||
description = "Golden Grass",
|
|
||||||
drawtype = "plantlike",
|
|
||||||
tiles = {"watershed_goldengrass.png"},
|
|
||||||
inventory_image = "watershed_goldengrass.png",
|
|
||||||
wield_image = "watershed_goldengrass.png",
|
|
||||||
paramtype = "light",
|
|
||||||
walkable = false,
|
|
||||||
buildable_to = true,
|
|
||||||
is_ground_content = false,
|
|
||||||
groups = {snappy=3,flammable=3,flora=1,attached_node=1},
|
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
|
||||||
selection_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("watershed:drygrass", {
|
minetest.register_node("watershed:drygrass", {
|
||||||
description = "Dry Dirt",
|
description = "Dry Dirt",
|
||||||
|
@ -71,36 +45,9 @@ minetest.register_node("watershed:drygrass", {
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("watershed:permafrost", {
|
minetest.register_alias("watershed:permafrost", "default:dirt")
|
||||||
description = "Permafrost",
|
|
||||||
tiles = {"watershed_permafrost.png"},
|
|
||||||
is_ground_content = false,
|
|
||||||
groups = {crumbly=1},
|
|
||||||
drop = "default:dirt",
|
|
||||||
sounds = default.node_sound_dirt_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("watershed:vine", {
|
minetest.register_alias("watershed:freshice", "default:ice")
|
||||||
description = "Jungletree vine",
|
|
||||||
drawtype = "airlike",
|
|
||||||
paramtype = "light",
|
|
||||||
walkable = false,
|
|
||||||
climbable = true,
|
|
||||||
pointable = false,
|
|
||||||
diggable = false,
|
|
||||||
buildable_to = true,
|
|
||||||
is_ground_content = false,
|
|
||||||
groups = {not_in_creative_inventory=1},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("watershed:freshice", {
|
|
||||||
description = "Fresh ice",
|
|
||||||
tiles = {"watershed_freshice.png"},
|
|
||||||
is_ground_content = false,
|
|
||||||
paramtype = "light",
|
|
||||||
groups = {cracky=3},
|
|
||||||
sounds = default.node_sound_glass_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_alias("watershed:cloud", "default:cloud")
|
minetest.register_alias("watershed:cloud", "default:cloud")
|
||||||
|
|
||||||
|
@ -142,7 +89,6 @@ minetest.register_alias("watershed:acaciawood", "moretrees:acacia_wood")
|
||||||
minetest.register_alias("watershed:pinewood", "default:pinewood")
|
minetest.register_alias("watershed:pinewood", "default:pinewood")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_alias("watershed:freshwater", "default:river_water_source")
|
minetest.register_alias("watershed:freshwater", "default:river_water_source")
|
||||||
|
|
||||||
minetest.register_alias("watershed:freshwaterflow", "default:river_water_flowing")
|
minetest.register_alias("watershed:freshwaterflow", "default:river_water_flowing")
|
||||||
|
@ -181,13 +127,7 @@ minetest.register_craft({
|
||||||
|
|
||||||
-- Buckets
|
-- Buckets
|
||||||
|
|
||||||
bucket.register_liquid(
|
minetest.register_alias("watershed:bucket_freshwater", "bucket:bucket_frashwater")
|
||||||
"watershed:freshwater",
|
|
||||||
"watershed:freshwaterflow",
|
|
||||||
"watershed:bucket_freshwater",
|
|
||||||
"watershed_bucketfreshwater.png",
|
|
||||||
"River Water Bucket"
|
|
||||||
)
|
|
||||||
|
|
||||||
minetest.register_alias("watershed:bucket_lava", "bucket:bucket_lava")
|
minetest.register_alias("watershed:bucket_lava", "bucket:bucket_lava")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user