Skip to content

Commit

Permalink
Add sounds and rotate wield images for shovels
Browse files Browse the repository at this point in the history
  • Loading branch information
RQWorldblender authored and sofar committed Dec 31, 2016
1 parent 560e5be commit 1e2dcc6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ local function add_ore(modname, description, mineral_name, oredef)
tool_capabilities = {
max_drop_level = 3,
groupcaps = tooldef
}
},
sound = {breaks = "default_tool_breaks"},
}

if tool_name == "sword" then
Expand All @@ -202,6 +203,7 @@ local function add_ore(modname, description, mineral_name, oredef)
tdef.full_punch_interval = oredef.full_punch_interval
tdef.tool_capabilities.damage_groups = oredef.damage_groups
tdef.description = S("%s Shovel"):format(S(description))
tdef.wield_image = toolimg_base .. tool_name .. ".png^[transformR90"
end

if tool_name == "hoe" then
Expand Down

0 comments on commit 1e2dcc6

Please sign in to comment.