everness/tools.lua

34 lines
1.3 KiB
Lua
Raw Normal View History

2023-02-01 22:44:42 -06:00
--[[
Everness. Never ending discovery in Everness mapgen.
Copyright (C) 2023 SaKeL <juraj.vajda@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to juraj.vajda@gmail.com
--]]
local S = minetest.get_translator(minetest.get_current_modname())
minetest.register_tool('everness:vine_shears', {
description = S('Vine Shears'),
inventory_image = 'everness_vine_shears.png',
wield_image = 'everness_vine_shears.png',
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 0,
groupcaps = {
snappy = { times = { [3] = 0.2 }, uses = 60, maxlevel = 3 },
wool = { times = { [3] = 0.2 }, uses = 60, maxlevel = 3 }
}
},
})