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 Binary files a/textures/cottages_loam.png and b/textures/cottages_loam.png differ diff --git a/textures/cottages_loam_old.png b/textures/cottages_loam_old.png new file mode 100644 index 0000000..bdf058f Binary files /dev/null and b/textures/cottages_loam_old.png differ