e3beb7d54b
Got tired of not being able to dig through stuff when I'm trying to debug something.
37 lines
1.0 KiB
Lua
37 lines
1.0 KiB
Lua
-- LUALOCALS < ---------------------------------------------------------
|
|
local minetest, type
|
|
= minetest, type
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
minetest.register_item(":", {
|
|
type = "none",
|
|
wield_image = "nc_hand.png",
|
|
wield_scale = {x=1, y=1, z=2.5},
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.9,
|
|
max_drop_level = 0,
|
|
groupcaps = {
|
|
crumbly = {times={[2]=3.00, [3]=0.70}, uses=0, maxlevel=1},
|
|
snappy = {times={[2]=2.00, [3]=0.40}, uses=0, maxlevel=1},
|
|
thumpy = {times={[3]=3.00}, uses=0, maxlevel=1},
|
|
}
|
|
}
|
|
})
|
|
|
|
local function cheat() return {times={[1]=0.25, [2]=0.25, [3]=0.25}, uses=0} end
|
|
minetest.register_tool("nc_hand:cheat", {
|
|
inventory_image = "nc_hand.png^[invert:rgb",
|
|
wield_image = "nc_hand.png^[invert:rgb",
|
|
wield_scale = {x=1, y=1, z=2.5},
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.5,
|
|
groupcaps = {
|
|
crumbly = cheat(),
|
|
cracky = cheat(),
|
|
snappy = cheat(),
|
|
choppy = cheat(),
|
|
thumpy = cheat(),
|
|
}
|
|
}
|
|
})
|