2024-06-08 13:11:14 -06:00

41 lines
903 B
Lua

Translate = minetest.get_translator("pyutest_core")
PyuTestCore = {
BLOCK_BREAKABLE_INSTANT = 0,
BLOCK_BREAKABLE_NORMAL = 1,
BLOCK_BREAKABLE_LONG = 2,
BLOCK_BREAKABLE_FOREVER = 3
}
local path = minetest.get_modpath("pyutest_core")
dofile(path.."/blocks.lua")
dofile(path.."/mapgen.lua")
dofile(path.."/abms.lua")
dofile(path.."/tools.lua")
-- player hand
minetest.register_item(":", {
type = "none",
wield_image = "hand.png"
})
minetest.override_item('', {
range = 10,
tool_capabilities = {
groupcaps = {
block = {
times = {
[PyuTestCore.BLOCK_BREAKABLE_INSTANT] = 0.075,
[PyuTestCore.BLOCK_BREAKABLE_NORMAL] = 0.4,
[PyuTestCore.BLOCK_BREAKABLE_LONG] = 4,
[PyuTestCore.BLOCK_BREAKABLE_FOREVER] = 12
},
uses = 0,
}
},
-- damage_groups = {
-- {fleshy = 2}
-- },
punch_attack_uses = 0
}
})