summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh-v-smacker <hans-von-smacker+github@gmail.com>2018-05-07 02:13:39 +0300
committerh-v-smacker <hans-von-smacker+github@gmail.com>2018-05-07 02:13:39 +0300
commit1d9bc8af4779cec1d3bb45ee962fcb3194971757 (patch)
tree66e099df88d6f04fa171862f67d403ca296d6139
parente1392055961a32003fbec16c5a5081b9c7676e80 (diff)
Feldweg recipes
-rw-r--r--adaptions.lua2
-rw-r--r--init.lua1
-rw-r--r--nodes_feldweg.lua76
-rw-r--r--textures/cottages_loam.pngbin5743 -> 4598 bytes
-rw-r--r--textures/cottages_loam_old.pngbin0 -> 5743 bytes
5 files changed, 78 insertions, 1 deletions
diff --git a/adaptions.lua b/adaptions.lua
index 24782cd..5d59e1b 100644
--- a/adaptions.lua
+++ b/adaptions.lua
@@ -56,7 +56,9 @@ cottages.texture_chest = {"default_chest_top.png", "default_chest_top.png", "def
-- the treshing floor produces wheat seeds
cottages.craftitem_seed_wheat = "farming:seed_wheat";
+cottages.craftitem_seed_barley = "farming:seed_barley";
cottages.texture_wheat_seed = "farming_wheat_seed.png";
+cottages.texture_barley_seed = "farming_barley_seed.png";
cottages.texture_stick = "default_stick.png";
-- texture for roofs where the tree bark is the main roof texture
diff --git a/init.lua b/init.lua
index 8149611..a653218 100644
--- a/init.lua
+++ b/init.lua
@@ -40,6 +40,7 @@ dofile(minetest.get_modpath("cottages").."/adaptions.lua");
-- add a stack size if you want a higher yield
cottages.handmill_product = {};
cottages.handmill_product[ cottages.craftitem_seed_wheat ] = 'farming:flour 1';
+cottages.handmill_product[ cottages.craftitem_seed_barley ] = 'farming:flour 1';
--[[ some examples:
cottages.handmill_product[ 'default:cobble' ] = 'default:gravel';
cottages.handmill_product[ 'default:gravel' ] = 'default:sand';
diff --git a/nodes_feldweg.lua b/nodes_feldweg.lua
index 39798f9..59be5a6 100644
--- a/nodes_feldweg.lua
+++ b/nodes_feldweg.lua
@@ -19,6 +19,47 @@ if( not( cottages_feldweg_mode )) then
cottages_feldweg_mode = "mesh";
end
+local function register_recipes(include_end)
+
+ minetest.register_craft({
+ output = "cottages:feldweg_crossing 5",
+ recipe = {
+ {"", "cottages:feldweg", "" },
+ {"cottages:feldweg", "cottages:feldweg", "cottages:feldweg"},
+ {"", "cottages:feldweg", "" },
+ },
+ })
+
+ minetest.register_craft({
+ output = "cottages:feldweg_t_junction 5",
+ recipe = {
+ {"", "cottages:feldweg", "" },
+ {"", "cottages:feldweg", "" },
+ {"cottages:feldweg", "cottages:feldweg", "cottages:feldweg"}
+
+ },
+ })
+
+ minetest.register_craft({
+ output = "cottages:feldweg_curve 5",
+ recipe = {
+ {"cottages:feldweg", "", "" },
+ {"cottages:feldweg", "", ""},
+ {"cottages:feldweg", "cottages:feldweg", "cottages:feldweg"}
+ },
+ })
+
+ if include_end then
+ minetest.register_craft({
+ output = "cottages:feldweg_end 5",
+ recipe = {
+ {"cottages:feldweg", "", "cottages:feldweg" },
+ {"cottages:feldweg", "cottages:feldweg", "cottages:feldweg"}
+ },
+ })
+ end
+end
+
--- 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", {
@@ -72,7 +113,8 @@ if( cottages_feldweg_mode == "flat" ) then
sounds = default.node_sound_dirt_defaults,
is_ground_content = false,
})
-
+
+ register_recipes(false)
--
-- cube-style nodebox version
--
@@ -243,6 +285,8 @@ elseif( cottages_feldweg_mode == "nodebox" ) then
},
})
+ register_recipes(false)
+
--
-- the mesh version (rounded); provided and created by VanessaE
@@ -284,6 +328,8 @@ elseif( cottages_feldweg_mode == "mesh" ) then
mesh = "feldweg-crossing.obj",
})
+
+
minetest.register_node("cottages:feldweg_t_junction", {
description = S("dirt road t junction"),
paramtype2 = "facedir",
@@ -299,6 +345,8 @@ elseif( cottages_feldweg_mode == "mesh" ) then
drawtype = "mesh",
mesh = "feldweg-T-junction.obj",
})
+
+
minetest.register_node("cottages:feldweg_curve", {
description = S("dirt road curve"),
@@ -316,6 +364,8 @@ elseif( cottages_feldweg_mode == "mesh" ) then
mesh = "feldweg-curve.obj",
})
+
+
minetest.register_node("cottages:feldweg_end", {
description = S("dirt road end"),
paramtype2 = "facedir",
@@ -332,6 +382,11 @@ elseif( cottages_feldweg_mode == "mesh" ) then
drawtype = "mesh",
mesh = "feldweg_end.obj",
})
+
+
+ register_recipes(true)
+
+
end
@@ -385,6 +440,8 @@ if( cottages_feldweg_mode == "nodebox" or cottages_feldweg_mode == "mesh" ) then
selection_box = box_slope,
})
+
+
minetest.register_node("cottages:feldweg_slope_long", {
description = S("dirt road slope long"),
paramtype2 = "facedir",
@@ -403,4 +460,21 @@ if( cottages_feldweg_mode == "nodebox" or cottages_feldweg_mode == "mesh" ) then
collision_box = box_slope_long,
selection_box = box_slope_long,
})
+
+
+ minetest.register_craft({
+ output = "cottages:feldweg_slope 3",
+ recipe = {
+ {"cottages:feldweg", "", "" },
+ {"cottages:feldweg", "cottages:feldweg", ""}
+ },
+ })
+
+ minetest.register_craft({
+ output = "cottages:feldweg_slope_long 4",
+ recipe = {
+ {"cottages:feldweg", "", "" },
+ {"cottages:feldweg", "cottages:feldweg", "cottages:feldweg"}
+ },
+ })
end
diff --git a/textures/cottages_loam.png b/textures/cottages_loam.png
index bdf058f..ee83bd0 100644
--- a/textures/cottages_loam.png
+++ b/textures/cottages_loam.png
Binary files differ
diff --git a/textures/cottages_loam_old.png b/textures/cottages_loam_old.png
new file mode 100644
index 0000000..bdf058f
--- /dev/null
+++ b/textures/cottages_loam_old.png
Binary files differ