Fix creative hand
This commit is contained in:
parent
8493601e36
commit
b6c687873f
@ -129,6 +129,14 @@ end)
|
|||||||
|
|
||||||
if minetest.setting_getbool("creative_mode") then
|
if minetest.setting_getbool("creative_mode") then
|
||||||
|
|
||||||
|
local function get_list(num)
|
||||||
|
local table = {times={}, uses=0}
|
||||||
|
for i=1,num do
|
||||||
|
table.times[i] = 0
|
||||||
|
end
|
||||||
|
return table
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_item(":", {
|
minetest.register_item(":", {
|
||||||
type = "none",
|
type = "none",
|
||||||
wield_image = "wieldhand.png",
|
wield_image = "wieldhand.png",
|
||||||
@ -137,10 +145,11 @@ if minetest.setting_getbool("creative_mode") then
|
|||||||
full_punch_interval = 0.5,
|
full_punch_interval = 0.5,
|
||||||
max_drop_level = 3,
|
max_drop_level = 3,
|
||||||
groupcaps = {
|
groupcaps = {
|
||||||
crumbly = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=3},
|
crumbly = get_list(8),
|
||||||
cracky = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=3},
|
cracky = get_list(19),
|
||||||
snappy = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=3},
|
snappy = get_list(2),
|
||||||
choppy = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=3},
|
choppy = get_list(8),
|
||||||
|
dig_immediate = get_list(3), -- TODO doesnt work
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy = 10},
|
damage_groups = {fleshy = 10},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user