summaryrefslogtreecommitdiff
path: root/nodes_straw.lua
diff options
context:
space:
mode:
authorSokomine <wegwerf@anarres.dyndns.org>2015-07-26 05:54:37 +0200
committerSokomine <wegwerf@anarres.dyndns.org>2015-07-26 05:54:37 +0200
commita07e2e706e718348a5ba183db2e686ad36f7b18f (patch)
treefed3f69e5dafe504bc9aaafcca78d5beaca3c8ef /nodes_straw.lua
parentd92685d20c6bebce0a88512991646a16121b0810 (diff)
added missing textures; made indigrents for craft receipes configurable; added compatibility for realtest; added wool in case no wool is installed; other minor tweaks
Diffstat (limited to 'nodes_straw.lua')
-rw-r--r--nodes_straw.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/nodes_straw.lua b/nodes_straw.lua
index 3fec05f..3eac6b6 100644
--- a/nodes_straw.lua
+++ b/nodes_straw.lua
@@ -190,7 +190,7 @@ minetest.register_node("cottages:threshing_floor", {
end
-- only punching with a normal stick is supposed to work
local wielded = puncher:get_wielded_item();
- if( not( wielded ) or not( wielded:get_name() ) or wielded:get_name() ~= 'default:stick') then
+ if( not( wielded ) or not( wielded:get_name() ) or wielded:get_name() ~= cottages.craftitem_stick) then
return;
end
local name = puncher:get_player_name();
@@ -405,18 +405,18 @@ minetest.register_node("cottages:handmill", {
minetest.register_craft({
output = "cottages:straw_mat 6",
recipe = {
- {'default:cobble','',''},
- {"farming:wheat_harvested", "farming:wheat_harvested", "farming:wheat_harvested", },
+ {cottages.craftitem_stone,'',''},
+ {"farming:wheat", "farming:wheat", "farming:wheat", },
},
- replacements = {{ 'default:cobble', "farming:seed_wheat 3" }},
+ replacements = {{ cottages.craftitem_stone, "farming:seed_wheat 3" }},
})
-- this is a better way to get straw mats
minetest.register_craft({
output = "cottages:threshing_floor",
recipe = {
- {"default:junglewood", "default:chest_locked", "default:junglewood", },
- {"default:junglewood", "default:stone", "default:junglewood", },
+ {cottages.craftitem_junglewood, cottages.craftitem_chest_locked, cottages.craftitem_junglewood, },
+ {cottages.craftitem_junglewood, cottages.craftitem_stone, cottages.craftitem_junglewood, },
},
})
@@ -424,9 +424,9 @@ minetest.register_craft({
minetest.register_craft({
output = "cottages:handmill",
recipe = {
- {"default:stick", "default:stone", "", },
- {"", "default:steel_ingot", "", },
- {"", "default:stone", "", },
+ {cottages.craftitem_stick, cottages.craftitem_stone, "", },
+ {"", cottages.craftitem_steel, "", },
+ {"", cottages.craftitem_stone, "", },
},
})