a0d2a2876f
Also allow config for allowing players to dig and place blocks.
245 lines
6.3 KiB
Lua
245 lines
6.3 KiB
Lua
if hungry_games.dig_mode == "none" then
|
|
--Redefine hand.
|
|
minetest.register_item(":", {
|
|
type = "none",
|
|
wield_image = "wieldhand.png",
|
|
wield_scale = {x=1,y=1,z=2.5},
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.9,
|
|
max_drop_level = 0,
|
|
damage_groups = {fleshy=1},
|
|
}
|
|
})
|
|
end
|
|
|
|
-- Picks
|
|
minetest.register_tool(":default:pick_wood", {
|
|
description = "Wooden Pickaxe",
|
|
inventory_image = "default_tool_woodpick.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.2,
|
|
max_drop_level=0,
|
|
damage_groups = {fleshy=2},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:pick_stone", {
|
|
description = "Stone Pickaxe",
|
|
inventory_image = "default_tool_stonepick.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.3,
|
|
max_drop_level=0,
|
|
damage_groups = {fleshy=3},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:pick_steel", {
|
|
description = "Steel Pickaxe",
|
|
inventory_image = "default_tool_steelpick.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.0,
|
|
max_drop_level=1,
|
|
damage_groups = {fleshy=4},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:pick_bronze", {
|
|
description = "Bronze Pickaxe",
|
|
inventory_image = "default_tool_bronzepick.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.0,
|
|
max_drop_level=1,
|
|
damage_groups = {fleshy=4},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:pick_mese", {
|
|
description = "Mese Pickaxe",
|
|
inventory_image = "default_tool_mesepick.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.9,
|
|
max_drop_level=3,
|
|
damage_groups = {fleshy=5},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:pick_diamond", {
|
|
description = "Diamond Pickaxe",
|
|
inventory_image = "default_tool_diamondpick.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.9,
|
|
max_drop_level=3,
|
|
damage_groups = {fleshy=5},
|
|
},
|
|
})
|
|
|
|
-- Shovels
|
|
minetest.register_tool(":default:shovel_wood", {
|
|
description = "Wooden Shovel",
|
|
inventory_image = "default_tool_woodshovel.png",
|
|
wield_image = "default_tool_woodshovel.png^[transformR90",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.2,
|
|
max_drop_level=0,
|
|
damage_groups = {fleshy=2},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:shovel_stone", {
|
|
description = "Stone Shovel",
|
|
inventory_image = "default_tool_stoneshovel.png",
|
|
wield_image = "default_tool_stoneshovel.png^[transformR90",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.4,
|
|
max_drop_level=0,
|
|
damage_groups = {fleshy=2},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:shovel_steel", {
|
|
description = "Steel Shovel",
|
|
inventory_image = "default_tool_steelshovel.png",
|
|
wield_image = "default_tool_steelshovel.png^[transformR90",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.1,
|
|
max_drop_level=1,
|
|
damage_groups = {fleshy=3},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:shovel_bronze", {
|
|
description = "Bronze Shovel",
|
|
inventory_image = "default_tool_bronzeshovel.png",
|
|
wield_image = "default_tool_bronzeshovel.png^[transformR90",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.1,
|
|
max_drop_level=1,
|
|
damage_groups = {fleshy=3},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:shovel_mese", {
|
|
description = "Mese Shovel",
|
|
inventory_image = "default_tool_meseshovel.png",
|
|
wield_image = "default_tool_meseshovel.png^[transformR90",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.0,
|
|
max_drop_level=3,
|
|
damage_groups = {fleshy=4},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:shovel_diamond", {
|
|
description = "Diamond Shovel",
|
|
inventory_image = "default_tool_diamondshovel.png",
|
|
wield_image = "default_tool_diamondshovel.png^[transformR90",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.0,
|
|
max_drop_level=1,
|
|
damage_groups = {fleshy=4},
|
|
},
|
|
})
|
|
|
|
-- Axes
|
|
minetest.register_tool(":default:axe_wood", {
|
|
description = "Wooden Axe",
|
|
inventory_image = "default_tool_woodaxe.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.0,
|
|
max_drop_level=0,
|
|
damage_groups = {fleshy=2},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:axe_stone", {
|
|
description = "Stone Axe",
|
|
inventory_image = "default_tool_stoneaxe.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.2,
|
|
max_drop_level=0,
|
|
damage_groups = {fleshy=3},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:axe_steel", {
|
|
description = "Steel Axe",
|
|
inventory_image = "default_tool_steelaxe.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.0,
|
|
max_drop_level=1,
|
|
damage_groups = {fleshy=4},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:axe_bronze", {
|
|
description = "Bronze Axe",
|
|
inventory_image = "default_tool_bronzeaxe.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.0,
|
|
max_drop_level=1,
|
|
damage_groups = {fleshy=4},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:axe_mese", {
|
|
description = "Mese Axe",
|
|
inventory_image = "default_tool_meseaxe.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.9,
|
|
max_drop_level=1,
|
|
damage_groups = {fleshy=6},
|
|
},
|
|
})
|
|
minetest.register_tool(":default:axe_diamond", {
|
|
description = "Diamond Axe",
|
|
inventory_image = "default_tool_diamondaxe.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.9,
|
|
max_drop_level=1,
|
|
damage_groups = {fleshy=7},
|
|
},
|
|
})
|
|
|
|
-- Swords
|
|
minetest.register_tool(":default:sword_wood", {
|
|
description = "Wooden Sword",
|
|
inventory_image = "default_tool_woodsword.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1,
|
|
max_drop_level=0,
|
|
damage_groups = {fleshy=2},
|
|
}
|
|
})
|
|
minetest.register_tool(":default:sword_stone", {
|
|
description = "Stone Sword",
|
|
inventory_image = "default_tool_stonesword.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 1.2,
|
|
max_drop_level=0,
|
|
damage_groups = {fleshy=4},
|
|
}
|
|
})
|
|
minetest.register_tool(":default:sword_steel", {
|
|
description = "Steel Sword",
|
|
inventory_image = "default_tool_steelsword.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.8,
|
|
max_drop_level=1,
|
|
damage_groups = {fleshy=6},
|
|
}
|
|
})
|
|
minetest.register_tool(":default:sword_bronze", {
|
|
description = "Bronze Sword",
|
|
inventory_image = "default_tool_bronzesword.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.8,
|
|
max_drop_level=1,
|
|
damage_groups = {fleshy=6},
|
|
}
|
|
})
|
|
minetest.register_tool(":default:sword_mese", {
|
|
description = "Mese Sword",
|
|
inventory_image = "default_tool_mesesword.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.7,
|
|
max_drop_level=1,
|
|
damage_groups = {fleshy=7},
|
|
}
|
|
})
|
|
minetest.register_tool(":default:sword_diamond", {
|
|
description = "Diamond Sword",
|
|
inventory_image = "default_tool_diamondsword.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.7,
|
|
max_drop_level=1,
|
|
damage_groups = {fleshy=8},
|
|
}
|
|
})
|
|
|