summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-04-09 10:35:23 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2018-04-09 10:35:23 +0100
commita4e8182d9055c206e5b1d1a902d63fbdb7b8fe29 (patch)
treeba50c1ff1e76873b9884911688820eab98e09178
parentc4e88fc332d107e050b8a3111b21e7f9fc04fad6 (diff)
deprecate bronze, mese and diamond hoe, increase uses for steel hoe
-rw-r--r--hoes.lua24
-rw-r--r--lucky_block.lua3
2 files changed, 12 insertions, 15 deletions
diff --git a/hoes.lua b/hoes.lua
index 3dd14f1..eaacb29 100644
--- a/hoes.lua
+++ b/hoes.lua
@@ -20,14 +20,6 @@ farming.register_hoe = function(name, def)
def.inventory_image = "unknown_item.png"
end
- if def.recipe == nil then
- def.recipe = {
- {"air","air",""},
- {"","group:stick",""},
- {"","group:stick",""}
- }
- end
-
if def.max_uses == nil then
def.max_uses = 30
end
@@ -38,16 +30,18 @@ farming.register_hoe = function(name, def)
inventory_image = def.inventory_image,
on_use = function(itemstack, user, pointed_thing)
return farming.hoe_on_use(itemstack, user, pointed_thing, def.max_uses)
- end
+ end,
+ groups = def.groups,
+ sound = {breaks = "default_tool_breaks"},
})
-- Register its recipe
- if def.material == nil then
+ if def.recipe then
minetest.register_craft({
output = name:sub(2),
recipe = def.recipe
})
- else
+ elseif def.material then
minetest.register_craft({
output = name:sub(2),
recipe = {
@@ -153,22 +147,22 @@ farming.register_hoe(":farming:hoe_steel", {
farming.register_hoe(":farming:hoe_bronze", {
description = S("Bronze Hoe"),
inventory_image = "farming_tool_bronzehoe.png",
- max_uses = 220,
- material = "default:bronze_ingot"
+ max_uses = 500,
+ groups = {not_in_creative_inventory = 1},
})
farming.register_hoe(":farming:hoe_mese", {
description = S("Mese Hoe"),
inventory_image = "farming_tool_mesehoe.png",
max_uses = 350,
- material = "default:mese_crystal"
+ groups = {not_in_creative_inventory = 1},
})
farming.register_hoe(":farming:hoe_diamond", {
description = S("Diamond Hoe"),
inventory_image = "farming_tool_diamondhoe.png",
max_uses = 500,
- material = "default:diamond"
+ groups = {not_in_creative_inventory = 1},
})
-- Toolranks support
diff --git a/lucky_block.lua b/lucky_block.lua
index 6a4c166..4318934 100644
--- a/lucky_block.lua
+++ b/lucky_block.lua
@@ -26,5 +26,8 @@ if minetest.get_modpath("lucky_block") then
{"dro", {"farming:cutting_board"}, 1},
{"dro", {"farming:juicer"}, 1},
{"dro", {"farming:mixing_bowl"}, 1},
+ {"dro", {"farming:hoe_bronze"}, 1},
+ {"dro", {"farming:hoe_mese"}, 1},
+ {"dro", {"farming:hoe_diamond"}, 1},
})
end