summaryrefslogtreecommitdiff
path: root/farming/hoes.lua
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-05-11 10:22:53 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-05-11 10:22:53 -0400
commit249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3 (patch)
tree915217a9657158d2a02eb8d93507944f618d5142 /farming/hoes.lua
parentaf2fedcf9998bb4a854c2cfd63e4cdad91a6dd5d (diff)
downloaddreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar
dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar.gz
dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar.bz2
dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar.xz
dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.zip
Add readme.md mostly taken from the forum thread (and markdown-ified)
Updated several mods: castles, homedecor, digilines, farming redo, jumping, maptools, mesecons, moreblocks, moretrees, pipeworks, signs_lib, technic, unified_dyes Deleted the peaceful_npc mod, as it is broken and unmaintained.
Diffstat (limited to 'farming/hoes.lua')
-rw-r--r--farming/hoes.lua24
1 files changed, 9 insertions, 15 deletions
diff --git a/farming/hoes.lua b/farming/hoes.lua
index 3dd14f1..eaacb29 100644
--- a/farming/hoes.lua
+++ b/farming/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