Set max drop level for digging tools

This commit is contained in:
Wuzzy 2017-02-24 17:01:56 +01:00
parent 4b4a9efd77
commit 9ec16db5c2
1 changed files with 29 additions and 21 deletions

View File

@ -4,6 +4,15 @@
-- Tool definition -- Tool definition
-- --
--[[ Maximum drop level definitions:
- 0: Hand
- 1: Wood / Shears
- 2: Gold
- 3: Stone
- 4: Iron
- 5: Diamond
]]
-- The hand -- The hand
local groupcaps local groupcaps
if minetest.setting_getbool("creative_mode") then if minetest.setting_getbool("creative_mode") then
@ -42,7 +51,7 @@ minetest.register_tool("mcl_core:pick_wood", {
tool_capabilities = { tool_capabilities = {
-- 1/1.2 -- 1/1.2
full_punch_interval = 0.83333333, full_punch_interval = 0.83333333,
max_drop_level=0, max_drop_level=1,
groupcaps={ groupcaps={
cracky = {times={[3]=1.60}, uses=10, maxlevel=1}, cracky = {times={[3]=1.60}, uses=10, maxlevel=1},
}, },
@ -57,7 +66,7 @@ minetest.register_tool("mcl_core:pick_stone", {
tool_capabilities = { tool_capabilities = {
-- 1/1.2 -- 1/1.2
full_punch_interval = 0.83333333, full_punch_interval = 0.83333333,
max_drop_level=0, max_drop_level=3,
groupcaps={ groupcaps={
cracky = {times={[2]=2.0, [3]=1.20}, uses=20, maxlevel=1}, cracky = {times={[2]=2.0, [3]=1.20}, uses=20, maxlevel=1},
}, },
@ -72,7 +81,7 @@ minetest.register_tool("mcl_core:pick_iron", {
tool_capabilities = { tool_capabilities = {
-- 1/1.2 -- 1/1.2
full_punch_interval = 0.83333333, full_punch_interval = 0.83333333,
max_drop_level=1, max_drop_level=4,
groupcaps={ groupcaps={
cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=20, maxlevel=2}, cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=20, maxlevel=2},
}, },
@ -87,7 +96,7 @@ minetest.register_tool("mcl_core:pick_gold", {
tool_capabilities = { tool_capabilities = {
-- 1/1.2 -- 1/1.2
full_punch_interval = 0.83333333, full_punch_interval = 0.83333333,
max_drop_level=0, max_drop_level=2,
groupcaps={ groupcaps={
cracky = {times={[2]=2.0, [3]=1.20}, uses=20, maxlevel=1}, cracky = {times={[2]=2.0, [3]=1.20}, uses=20, maxlevel=1},
}, },
@ -102,7 +111,7 @@ minetest.register_tool("mcl_core:pick_diamond", {
tool_capabilities = { tool_capabilities = {
-- 1/1.2 -- 1/1.2
full_punch_interval = 0.83333333, full_punch_interval = 0.83333333,
max_drop_level=3, max_drop_level=5,
groupcaps={ groupcaps={
cracky = {times={[1]=2.0, [2]=1.0, [3]=0.50,[4]=20.00 }, uses=30, maxlevel=4}, cracky = {times={[1]=2.0, [2]=1.0, [3]=0.50,[4]=20.00 }, uses=30, maxlevel=4},
}, },
@ -140,7 +149,7 @@ minetest.register_tool("mcl_core:shovel_wood", {
groups = { tool=1 }, groups = { tool=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 1, full_punch_interval = 1,
max_drop_level=0, max_drop_level=1,
groupcaps={ groupcaps={
crumbly = {times={[1]=3.00, [2]=1.60, [3]=0.60}, uses=10, maxlevel=1}, crumbly = {times={[1]=3.00, [2]=1.60, [3]=0.60}, uses=10, maxlevel=1},
}, },
@ -156,7 +165,7 @@ minetest.register_tool("mcl_core:shovel_stone", {
groups = { tool=1 }, groups = { tool=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 1, full_punch_interval = 1,
max_drop_level=0, max_drop_level=3,
groupcaps={ groupcaps={
crumbly = {times={[1]=1.80, [2]=1.20, [3]=0.50}, uses=20, maxlevel=1}, crumbly = {times={[1]=1.80, [2]=1.20, [3]=0.50}, uses=20, maxlevel=1},
}, },
@ -172,7 +181,7 @@ minetest.register_tool("mcl_core:shovel_iron", {
groups = { tool=1 }, groups = { tool=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 1, full_punch_interval = 1,
max_drop_level=1, max_drop_level=4,
groupcaps={ groupcaps={
crumbly = {times={[1]=1.50, [2]=0.90, [3]=0.40}, uses=30, maxlevel=2}, crumbly = {times={[1]=1.50, [2]=0.90, [3]=0.40}, uses=30, maxlevel=2},
}, },
@ -188,7 +197,7 @@ minetest.register_tool("mcl_core:shovel_gold", {
groups = { tool=1 }, groups = { tool=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 1, full_punch_interval = 1,
max_drop_level=0, max_drop_level=2,
groupcaps={ groupcaps={
crumbly = {times={[1]=1.80, [2]=1.20, [3]=0.50}, uses=20, maxlevel=1}, crumbly = {times={[1]=1.80, [2]=1.20, [3]=0.50}, uses=20, maxlevel=1},
}, },
@ -204,7 +213,7 @@ minetest.register_tool("mcl_core:shovel_diamond", {
groups = { tool=1 }, groups = { tool=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 1, full_punch_interval = 1,
max_drop_level=1, max_drop_level=5,
groupcaps={ groupcaps={
crumbly = {times={[1]=1.10, [2]=0.50, [3]=0.30}, uses=30, maxlevel=3}, crumbly = {times={[1]=1.10, [2]=0.50, [3]=0.30}, uses=30, maxlevel=3},
}, },
@ -221,7 +230,7 @@ minetest.register_tool("mcl_core:axe_wood", {
groups = { tool=1 }, groups = { tool=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 1.25, full_punch_interval = 1.25,
max_drop_level=0, max_drop_level=1,
groupcaps={ groupcaps={
choppy = {times={[2]=3.00, [3]=2.00}, uses=10, maxlevel=1}, choppy = {times={[2]=3.00, [3]=2.00}, uses=10, maxlevel=1},
}, },
@ -235,7 +244,7 @@ minetest.register_tool("mcl_core:axe_stone", {
groups = { tool=1 }, groups = { tool=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 1.25, full_punch_interval = 1.25,
max_drop_level=0, max_drop_level=3,
groupcaps={ groupcaps={
choppy={times={[1]=3.00, [2]=2.00, [3]=1.50}, uses=20, maxlevel=1}, choppy={times={[1]=3.00, [2]=2.00, [3]=1.50}, uses=20, maxlevel=1},
}, },
@ -250,7 +259,7 @@ minetest.register_tool("mcl_core:axe_iron", {
tool_capabilities = { tool_capabilities = {
-- 1/0.9 -- 1/0.9
full_punch_interval = 1.11111111, full_punch_interval = 1.11111111,
max_drop_level=1, max_drop_level=4,
groupcaps={ groupcaps={
choppy={times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=20, maxlevel=2}, choppy={times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=20, maxlevel=2},
}, },
@ -264,7 +273,7 @@ minetest.register_tool("mcl_core:axe_gold", {
groups = { tool=1 }, groups = { tool=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 1.0, full_punch_interval = 1.0,
max_drop_level=0, max_drop_level=2,
groupcaps={ groupcaps={
choppy={times={[1]=3.00, [2]=2.00, [3]=1.50}, uses=20, maxlevel=1}, choppy={times={[1]=3.00, [2]=2.00, [3]=1.50}, uses=20, maxlevel=1},
}, },
@ -278,7 +287,7 @@ minetest.register_tool("mcl_core:axe_diamond", {
groups = { tool=1 }, groups = { tool=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 1.0, full_punch_interval = 1.0,
max_drop_level=1, max_drop_level=5,
groupcaps={ groupcaps={
choppy={times={[1]=2.10, [2]=0.90, [3]=0.50}, uses=30, maxlevel=2}, choppy={times={[1]=2.10, [2]=0.90, [3]=0.50}, uses=30, maxlevel=2},
}, },
@ -294,7 +303,7 @@ minetest.register_tool("mcl_core:sword_wood", {
groups = { weapon=1 }, groups = { weapon=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.625, full_punch_interval = 0.625,
max_drop_level=0, max_drop_level=1,
groupcaps={ groupcaps={
snappy={times={[2]=1.6, [3]=0.40}, uses=10, maxlevel=1}, snappy={times={[2]=1.6, [3]=0.40}, uses=10, maxlevel=1},
}, },
@ -308,7 +317,7 @@ minetest.register_tool("mcl_core:sword_stone", {
groups = { weapon=1 }, groups = { weapon=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.625, full_punch_interval = 0.625,
max_drop_level=0, max_drop_level=3,
groupcaps={ groupcaps={
snappy={times={[2]=1.4, [3]=0.40}, uses=20, maxlevel=1}, snappy={times={[2]=1.4, [3]=0.40}, uses=20, maxlevel=1},
}, },
@ -322,7 +331,7 @@ minetest.register_tool("mcl_core:sword_iron", {
groups = { weapon=1 }, groups = { weapon=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.625, full_punch_interval = 0.625,
max_drop_level=1, max_drop_level=4,
groupcaps={ groupcaps={
snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=30, maxlevel=2}, snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=30, maxlevel=2},
}, },
@ -336,7 +345,7 @@ minetest.register_tool("mcl_core:sword_gold", {
groups = { weapon=1 }, groups = { weapon=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.625, full_punch_interval = 0.625,
max_drop_level=0, max_drop_level=2,
groupcaps={ groupcaps={
snappy={times={[2]=1.4, [3]=0.40}, uses=20, maxlevel=1}, snappy={times={[2]=1.4, [3]=0.40}, uses=20, maxlevel=1},
}, },
@ -350,7 +359,7 @@ minetest.register_tool("mcl_core:sword_diamond", {
groups = { weapon=1 }, groups = { weapon=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.625, full_punch_interval = 0.625,
max_drop_level=1, max_drop_level=5,
groupcaps={ groupcaps={
snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3}, snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
}, },
@ -365,7 +374,6 @@ minetest.register_tool("mcl_core:shears", {
inventory_image = "default_tool_shears.png", inventory_image = "default_tool_shears.png",
wield_image = "default_tool_shears.png", wield_image = "default_tool_shears.png",
stack_max = 1, stack_max = 1,
max_drop_level=3,
groups = { tool=1 }, groups = { tool=1 },
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.5, full_punch_interval = 0.5,