2019-04-14 00:57:14 -04:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
2019-12-29 11:51:25 -05:00
|
|
|
local math, minetest, nodecore, pairs
|
|
|
|
= math, minetest, nodecore, pairs
|
|
|
|
local math_pow
|
|
|
|
= math.pow
|
2019-04-14 00:57:14 -04:00
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
2019-12-29 11:51:25 -05:00
|
|
|
local toolcaps = nodecore.toolcaps({
|
|
|
|
uses = 0,
|
|
|
|
crumbly = 1,
|
|
|
|
snappy = 1,
|
|
|
|
thumpy = 1
|
|
|
|
})
|
|
|
|
local gcaps = toolcaps.groupcaps
|
|
|
|
for k, v in pairs(nodecore.tool_basetimes) do
|
|
|
|
gcaps[k] = gcaps[k] or {uses = 0, times = {}}
|
|
|
|
for n = 1, 100 do
|
|
|
|
gcaps[k].times[n] = gcaps[k].times[n] or (10 * v * math_pow(2, n))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-04-14 00:57:14 -04:00
|
|
|
minetest.register_item(":", {
|
2019-08-31 09:26:53 -04:00
|
|
|
["type"] = "none",
|
2019-04-14 00:57:14 -04:00
|
|
|
wield_image = "nc_player_hand.png",
|
|
|
|
wield_scale = {x = 4, y = 8, z = 3},
|
2019-12-29 11:51:25 -05:00
|
|
|
tool_capabilities = toolcaps
|
2019-04-14 00:57:14 -04:00
|
|
|
})
|