Feldweg recipes

master^2
h-v-smacker 2018-05-07 02:13:39 +03:00
parent e139205596
commit 1d9bc8af47
5 changed files with 78 additions and 1 deletions

View File

@ -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

View File

@ -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';

View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB