Add files via upload

This commit is contained in:
Skandarella 2023-01-21 17:13:19 +01:00 committed by GitHub
parent f47e5243eb
commit ccb83e8fa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 210 additions and 88 deletions

View File

@ -1,3 +1,4 @@
local S = minetest.get_translator("livingdesert")
local modname = "livingdesert"
local modpath = minetest.get_modpath(modname)
@ -19,7 +20,7 @@ local mg_name = minetest.get_mapgen_setting("mg_name")
-- ground nodes
minetest.register_node("livingdesert:coldsteppe_ground", {
description = ("Cold Desert Ground"),
description = S("Cold Desert Ground"),
tiles = {"livingdesert_coldsteppe_ground.png", "default_sand.png",
{name = "default_sand.png^livingdesert_coldsteppe_ground_side.png",
tileable_vertical = false}},
@ -31,7 +32,7 @@ minetest.register_node("livingdesert:coldsteppe_ground", {
})
minetest.register_node("livingdesert:coldsteppe_ground2", {
description = ("Cold Desert Ground"),
description = S("Cold Desert Ground"),
tiles = {"livingdesert_coldsteppe_ground2.png", "default_sand.png",
{name = "default_sand.png^livingdesert_coldsteppe_ground2_side.png",
tileable_vertical = false}},
@ -43,7 +44,7 @@ minetest.register_node("livingdesert:coldsteppe_ground2", {
})
minetest.register_node("livingdesert:coldsteppe_ground3", {
description = ("Cold Desert Ground"),
description = S("Cold Desert Ground"),
tiles = {"livingdesert_coldsteppe_ground3.png", "default_sand.png",
{name = "default_sand.png^livingdesert_coldsteppe_ground3_side.png",
tileable_vertical = false}},
@ -55,7 +56,7 @@ minetest.register_node("livingdesert:coldsteppe_ground3", {
})
minetest.register_node("livingdesert:coldsteppe_ground4", {
description = ("Cold Desert Ground"),
description = S("Cold Desert Ground"),
tiles = {"livingdesert_coldsteppe_ground4.png", "default_sand.png",
{name = "default_sand.png^livingdesert_coldsteppe_ground4_side.png",
tileable_vertical = false}},
@ -147,7 +148,7 @@ minetest.register_node("livingdesert:coldsteppe_ground4", {
})
minetest.register_node("livingdesert:coldsteppe_grass1", {
description = "Coldsteppe Grass",
description = S"Coldsteppe Grass",
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,
@ -178,7 +179,7 @@ minetest.register_node("livingdesert:coldsteppe_grass1", {
})
minetest.register_node("livingdesert:coldsteppe_grass2", {
description = "Coldsteppe Grass",
description = S"Coldsteppe Grass",
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,
@ -209,7 +210,7 @@ minetest.register_node("livingdesert:coldsteppe_grass2", {
})
minetest.register_node("livingdesert:coldsteppe_grass3", {
description = "Coldsteppe Grass",
description = S"Coldsteppe Grass",
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,
@ -240,7 +241,7 @@ minetest.register_node("livingdesert:coldsteppe_grass3", {
})
minetest.register_node("livingdesert:coldsteppe_grass4", {
description = "Coldsteppe Grass",
description = S"Coldsteppe Grass",
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,
@ -271,7 +272,7 @@ minetest.register_node("livingdesert:coldsteppe_grass4", {
})
minetest.register_node("livingdesert:coldsteppe_grass6", {
description = "Coldsteppe Grass",
description = S"Coldsteppe Grass",
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,
@ -310,7 +311,7 @@ minetest.register_node("livingdesert:coldsteppe_grass6", {
})
minetest.register_node("livingdesert:saxaul_shrub", {
description = "Coldsteppe Shrub",
description = S"Coldsteppe Shrub",
drawtype = "plantlike",
waving = 1,
visual_scale = 2.0,
@ -351,7 +352,7 @@ minetest.register_node("livingdesert:saxaul_shrub", {
})
minetest.register_node("livingdesert:saxaul_shrub2", {
description = "Coldsteppe Shrub",
description = S"Coldsteppe Shrub",
drawtype = "plantlike",
waving = 1,
visual_scale = 2.0,
@ -412,7 +413,7 @@ end
-- datepalm trunk
minetest.register_node("livingdesert:pine_trunk", {
description = ("Cold Desert Larch Trunk"),
description = S("Cold Desert Larch Trunk"),
tiles = {
"livingdesert_pine_trunk_top.png",
"livingdesert_pine_trunk_top.png",
@ -425,7 +426,7 @@ minetest.register_node("livingdesert:pine_trunk", {
})
minetest.register_node("livingdesert:pine_leaves", {
description = ("Cold Desert Larch Leaves"),
description = S("Cold Desert Larch Leaves"),
drawtype = "allfaces_optional",
waving = 1,
visual_scale = 1.0,
@ -433,7 +434,7 @@ minetest.register_node("livingdesert:pine_leaves", {
special_tiles = {"livingdesert_pine_leaves.png"},
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1, winleafdecay = 3},
drop = {
max_items = 1,
items = {
@ -455,7 +456,7 @@ minetest.register_node("livingdesert:pine_leaves", {
})
minetest.register_node("livingdesert:pine_leaves2", {
description = ("Cold Desert Larch Leaves"),
description = S("Cold Desert Larch Leaves"),
drawtype = "allfaces_optional",
waving = 1,
visual_scale = 1.0,
@ -463,7 +464,7 @@ minetest.register_node("livingdesert:pine_leaves2", {
special_tiles = {"livingdesert_pine_leaves2.png"},
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1, winleafdecay = 3},
drop = {
max_items = 1,
items = {
@ -485,7 +486,7 @@ minetest.register_node("livingdesert:pine_leaves2", {
})
minetest.register_node("livingdesert:pine_leaves3", {
description = ("Cold Desert Larch Leaves"),
description = S("Cold Desert Larch Leaves"),
drawtype = "allfaces_optional",
waving = 1,
visual_scale = 1.0,
@ -493,7 +494,7 @@ minetest.register_node("livingdesert:pine_leaves3", {
special_tiles = {"livingdesert_pine_leaves3.png"},
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1, winleafdecay = 3},
drop = {
max_items = 1,
items = {
@ -515,7 +516,7 @@ minetest.register_node("livingdesert:pine_leaves3", {
})
minetest.register_node("livingdesert:pine_sapling", {
description = ("Cold Desert Larch Sapling"),
description = S("Cold Desert Larch Sapling"),
drawtype = "plantlike",
tiles = {"livingdesert_pine_sapling.png"},
inventory_image = "livingdesert_pine_sapling.png",
@ -550,7 +551,7 @@ minetest.register_node("livingdesert:pine_sapling", {
})
minetest.register_node("livingdesert:pine_sapling2", {
description = ("Cold Desert Larch Sapling"),
description = S("Cold Desert Larch Sapling"),
drawtype = "plantlike",
tiles = {"livingdesert_pine_sapling2.png"},
inventory_image = "livingdesert_pine_sapling2.png",
@ -585,7 +586,7 @@ minetest.register_node("livingdesert:pine_sapling2", {
})
minetest.register_node("livingdesert:pine_sapling3", {
description = ("Cold Desert Larch Sapling"),
description = S("Cold Desert Larch Sapling"),
drawtype = "plantlike",
tiles = {"livingdesert_pine_sapling3.png"},
inventory_image = "livingdesert_pine_sapling3.png",
@ -621,7 +622,7 @@ minetest.register_node("livingdesert:pine_sapling3", {
-- pine wood
minetest.register_node("livingdesert:pine_wood", {
description = ("Cold Desert Larch Wood"),
description = S("Cold Desert Larch Wood"),
tiles = {"livingdesert_pine_wood.png"},
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
@ -638,8 +639,8 @@ minetest.register_craft({
"livingdesert:pine_wood",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"livingdesert_pine_wood.png"},
("Cold Desert Larch Stair"),
("Cold Desert Larch Slab"),
S("Cold Desert Larch Stair"),
S("Cold Desert Larch Slab"),
default.node_sound_wood_defaults()
)
@ -648,15 +649,15 @@ minetest.register_craft({
"livingdesert:pine_trunk",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"livingdesert_pine_trunk_top.png", "livingdesert_pine_trunk_top.png", "livingdesert_pine_trunk.png"},
("Cold Desert Larch Trunk Stair"),
("Cold Desert Larch Trunk Slab"),
S("Cold Desert Larch Trunk Stair"),
S("Cold Desert Larch Trunk Slab"),
default.node_sound_wood_defaults()
)
doors.register_fencegate(
"livingdesert:gate_pine_wood",
{
description = ("Cold Desert Larch Wood Fence Gate"),
description = S("Cold Desert Larch Wood Fence Gate"),
texture = "livingdesert_pine_wood.png",
material = "livingdesert:pine_wood",
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
@ -668,7 +669,7 @@ minetest.register_craft({
default.register_fence(
"livingdesert:fence_pine_wood",
{
description = ("Cold Desert Larch Fence"),
description = S("Cold Desert Larch Fence"),
texture = "livingdesert_pine_fence_wood.png",
inventory_image = "default_fence_overlay.png^livingdesert_pine_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
wield_image = "default_fence_overlay.png^livingdesert_pine_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
@ -681,7 +682,7 @@ default.register_fence(
default.register_fence_rail(
"livingdesert:fence_rail_pine_wood",
{
description = ("Cold Desert Larch Fence Rail"),
description = S("Cold Desert Larch Fence Rail"),
texture = "livingdesert_pine_fence_wood.png",
inventory_image = "default_fence_rail_overlay.png^livingdesert_pine_wood.png^" ..
"default_fence_rail_overlay.png^[makealpha:255,126,126",
@ -885,13 +886,13 @@ local function grow_new_saxaul_tree(pos)
return
end
minetest.remove_node(pos)
minetest.place_schematic({x = pos.x - 3, y = pos.y - 0, z = pos.z - 3}, modpath.."/schematics/livingdesert_saxaul.mts", "0", nil, false)
minetest.place_schematic({x = pos.x - 2, y = pos.y - 0, z = pos.z - 2}, modpath.."/schematics/livingdesert_saxaul.mts", "0", nil, false)
end
-- saxaul trunk
minetest.register_node("livingdesert:saxaul_trunk", {
description = ("Saxaul Tree Trunk"),
description = S("Saxaul Tree Trunk"),
tiles = {
"livingdesert_saxaul_trunk.png",
"livingdesert_saxaul_trunk.png",
@ -904,7 +905,7 @@ minetest.register_node("livingdesert:saxaul_trunk", {
})
minetest.register_node("livingdesert:saxaul_leaves", {
description = ("Saxaul Tree Leaves"),
description = S("Saxaul Tree Leaves"),
drawtype = "allfaces_optional",
waving = 1,
visual_scale = 1.0,
@ -934,7 +935,7 @@ minetest.register_node("livingdesert:saxaul_leaves", {
})
minetest.register_node("livingdesert:saxaul_sapling", {
description = ("Saxaul Tree Sapling"),
description = S("Saxaul Tree Sapling"),
drawtype = "plantlike",
tiles = {"livingdesert_saxaul_sapling.png"},
inventory_image = "livingdesert_saxaul_sapling.png",
@ -970,7 +971,7 @@ minetest.register_node("livingdesert:saxaul_sapling", {
-- saxaul wood
minetest.register_node("livingdesert:saxaul_wood", {
description = ("Saxaul Tree Wood"),
description = S("Saxaul Tree Wood"),
tiles = {"livingdesert_saxaul_wood.png"},
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
@ -987,8 +988,8 @@ minetest.register_craft({
"livingdesert:saxaul_wood",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"livingdesert_saxaul_wood.png"},
("Saxaul Tree Stair"),
("Saxaul Tree Slab"),
S("Saxaul Tree Stair"),
S("Saxaul Tree Slab"),
default.node_sound_wood_defaults()
)
@ -997,15 +998,15 @@ minetest.register_craft({
"livingdesert:saxaul_trunk",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"livingdesert_saxaul_trunk.png", "livingdesert_saxaul_trunk.png", "livingdesert_saxaul_trunk.png"},
("Saxaul Tree Trunk Stair"),
("Saxaul Tree Trunk Slab"),
S("Saxaul Tree Trunk Stair"),
S("Saxaul Tree Trunk Slab"),
default.node_sound_wood_defaults()
)
doors.register_fencegate(
"livingdesert:gate_saxaul_wood",
{
description = ("Saxaul Tree Wood Fence Gate"),
description = S("Saxaul Tree Wood Fence Gate"),
texture = "livingdesert_saxaul_wood.png",
material = "livingdesert:saxaul_wood",
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
@ -1017,7 +1018,7 @@ minetest.register_craft({
default.register_fence(
"livingdesert:fence_saxaul_wood",
{
description = ("Saxaul Tree Fence"),
description = S("Saxaul Tree Fence"),
texture = "livingdesert_saxaul_fence_wood.png",
inventory_image = "default_fence_overlay.png^livingdesert_saxaul_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
wield_image = "default_fence_overlay.png^livingdesert_saxaul_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
@ -1030,7 +1031,7 @@ default.register_fence(
default.register_fence_rail(
"livingdesert:fence_rail_saxaul_wood",
{
description = ("Saxaul Tree Fence Rail"),
description = S("Saxaul Tree Fence Rail"),
texture = "livingdesert_saxaul_fence_wood.png",
inventory_image = "default_fence_rail_overlay.png^livingdesert_saxaul_wood.png^" ..
"default_fence_rail_overlay.png^[makealpha:255,126,126",
@ -1182,7 +1183,7 @@ minetest.register_decoration({
})
minetest.register_node("livingdesert:deadshrub", {
description = "Dead Shrub",
description = S"Dead Shrub",
drawtype = "plantlike",
waving = 1,
visual_scale = 2.0,
@ -1203,7 +1204,7 @@ minetest.register_node("livingdesert:deadshrub", {
})
minetest.register_node("livingdesert:flower", {
description = "Crocus Flower",
description = S"Crocus Flower",
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,

View File

@ -1,3 +1,4 @@
local S = minetest.get_translator("livingdesert")
local modname = "livingdesert"
local modpath = minetest.get_modpath(modname)
@ -21,7 +22,7 @@ end
-- datepalm trunk
minetest.register_node("livingdesert:date_palm_trunk", {
description = ("Date Palm Trunk"),
description = S("Date Palm Trunk"),
tiles = {
"livingdesert_date_palm_trunk_top.png",
"livingdesert_date_palm_trunk_top.png",
@ -34,7 +35,7 @@ minetest.register_node("livingdesert:date_palm_trunk", {
})
minetest.register_node("livingdesert:date_palm_leaves", {
description = ("Date Palm Leaves"),
description = S("Date Palm Leaves"),
drawtype = "plantlike",
waving = 1,
visual_scale = 4.0,
@ -42,14 +43,14 @@ minetest.register_node("livingdesert:date_palm_leaves", {
special_tiles = {"livingdesert_date_palm_leaves.png"},
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1, winleafdecay = 3},
drop = {
max_items = 1,
items = {
{
-- player will get sapling with 1/50 chance
-- player will get sapling with 1/25 chance
items = {'livingdesert:date_palm_sapling'},
rarity = 50,
rarity = 3,
},
{
-- player will get leaves only if he get no saplings,
@ -64,7 +65,7 @@ minetest.register_node("livingdesert:date_palm_leaves", {
})
minetest.register_node("livingdesert:date_palm_sapling", {
description = ("Date Palm Sapling"),
description = S("Date Palm Sapling"),
drawtype = "plantlike",
tiles = {"livingdesert_date_palm_sapling.png"},
inventory_image = "livingdesert_date_palm_sapling.png",
@ -100,7 +101,7 @@ minetest.register_node("livingdesert:date_palm_sapling", {
-- date_palm wood
minetest.register_node("livingdesert:date_palm_wood", {
description = ("Date Palm Wood"),
description = S("Date Palm Wood"),
tiles = {"livingdesert_date_palm_wood.png"},
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
@ -117,8 +118,8 @@ minetest.register_craft({
"livingdesert:date_palm_wood",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"livingdesert_date_palm_wood.png"},
("Date Palm Stair"),
("Date Palm Slab"),
S("Date Palm Stair"),
S("Date Palm Slab"),
default.node_sound_wood_defaults()
)
@ -127,15 +128,15 @@ minetest.register_craft({
"livingdesert:date_palm_trunk",
{choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
{"livingdesert_date_palm_trunk_top.png", "livingdesert_date_palm_trunk_top.png", "livingdesert_date_palm_trunk.png"},
("Date Palm Trunk Stair"),
("Date Palm Trunk Slab"),
S("Date Palm Trunk Stair"),
S("Date Palm Trunk Slab"),
default.node_sound_wood_defaults()
)
doors.register_fencegate(
"livingdesert:gate_date_palm_wood",
{
description = ("Date Palm Wood Fence Gate"),
description = S("Date Palm Wood Fence Gate"),
texture = "livingdesert_date_palm_wood.png",
material = "livingdesert:date_palm_wood",
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
@ -147,7 +148,7 @@ minetest.register_craft({
default.register_fence(
"livingdesert:fence_date_palm_wood",
{
description = ("Date Palm Fence"),
description = S("Date Palm Fence"),
texture = "livingdesert_date_palm_fence_wood.png",
inventory_image = "default_fence_overlay.png^livingdesert_date_palm_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
wield_image = "default_fence_overlay.png^livingdesert_date_palm_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
@ -160,7 +161,7 @@ default.register_fence(
default.register_fence_rail(
"livingdesert:fence_rail_date_palm_wood",
{
description = ("Date Palm Fence Rail"),
description = S("Date Palm Fence Rail"),
texture = "livingdesert_date_palm_fence_wood.png",
inventory_image = "default_fence_rail_overlay.png^livingdesert_date_palm_wood.png^" ..
"default_fence_rail_overlay.png^[makealpha:255,126,126",
@ -220,7 +221,7 @@ minetest.register_decoration({
-- date fruits
minetest.register_node("livingdesert:date_palm_fruits", {
description = ("Date Palm Fruits"),
description = S("Date Palm Fruits"),
drawtype = "plantlike",
tiles = {"livingdesert_date_palm_fruits.png"},
inventory_image = "livingdesert_date_palm_fruits.png",
@ -232,7 +233,7 @@ minetest.register_node("livingdesert:date_palm_fruits", {
type = "fixed",
fixed = {-0.31, -0.5, -0.31, 0.31, 0.5, 0.31}
},
groups = {food = 1, flammable = 2, fleshy = 3, dig_immediate = 3, leafdecay = 1, leafdecay_drop = 1},
groups = {food = 1, flammable = 2, fleshy = 3, dig_immediate = 3, leafdecay = 1, leafdecay_drop = 1, winleafdecay_drop = 1, winleafdecay = 3},
drop = "livingdesert:date_palm_fruits",
on_use = minetest.item_eat(6),
sounds = default.node_sound_leaves_defaults(),
@ -261,7 +262,7 @@ end
-- euphorbia trunk
minetest.register_node("livingdesert:euphorbia_trunk", {
description = ("Euphorbia Trunk"),
description = S("Euphorbia Trunk"),
tiles = {
"livingdesert_euphorbia_trunk.png",
"livingdesert_euphorbia_trunk.png",
@ -274,7 +275,7 @@ minetest.register_node("livingdesert:euphorbia_trunk", {
})
minetest.register_node("livingdesert:euphorbia_leaves", {
description = ("Euphorbia Leaves"),
description = S("Euphorbia Leaves"),
drawtype = "plantlike",
waving = 1,
visual_scale = 2.0,
@ -282,14 +283,14 @@ minetest.register_node("livingdesert:euphorbia_leaves", {
special_tiles = {"livingdesert_euphorbia_leaves.png"},
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1, winleafdecay = 3},
drop = {
max_items = 1,
items = {
{
-- player will get sapling with 1/50 chance
items = {'livingdesert:euphorbia_sapling'},
rarity = 50,
rarity = 2,
},
{
-- player will get leaves only if he get no saplings,
@ -304,7 +305,7 @@ minetest.register_node("livingdesert:euphorbia_leaves", {
})
minetest.register_node("livingdesert:euphorbia_sapling", {
description = ("Euphorbia Sapling"),
description = S("Euphorbia Sapling"),
drawtype = "plantlike",
tiles = {"livingdesert_euphorbia_sapling.png"},
inventory_image = "livingdesert_euphorbia_sapling.png",
@ -422,7 +423,7 @@ end
-- figcactus trunk
minetest.register_node("livingdesert:figcactus_trunk", {
description = ("Figcactus Trunk"),
description = S("Figcactus Trunk"),
tiles = {
"livingdesert_figcactus.png",
"livingdesert_figcactus.png",
@ -435,7 +436,7 @@ minetest.register_node("livingdesert:figcactus_trunk", {
})
minetest.register_node("livingdesert:figcactus_flower", {
description = ("Figcactus Leaves"),
description = S("Figcactus Leaves"),
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,
@ -443,14 +444,14 @@ minetest.register_node("livingdesert:figcactus_flower", {
special_tiles = {"livingdesert_figcactus_flower.png"},
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1, winleafdecay = 3},
drop = {
max_items = 1,
items = {
{
-- player will get sapling with 1/50 chance
-- player will get sapling with 1/25 chance
items = {'livingdesert:figcactus_sapling'},
rarity = 50,
rarity = 2,
},
{
-- player will get leaves only if he get no saplings,
@ -465,7 +466,7 @@ minetest.register_node("livingdesert:figcactus_flower", {
})
minetest.register_node("livingdesert:figcactus_sapling", {
description = ("Figcactus Sapling"),
description = S("Figcactus Sapling"),
drawtype = "plantlike",
tiles = {"livingdesert_figcactus_sapling.png"},
inventory_image = "livingdesert_figcactus_sapling.png",
@ -657,7 +658,7 @@ minetest.register_decoration({
-- figcactus fruits
minetest.register_node("livingdesert:figcactus_fruit", {
description = ("Figcactus Fruit"),
description = S("Figcactus Fruit"),
drawtype = "plantlike",
tiles = {"livingdesert_figcactus_fruit.png"},
inventory_image = "livingdesert_figcactus_fruit.png",
@ -669,7 +670,7 @@ minetest.register_node("livingdesert:figcactus_fruit", {
type = "fixed",
fixed = {-0.31, -0.5, -0.31, 0.31, 0.5, 0.31}
},
groups = {food = 1, flammable = 2, fleshy = 3, dig_immediate = 3, leafdecay = 1, leafdecay_drop = 1},
groups = {food = 1, flammable = 2, fleshy = 3, dig_immediate = 3, leafdecay = 1, leafdecay_drop = 1, winleafdecay_drop = 1, winleafdecay = 3},
drop = "livingdesert:figcactus_fruit",
on_use = minetest.item_eat(6),
sounds = default.node_sound_leaves_defaults(),
@ -681,7 +682,7 @@ minetest.register_node("livingdesert:figcactus_fruit", {
})
minetest.register_node("livingdesert:yucca", {
description = ("Yucca palm"),
description = S("Yucca palm"),
drawtype = "plantlike",
waving = 1,
visual_scale = 2.0,
@ -781,7 +782,7 @@ minetest.register_node("livingdesert:succulent", {
})
minetest.register_node("livingdesert:succulent2", {
description = "Succulent",
description = S"Succulent",
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,
@ -821,7 +822,7 @@ minetest.register_node("livingdesert:succulent2", {
})
minetest.register_node("livingdesert:succulent3", {
description = "Succulent",
description = S"Succulent",
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,
@ -860,7 +861,7 @@ minetest.register_node("livingdesert:succulent3", {
})
minetest.register_node("livingdesert:succulent4", {
description = "Lithops",
description = S"Lithops",
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,
@ -899,7 +900,7 @@ minetest.register_node("livingdesert:succulent4", {
})
minetest.register_node("livingdesert:succulent5", {
description = "Lithops",
description = S"Lithops",
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,
@ -939,7 +940,7 @@ minetest.register_node("livingdesert:succulent5", {
})
minetest.register_node("livingdesert:cactus", {
description = "Barrel Cactus",
description = S"Barrel Cactus",
drawtype = "plantlike",
waving = 0,
visual_scale = 2.0,
@ -979,7 +980,7 @@ minetest.register_node("livingdesert:cactus", {
})
minetest.register_node("livingdesert:cactus2", {
description = "Peanut Cactus",
description = S"Peanut Cactus",
drawtype = "plantlike",
waving = 0,
visual_scale = 1.0,
@ -1019,7 +1020,7 @@ minetest.register_node("livingdesert:cactus2", {
})
minetest.register_node("livingdesert:cactus3", {
description = "Spider Cactus",
description = S"Spider Cactus",
drawtype = "plantlike",
waving = 0,
visual_scale = 2.0,
@ -1060,7 +1061,7 @@ minetest.register_node("livingdesert:cactus3", {
})
minetest.register_node("livingdesert:cactus4", {
description = "Small Barrel Cactus",
description = S"Small Barrel Cactus",
drawtype = "plantlike",
waving = 0,
visual_scale = 1.0,
@ -1100,7 +1101,7 @@ minetest.register_node("livingdesert:cactus4", {
})
minetest.register_node("livingdesert:cactus5", {
description = "Small Spider Cactus",
description = S"Small Spider Cactus",
drawtype = "plantlike",
waving = 0,
visual_scale = 1.0,

56
dye.lua Normal file
View File

@ -0,0 +1,56 @@
minetest.register_craft({
output = "dye:brown 2",
recipe = {
{"livingdesert:coldsteppe_grass1"}
},
})
minetest.register_craft({
output = "dye:green 2",
recipe = {
{"livingdesert:coldsteppe_grass2"}
},
})
minetest.register_craft({
output = "dye:brown 2",
recipe = {
{"livingdesert:coldsteppe_grass4"}
},
})
minetest.register_craft({
output = "dye:grey 2",
recipe = {
{"livingdesert:coldsteppe_grass6"}
},
})
minetest.register_craft({
output = "dye:yellow 2",
recipe = {
{"livingdesert:figcactus_flower"}
},
})
minetest.register_craft({
output = "dye:orange 2",
recipe = {
{"livingdesert:figcactus_fruit"}
},
})
minetest.register_craft({
output = "dye:violet 2",
recipe = {
{"livingdesert:flower"}
},
})
minetest.register_craft({
output = "dye:yellow 2",
recipe = {
{"livingdesert:succulent3"}
},
})

View File

@ -1,7 +1,7 @@
--This creates the livingdesert object.
livingdesert = {}
--This creates the naturalbiomes.settings object, and fills it with either the menu selected choices as defined in settingtypes.txt, or default values, (In this case, false).
--This creates the livingdesert.settings object, and fills it with either the menu selected choices as defined in settingtypes.txt, or default values, (In this case, false).
livingdesert.settings = {
clear_biomes = minetest.settings:get_bool("livingdesert.clear_biomes") or false,
clear_decos = minetest.settings:get_bool("livingdesert.clear_decos") or false,
@ -34,6 +34,7 @@ local S = minetest.get_translator and minetest.get_translator("livingdesert") or
dofile(path .. "desertplants.lua") --
dofile(path .. "colddesert.lua") --
dofile(path .. "yurts.lua") --
dofile(path .. "dye.lua") --
dofile(path .. "leafdecay.lua") --
dofile(path .. "hunger.lua") --

View File

@ -1,4 +1,5 @@
default.register_leafdecay({
trunks = {"livingdesert:date_palm_trunk"},
leaves = {"livingdesert:date_palm_leaves", "livingdesert:date_palm_fruits"},

60
locale/livingdesert.de.tr Normal file
View File

@ -0,0 +1,60 @@
# textdomain: livingdesert
Cold Desert Ground=Kaltwüstenboden
Coldsteppe Grass=Kaltsteppengras
Coldsteppe Shrub=Kaltsteppenbusch
Cold Desert Larch Trunk=Kaltwüstenlärchen Stamm
Cold Desert Larch Leaves=Kaltwüstenlärchen Blätter
Cold Desert Larch Sapling=Kaltwüstenlärchen Setzling
Cold Desert Larch Wood=Kaltwüstenlärchen Holz
Cold Desert Larch Stair=Kaltwüstenlärchen Treppe
Cold Desert Larch Slab=Laltwüstenlärchen Holz Platte
Cold Desert Larch Trunk Stair=Kaltwüstenlärchen Stamm Treppe
Cold Desert Larch Trunk Slab=Kaltwüstenlärchen Stamm Platte
Cold Desert Larch Fence=Kaltwüstenlärchen Zaun
Cold Desert Larch Fence Rail=Kaltwüstenlärchen Geländer
Cold Desert Larch Wood Fence Gate=Kaltwüstenlärchen Zauntor
Saxaul Tree Trunk=Saxaulbaum Stamm
Saxaul Tree Leaves=Saxaulbaum Blätter
Saxaul Tree Sapling=Saxaulbaum Setzing
Saxaul Tree Wood=Saxaulbaum Holz
Saxaul Tree Stair=Saxaulbaum Treppe
Saxaul Tree Slab=Saxaulbaum Platte
Saxaul Tree Trunk Stair=Saxaulbaum Stamm Treppe
Saxaul Tree Trunk Slab=Saxaulbaum Stamm Platte
Saxaul Tree Wood Fence Gate=Saxaulbaum Holzzauntor
Saxaul Tree Fence=Saxaulbaum Zaun
Saxaul Tree Fence Rail=Saxaulbaum Geländer
Dead Shrub=Toter Busch
Crocus Flower=Krokus
Date Palm Trunk=Dattelpalmen Stamm
Date Palm Leaves=Dattenpalmenwendel
Date Palm Sapling=Dattelpalmen Setzling
Date Palm Wood=Dattelpalmen Holz
Date Palm Stair=Dattelpalmen Treppe
Date Palm Slab=Dattelpalmen Platte
Date Palm Trunk Stair=Dattelpalmen Stamm Treppe
Date Palm Trunk Slab=Dattelpalmen Stamm Platte
Date Palm Wood Fence Gate=Dattelpalmen Holzzaun Tor
Date Palm Fence=Dattelpalmen Zaun
Date Palm Fence Rail=Dattelpalmenzaun Geländer
Date Palm Fruits=Datteln
Euphorbia Trunk=Euphorbien Stamm
Euphorbia Leaves=Euphorbienblätter
Euphorbia Sapling=Euphorbien Setzling
Figcactus Trunk=Feigenkaktus Stamm
Figcactus Leaves=Feigenkaktus Blüte
Figcactus Sapling=Feigenkaktus Setzling
Figcactus Fruit=Kaktusfeige
Yucca palm=Yuccapalme
Succulent=Sukkulente
Barrel Cactus=Fasskaktus
Small Barrel Cactus=Kleiner Fasskaktus
Spider Cactus=Spinnenkaktus
Small Spider Cactus=Kleiner Spinnenkaktus
Peanut Cactus=Erdnusskaktus
Yurt lower outside part=Unteres Außenteil der Jurte
Yurt second lower outside part=Zweites unteres Außenteil der Jurte
Yurt upper outside part=Oberes Außenteil der Jurte
Yurt lower inside part=Unteres Innenteil der Jurte
Yurt upper inside part=Oberes Innenteil der Jurte

View File

@ -1,7 +1,9 @@
local S = minetest.get_translator("livingdesert")
-- Yurt Building Parts
minetest.register_node("livingdesert:yurt_outside", {
description = ("Yurt lower outside part"),
description = S("Yurt lower outside part"),
tiles = {
"livingdesert_yurt_outside.png",
"livingdesert_yurt_outside.png",
@ -15,7 +17,7 @@ groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3,
})
minetest.register_node("livingdesert:yurt_outsidesecond", {
description = ("Yurt second lower outside part"),
description = S("Yurt second lower outside part"),
tiles = {
"livingdesert_yurt_outside_top.png",
"livingdesert_yurt_outside_top.png",
@ -29,7 +31,7 @@ groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3,
})
minetest.register_node("livingdesert:yurt_outside2", {
description = ("Yurt upper outside part"),
description = S("Yurt upper outside part"),
tiles = {
"livingdesert_yurt_outside2_top.png",
"livingdesert_yurt_outside2_top.png",
@ -43,7 +45,7 @@ groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3,
})
minetest.register_node("livingdesert:yurt_inside", {
description = ("Yurt lower inside part"),
description = S("Yurt lower inside part"),
tiles = {"livingdesert_yurt_inside.png"},
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
@ -51,7 +53,7 @@ minetest.register_node("livingdesert:yurt_inside", {
})
minetest.register_node("livingdesert:yurt_inside2", {
description = ("Yurt upper inside part"),
description = S("Yurt upper inside part"),
tiles = {"livingdesert_yurt_inside2.png"},
is_ground_content = false,
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},