diff options
author | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-07-14 21:41:51 +0300 |
---|---|---|
committer | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-07-14 21:41:51 +0300 |
commit | 69709206eb0264e348694b64b5749593bf2a8b69 (patch) | |
tree | d25543502a4bc68ac0d505fd510c7c456abd24da | |
parent | 96e3d6365be1bd5c8ea8a4efdd13a59f505aed80 (diff) |
cleanup
-rw-r--r-- | nodes_anvil.lua | 2 | ||||
-rw-r--r-- | nodes_barrel.lua | 10 | ||||
-rw-r--r-- | nodes_chests.lua | 6 | ||||
-rw-r--r-- | nodes_doorlike.lua | 12 | ||||
-rw-r--r-- | nodes_feldweg.lua | 38 | ||||
-rw-r--r-- | nodes_fences.lua | 6 | ||||
-rw-r--r-- | nodes_furniture.lua | 14 | ||||
-rw-r--r-- | nodes_historic.lua | 36 | ||||
-rw-r--r-- | nodes_mining.lua | 7 | ||||
-rw-r--r-- | nodes_straw.lua | 65 |
10 files changed, 127 insertions, 69 deletions
diff --git a/nodes_anvil.lua b/nodes_anvil.lua index bbbfd1a..626419a 100644 --- a/nodes_anvil.lua +++ b/nodes_anvil.lua @@ -50,7 +50,7 @@ local cottages_anvil_formspec = minetest.register_node("cottages:anvil", { drawtype = "nodebox", - description = S("anvil"), + description = S("Anvil"), tiles = {"cottages_stone.png"}, -- TODO default_steel_block.png, default_obsidian.png are also nice paramtype = "light", paramtype2 = "facedir", diff --git a/nodes_barrel.lua b/nodes_barrel.lua index 4c84983..4a2d096 100644 --- a/nodes_barrel.lua +++ b/nodes_barrel.lua @@ -69,7 +69,7 @@ end -- right-click to open/close barrel; punch to switch between horizontal/vertical position minetest.register_node("cottages:barrel", { - description = S("barrel (closed)"), + description = S("Barrel (closed)"), paramtype = "light", drawtype = "mesh", mesh = "cottages_barrel_closed.obj", @@ -100,7 +100,7 @@ end -- this barrel is opened at the top minetest.register_node("cottages:barrel_open", { - description = S("barrel (open)"), + description = S("Barrel (open)"), paramtype = "light", drawtype = "mesh", mesh = "cottages_barrel.obj", @@ -119,7 +119,7 @@ end -- horizontal barrel minetest.register_node("cottages:barrel_lying", { - description = S("barrel (closed), lying somewhere"), + description = S("Barrel (closed), lying somewhere"), paramtype = "light", paramtype2 = "facedir", drawtype = "mesh", @@ -143,7 +143,7 @@ end -- horizontal barrel, open minetest.register_node("cottages:barrel_lying_open", { - description = S("barrel (opened), lying somewhere"), + description = S("Barrel (opened), lying somewhere"), paramtype = "light", paramtype2 = "facedir", drawtype = "mesh", @@ -168,7 +168,7 @@ end -- let's hope "tub" is the correct english word for "bottich" minetest.register_node("cottages:tub", { - description = S("tub"), + description = S("Tub"), paramtype = "light", drawtype = "mesh", mesh = "cottages_tub.obj", diff --git a/nodes_chests.lua b/nodes_chests.lua index c099749..bc7bbbc 100644 --- a/nodes_chests.lua +++ b/nodes_chests.lua @@ -24,7 +24,7 @@ cottages_chests.can_dig = function(pos,player) -- the chests do not need receipes since they are only placeholders and not intended to be built by players -- (they are later on supposed to be filled with diffrent items by fill_chest.lua) minetest.register_node("cottages:chest_private", { - description = S("private NPC chest"), + description = S("Private NPC chest"), infotext = "chest containing the possesions of one of the inhabitants", tiles = cottages.texture_chest, paramtype2 = "facedir", @@ -36,7 +36,7 @@ minetest.register_node("cottages:chest_private", { }) minetest.register_node("cottages:chest_work", { - description = S("chest for work utils and kitchens"), + description = S("Chest for work utils and kitchens"), infotext = "everything the inhabitant needs for his work", tiles = cottages.texture_chest, paramtype2 = "facedir", @@ -48,7 +48,7 @@ minetest.register_node("cottages:chest_work", { }) minetest.register_node("cottages:chest_storage", { - description = S("storage chest"), + description = S("Storage chest"), infotext = "stored food reserves", tiles = cottages.texture_chest, paramtype2 = "facedir", diff --git a/nodes_doorlike.lua b/nodes_doorlike.lua index d989c05..007b051 100644 --- a/nodes_doorlike.lua +++ b/nodes_doorlike.lua @@ -44,7 +44,7 @@ end -- window shutters - they cover half a node to each side minetest.register_node("cottages:window_shutter_open", { - description = S("opened window shutters"), + description = S("Opened window shutters"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_minimal_wood.png"}, @@ -73,7 +73,7 @@ minetest.register_node("cottages:window_shutter_open", { }) minetest.register_node("cottages:window_shutter_closed", { - description = S("closed window shutters"), + description = S("Closed window shutters"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_minimal_wood.png"}, @@ -140,7 +140,7 @@ minetest.register_abm({ -- a half door; can be combined to a full door where the upper part can be operated seperately; usually found in barns/stables ------------------------------------------------------------------------------------------------------------------------------ minetest.register_node("cottages:half_door", { - description = S("half door"), + description = S("Half door"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_minimal_wood.png"}, @@ -181,7 +181,7 @@ minetest.register_node("cottages:half_door", { minetest.register_node("cottages:half_door_inverted", { - description = S("half door inverted"), + description = S("Half door inverted"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_minimal_wood.png"}, @@ -225,7 +225,7 @@ minetest.register_node("cottages:half_door_inverted", { -- this gate for fences solves the "where to store the opened gate" problem by dropping it to the floor in optened state ------------------------------------------------------------------------------------------------------------------------------ minetest.register_node("cottages:gate_closed", { - description = S("closed fence gate"), + description = S("Closed fence gate"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {cottages.texture_furniture}, @@ -257,7 +257,7 @@ minetest.register_node("cottages:gate_closed", { minetest.register_node("cottages:gate_open", { - description = S("opened fence gate"), + description = S("Opened fence gate"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {cottages.texture_furniture}, diff --git a/nodes_feldweg.lua b/nodes_feldweg.lua index 59be5a6..bf64c61 100644 --- a/nodes_feldweg.lua +++ b/nodes_feldweg.lua @@ -2,7 +2,7 @@ -- decoration and building material --------------------------------------------------------------------------------------- -- * includes a wagon wheel that can be used as decoration on walls or to build (stationary) wagons --- * dirt road - those are more natural in small old villages than cobble roads +-- * Dirt road - those are more natural in small old villages than cobble roads -- * loam - no, old buildings are usually not built out of clay; loam was used -- * straw - useful material for roofs -- * glass pane - an improvement compared to fence posts as windows :-) @@ -11,7 +11,7 @@ local S = cottages.S -- supported modes: --- * simple: only a straight dirt road; no curves, junctions etc. +-- * simple: only a straight Dirt road; no curves, junctions etc. -- * flat: each node is a full node; junction, t-junction and corner are included -- * nodebox: like flat - except that each node has a nodebox that fits to that road node -- * mesh: like nodebox - except that it uses a nice roundish model @@ -60,10 +60,10 @@ local function register_recipes(include_end) end end ---- a nice dirt road for small villages or paths to fields +--- a nice Dirt road for small villages or paths to fields if( cottages_feldweg_mode == "simple" or cottages_feldweg_mode == "flat" ) then minetest.register_node("cottages:feldweg", { - description = S("dirt road"), + description = S("Dirt road"), tiles = {"cottages_feldweg.png","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, @@ -82,7 +82,7 @@ end if( cottages_feldweg_mode == "flat" ) then minetest.register_node("cottages:feldweg_crossing", { - description = S("dirt road crossing"), + description = S("Dirt road crossing"), tiles = {"cottages_feldweg_kreuzung.png","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, @@ -93,7 +93,7 @@ if( cottages_feldweg_mode == "flat" ) then }) minetest.register_node("cottages:feldweg_t_junction", { - description = S("dirt road t junction"), + description = S("Dirt road t junction"), tiles = {"cottages_feldweg_t-kreuzung.png^[transform2","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, @@ -104,7 +104,7 @@ if( cottages_feldweg_mode == "flat" ) then }) minetest.register_node("cottages:feldweg_curve", { - description = S("dirt road curve"), + description = S("Dirt road curve"), tiles = {"cottages_feldweg_ecke.png^[transform2","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, @@ -120,7 +120,7 @@ if( cottages_feldweg_mode == "flat" ) then -- elseif( cottages_feldweg_mode == "nodebox" ) then minetest.register_node("cottages:feldweg", { - description = S("dirt road"), + description = S("Dirt road"), tiles = {"cottages_feldweg_orig.png","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", roups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, @@ -152,7 +152,7 @@ elseif( cottages_feldweg_mode == "nodebox" ) then }) minetest.register_node("cottages:feldweg_crossing", { - description = S("dirt road crossing"), + description = S("Dirt road crossing"), tiles = {"cottages_feldweg_kreuzung.png","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, @@ -198,7 +198,7 @@ elseif( cottages_feldweg_mode == "nodebox" ) then }) minetest.register_node("cottages:feldweg_t_junction", { - description = S("dirt road t junction"), + description = S("Dirt road t junction"), tiles = {"cottages_feldweg_t-kreuzung.png^[transform2","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, @@ -242,7 +242,7 @@ elseif( cottages_feldweg_mode == "nodebox" ) then }) minetest.register_node("cottages:feldweg_curve", { - description = S("dirt road curve"), + description = S("Dirt road curve"), tiles = {"cottages_feldweg_ecke.png^[transform2","default_dirt.png", "default_dirt.png^default_grass_side.png"}, paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, @@ -293,9 +293,9 @@ elseif( cottages_feldweg_mode == "nodebox" ) then -- elseif( cottages_feldweg_mode == "mesh" ) then - -- a nice dirt road for small villages or paths to fields + -- a nice Dirt road for small villages or paths to fields minetest.register_node("cottages:feldweg", { - description = S("dirt road"), + description = S("Dirt road"), paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, legacy_facedir_simple = true, @@ -313,7 +313,7 @@ elseif( cottages_feldweg_mode == "mesh" ) then minetest.register_node("cottages:feldweg_crossing", { - description = S("dirt road crossing"), + description = S("Dirt road crossing"), paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, legacy_facedir_simple = true, @@ -331,7 +331,7 @@ elseif( cottages_feldweg_mode == "mesh" ) then minetest.register_node("cottages:feldweg_t_junction", { - description = S("dirt road t junction"), + description = S("Dirt road t junction"), paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, legacy_facedir_simple = true, @@ -349,7 +349,7 @@ elseif( cottages_feldweg_mode == "mesh" ) then minetest.register_node("cottages:feldweg_curve", { - description = S("dirt road curve"), + description = S("Dirt road curve"), paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, legacy_facedir_simple = true, @@ -367,7 +367,7 @@ elseif( cottages_feldweg_mode == "mesh" ) then minetest.register_node("cottages:feldweg_end", { - description = S("dirt road end"), + description = S("Dirt road end"), paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, legacy_facedir_simple = true, @@ -421,7 +421,7 @@ if( cottages_feldweg_mode == "nodebox" or cottages_feldweg_mode == "mesh" ) then }}; minetest.register_node("cottages:feldweg_slope", { - description = S("dirt road slope"), + description = S("Dirt road slope"), paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, legacy_facedir_simple = true, @@ -443,7 +443,7 @@ if( cottages_feldweg_mode == "nodebox" or cottages_feldweg_mode == "mesh" ) then minetest.register_node("cottages:feldweg_slope_long", { - description = S("dirt road slope long"), + description = S("Dirt road slope long"), paramtype2 = "facedir", groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, legacy_facedir_simple = true, diff --git a/nodes_fences.lua b/nodes_fences.lua index 0a4a26f..c912f2a 100644 --- a/nodes_fences.lua +++ b/nodes_fences.lua @@ -3,7 +3,7 @@ local S = cottages.S minetest.register_node("cottages:fence_small", { - description = S("small fence"), + description = S("Small fence"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_minimal_wood.png"}, @@ -32,7 +32,7 @@ minetest.register_node("cottages:fence_small", { minetest.register_node("cottages:fence_corner", { - description = S("small fence corner"), + description = S("Small fence corner"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_minimal_wood.png"}, @@ -68,7 +68,7 @@ minetest.register_node("cottages:fence_corner", { minetest.register_node("cottages:fence_end", { - description = S("small fence end"), + description = S("Small fence end"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_minimal_wood.png"}, diff --git a/nodes_furniture.lua b/nodes_furniture.lua index 5534975..946eab7 100644 --- a/nodes_furniture.lua +++ b/nodes_furniture.lua @@ -89,7 +89,7 @@ minetest.register_node("cottages:bed_head", { -- the basic version of a bed - a sleeping mat -- to facilitate upgrade path straw mat -> sleeping mat -> bed, this uses a nodebox minetest.register_node("cottages:sleeping_mat", { - description = S("sleeping mat"), + description = S("Sleeping mat"), drawtype = 'nodebox', tiles = { 'cottages_sleepingmat.png' }, -- done by VanessaE wield_image = 'cottages_sleepingmat.png', @@ -124,7 +124,7 @@ minetest.register_node("cottages:sleeping_mat", { -- this one has a pillow for the head; thus, param2 becomes visible to the builder, and mobs may use it as a bed minetest.register_node("cottages:sleeping_mat_head", { - description = S("sleeping mat with pillow"), + description = S("Sleeping mat with pillow"), drawtype = 'nodebox', tiles = { 'cottages_sleepingmat.png' }, -- done by VanessaE wield_image = 'cottages_sleepingmat.png', @@ -157,7 +157,7 @@ minetest.register_node("cottages:sleeping_mat_head", { -- furniture; possible replacement: 3dforniture:chair minetest.register_node("cottages:bench", { drawtype = "nodebox", - description = S("simple wooden bench"), + description = S("Simple wooden bench"), tiles = {"cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png"}, paramtype = "light", paramtype2 = "facedir", @@ -189,7 +189,7 @@ minetest.register_node("cottages:bench", { -- a simple table; possible replacement: 3dforniture:table local cottages_table_def = { - description = S("table"), + description = S("Table"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_minimal_wood.png"}, @@ -235,7 +235,7 @@ minetest.register_node("cottages:table", cottages_table_def ); -- looks better than two slabs impersonating a shelf; also more 3d than a bookshelf -- the infotext shows if it's empty or not minetest.register_node("cottages:shelf", { - description = S("open storage shelf"), + description = S("Open storage shelf"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_minimal_wood.png"}, @@ -297,7 +297,7 @@ minetest.register_node("cottages:shelf", { -- so that the smoke from a furnace can get out of a building minetest.register_node("cottages:stovepipe", { - description = S("stovepipe"), + description = S("Stovepipe"), drawtype = "nodebox", tiles = {"cottages_steel_block.png"}, paramtype = "light", @@ -321,7 +321,7 @@ minetest.register_node("cottages:stovepipe", { -- this washing place can be put over a water source (it is open at the bottom) minetest.register_node("cottages:washing", { - description = S("washing place"), + description = S("Washing place"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_clay.png"}, diff --git a/nodes_historic.lua b/nodes_historic.lua index 1fa5ea4..46537fb 100644 --- a/nodes_historic.lua +++ b/nodes_historic.lua @@ -12,7 +12,7 @@ local S = cottages.S -- can be used to buid real stationary wagons or attached to walls as decoration minetest.register_node("cottages:wagon_wheel", { - description = S("wagon wheel"), + description = S("Wagon wheel"), drawtype = "signlike", tiles = {"cottages_wagonwheel.png"}, -- done by VanessaE! inventory_image = "cottages_wagonwheel.png", @@ -34,7 +34,7 @@ minetest.register_node("cottages:wagon_wheel", { -- people didn't use clay for houses; they did build with loam minetest.register_node("cottages:loam", { - description = S("loam"), + description = S("Loam"), tiles = {"cottages_loam.png"}, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, groups = {crumbly=3}, @@ -48,16 +48,16 @@ if( minetest.get_modpath("stairs") and stairs and stairs.register_stair_and_slab stairs.register_stair_and_slab("loam", "cottages:loam", {snappy=2,choppy=2,oddly_breakable_by_hand=2}, {"cottages_loam.png"}, - S("Loam Stairs"), - S("Loam Slab"), + S("Loam stairs"), + S("Loam slab"), default.node_sound_dirt_defaults()) if( minetest.registered_nodes["default:clay"]) then stairs.register_stair_and_slab("clay", "default:clay", {crumbly=3}, {"cottages_clay.png"}, - S("Clay Stairs"), - S("Clay Slab"), + S("Clay stairs"), + S("Clay slab"), default.node_sound_dirt_defaults()) end end @@ -66,7 +66,7 @@ end -- straw is a common material for places where animals are kept indoors -- right now, this block mostly serves as a placeholder minetest.register_node("cottages:straw_ground", { - description = S("straw ground for animals"), + description = S("Straw ground for animals"), tiles = {"cottages_darkage_straw.png","cottages_loam.png","cottages_loam.png","cottages_loam.png","cottages_loam.png","cottages_loam.png"}, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2}, groups = {crumbly=3}, @@ -77,7 +77,7 @@ minetest.register_node("cottages:straw_ground", { -- note: these houses look good with a single fence pile as window! the glass pane is the version for 'richer' inhabitants minetest.register_node("cottages:glass_pane", { - description = S("simple glass pane (centered)"), + description = S("Simple glass pane (centered)"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_glass_pane.png"}, @@ -101,7 +101,7 @@ minetest.register_node("cottages:glass_pane", { minetest.register_node("cottages:glass_pane_side", { - description = S("simple glass pane"), + description = S("Simple glass pane"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_glass_pane.png"}, @@ -128,7 +128,7 @@ minetest.register_node("cottages:glass_pane_side", { -- a very small wooden slab --------------------------------------------------------------------------------------- minetest.register_node("cottages:wood_flat", { - description = S("flat wooden planks"), + description = S("Flat wooden planks"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_minimal_wood.png"}, @@ -155,7 +155,7 @@ minetest.register_node("cottages:wood_flat", { -- useful for building tents --------------------------------------------------------------------------------------- minetest.register_node("cottages:wool_tent", { - description = S("wool for tents"), + description = S("Wool for tents"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer tiles = {"cottages_wool.png"}, @@ -179,12 +179,14 @@ minetest.register_node("cottages:wool_tent", { }) -- a fallback for cases in which there is no wool -minetest.register_node("cottages:wool", { - description = "Wool", - tiles = {"cottages_wool.png"}, - is_ground_content = false, - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1}, -}) +if not minetest.get_modpath("wool") then + minetest.register_node("cottages:wool", { + description = S("Wool"), + tiles = {"cottages_wool.png"}, + is_ground_content = false, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1}, + }) +end --------------------------------------------------------------------------------------- diff --git a/nodes_mining.lua b/nodes_mining.lua index 3af4f71..05fa7fe 100644 --- a/nodes_mining.lua +++ b/nodes_mining.lua @@ -1,4 +1,5 @@ - +-- Boilerplate to support localized strings if intllib mod is installed. +local S = cottages.S --------------------------------------------------------------------------------------- -- a rope that is of use to the mines @@ -6,7 +7,7 @@ -- the rope can only be digged if there is no further rope above it; -- Note: This rope also counts as a rail node; thus, carts can move through it minetest.register_node("cottages:rope", { - description = "rope for climbing", + description = S("Rope for climbing"), tiles = {"cottages_rope.png"}, groups = {snappy=3,choppy=3,oddly_breakable_by_hand=3,rail=1,connect_to_raillike=1},--connect_to_raillike=minetest.raillike_group("rail")}, walkable = false, @@ -38,7 +39,7 @@ minetest.register_craft({ -- Note: This rope also counts as a rail node; thus, carts can move through it minetest.register_node("cottages:ladder_with_rope_and_rail", { - description = "Ladder with rail support", + description = S("Ladder with rail support"), drawtype = "signlike", tiles = {"default_ladder_wood.png^carts_rail_straight.png^cottages_rope.png"}, inventory_image = "default_ladder_wood.png", diff --git a/nodes_straw.lua b/nodes_straw.lua index a26b728..d5513e9 100644 --- a/nodes_straw.lua +++ b/nodes_straw.lua @@ -22,7 +22,7 @@ end -- an even simpler from of bed - usually for animals -- it is a nodebox and not wallmounted because that makes it easier to replace beds with straw mats minetest.register_node("cottages:straw_mat", { - description = S("layer of straw"), + description = S("Layer of straw"), drawtype = 'nodebox', tiles = { 'cottages_darkage_straw.png' }, -- done by VanessaE wield_image = 'cottages_darkage_straw.png', @@ -54,7 +54,7 @@ minetest.register_node("cottages:straw_mat", { -- straw bales are a must for farming environments; if you for some reason do not have the darkage mod installed, this here gets you a straw bale minetest.register_node("cottages:straw_bale", { drawtype = "nodebox", - description = S("straw bale"), + description = S("Straw bale"), tiles = {"cottages_darkage_straw_bale.png"}, paramtype = "light", groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, @@ -78,7 +78,7 @@ minetest.register_node("cottages:straw_bale", { -- just straw minetest.register_node("cottages:straw", { drawtype = "normal", - description = S("straw"), + description = S("Straw block"), tiles = {"cottages_darkage_straw.png"}, groups = {snappy=3,choppy=3,oddly_breakable_by_hand=3,flammable=3}, sounds = default.node_sound_wood_defaults(), @@ -104,7 +104,7 @@ local cottages_formspec_treshing_floor = minetest.register_node("cottages:threshing_floor", { drawtype = "nodebox", - description = S("threshing floor"), + description = S("Threshing floor"), -- TODO: stone also looks pretty well for this tiles = {"cottages_junglewood.png^farming_wheat.png","cottages_junglewood.png","cottages_junglewood.png^"..cottages.texture_stick}, paramtype = "light", @@ -358,7 +358,7 @@ local cottages_handmill_formspec = "size[8,8]".. "list[current_player;main;0,4;8,4;]"; minetest.register_node("cottages:handmill", { - description = S("mill, powered by punching"), + description = S("Mill, powered by punching"), drawtype = "mesh", mesh = "cottages_handmill.obj", tiles = {"cottages_stone.png"}, @@ -576,3 +576,58 @@ minetest.register_craft({ {"cottages:straw_bale"}, }, }) + +----- +-- Derivative blocks +----- + +if stairs and stairs.mod and stairs.mod == "redo" then + + stairs.register_all("straw_bale", "cottages:straw_bale", + {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, + {"cottages_darkage_straw_bale.png"}, + S("Straw bale stair"), + S("Straw bale slab"), + default.node_sound_wood_defaults()) + + stairs.register_all("straw", "cottages:straw", + {snappy = 3, choppy = 3, oddly_breakable_by_hand = 3, flammable = 3}, + {"cottages_darkage_straw.png"}, + S("Straw block stair"), + S("Straw block slab"), + default.node_sound_wood_defaults()) + +elseif minetest.global_exists("stairsplus") then + + stairsplus:register_all("cottages", "straw_bale", "cottages:straw_bale", { + description = S("Straw bale"), + tiles = {"cottages_darkage_straw_bale.png"}, + groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, + sounds = default.node_sound_wood_defaults(), + }) + + stairsplus:register_all("cottages", "straw", "cottages:straw", { + description = S("Straw block"), + tiles = {"cottages_darkage_straw.png"}, + groups = {snappy = 3, choppy = 3, oddly_breakable_by_hand = 3, flammable = 3}, + sounds = default.node_sound_wood_defaults(), + }) + +else + + stairs.register_stair_and_slab("straw_bale", "cottages:straw_bale", + {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3}, + {"cottages_darkage_straw_bale.png"}, + S("Straw bale stair"), + S("Straw bale slab"), + default.node_sound_wood_defaults()) + + stairs.register_stair_and_slab("straw", "cottages:straw", + {snappy = 3, choppy = 3, oddly_breakable_by_hand = 3, flammable = 3}, + {"cottages_darkage_straw.png"}, + S("Straw block stair"), + S("Straw block slab"), + default.node_sound_wood_defaults()) + + +end
\ No newline at end of file |