[rainbow_ore] Update to Git patch d1fef62:
https://github.com/AntumDeluge/mtmod-rainbow_ore/tree/d1fef62master
parent
da235930f2
commit
bd35e70d08
|
@ -555,7 +555,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||||
[patch.peaceful_npc]: https://github.com/AntumDeluge/mtmod-peaceful_npc/tree/cbae09e
|
[patch.peaceful_npc]: https://github.com/AntumDeluge/mtmod-peaceful_npc/tree/cbae09e
|
||||||
[patch.playeranim]: https://github.com/AntumDeluge/mtmod-playeranim/tree/8a289b9
|
[patch.playeranim]: https://github.com/AntumDeluge/mtmod-playeranim/tree/8a289b9
|
||||||
[patch.quartz]: https://github.com/AntumDeluge/mtmod-quartz/tree/d23dabd
|
[patch.quartz]: https://github.com/AntumDeluge/mtmod-quartz/tree/d23dabd
|
||||||
[patch.rainbow_ore]: https://github.com/AntumDeluge/mtmod-rainbow_ore/tree/0f2a9e8
|
[patch.rainbow_ore]: https://github.com/AntumDeluge/mtmod-rainbow_ore/tree/d1fef62
|
||||||
[patch.snowdrift]: https://github.com/AntumDeluge/mtmod-snowdrift/tree/1b9da4f
|
[patch.snowdrift]: https://github.com/AntumDeluge/mtmod-snowdrift/tree/1b9da4f
|
||||||
[patch.spawneggs]: https://github.com/AntumDeluge/mtmod-spawneggs/tree/f2cc4cc
|
[patch.spawneggs]: https://github.com/AntumDeluge/mtmod-spawneggs/tree/f2cc4cc
|
||||||
[patch.spidermob]: https://github.com/AntumDeluge/mtmod-spidermob/tree/25a88ff
|
[patch.spidermob]: https://github.com/AntumDeluge/mtmod-spidermob/tree/25a88ff
|
||||||
|
|
|
@ -34,6 +34,21 @@ minetest.register_craft({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
local t_uses = {}
|
||||||
|
local tool_wear_enabled = minetest.settings:get_bool("enable_tool_wear")
|
||||||
|
if tool_wear_enabled == nil then
|
||||||
|
-- Default is enabled
|
||||||
|
tool_wear_enabled = true
|
||||||
|
end
|
||||||
|
|
||||||
|
if tool_wear_enabled then
|
||||||
|
t_uses.fifteen = 15
|
||||||
|
t_uses.twenty = 20
|
||||||
|
else
|
||||||
|
t_uses.fifteen = 0
|
||||||
|
t_uses.twenty = 0
|
||||||
|
end
|
||||||
|
|
||||||
--Register Rainbow Pickaxe
|
--Register Rainbow Pickaxe
|
||||||
minetest.register_tool("rainbow_ore:rainbow_ore_pickaxe", {
|
minetest.register_tool("rainbow_ore:rainbow_ore_pickaxe", {
|
||||||
description = "Rainbow Pickaxe",
|
description = "Rainbow Pickaxe",
|
||||||
|
@ -42,7 +57,7 @@ minetest.register_tool("rainbow_ore:rainbow_ore_pickaxe", {
|
||||||
full_punch_interval = 0.9,
|
full_punch_interval = 0.9,
|
||||||
max_drop_level=3,
|
max_drop_level=3,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
cracky = {times={[1]=1.0, [2]=0.5, [3]=0.25}, uses=0, maxlevel=3},
|
cracky = {times={[1]=1.0, [2]=0.5, [3]=0.25}, uses=t_uses.fifteen, maxlevel=3},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=5},
|
damage_groups = {fleshy=5},
|
||||||
},
|
},
|
||||||
|
@ -68,7 +83,7 @@ minetest.register_tool("rainbow_ore:rainbow_ore_axe", {
|
||||||
full_punch_interval = 0.9,
|
full_punch_interval = 0.9,
|
||||||
max_drop_level=3,
|
max_drop_level=3,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
choppy={times={[1]=1.05, [2]=0.45, [3]=0.25}, uses=0, maxlevel=3},
|
choppy={times={[1]=1.05, [2]=0.45, [3]=0.25}, uses=t_uses.fifteen, maxlevel=3},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=7},
|
damage_groups = {fleshy=7},
|
||||||
}
|
}
|
||||||
|
@ -104,7 +119,7 @@ minetest.register_tool("rainbow_ore:rainbow_ore_shovel", {
|
||||||
full_punch_interval = 1.0,
|
full_punch_interval = 1.0,
|
||||||
max_drop_level=3,
|
max_drop_level=3,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
crumbly = {times={[1]=0.55, [2]=0.25, [3]=0.15}, uses=0, maxlevel=3},
|
crumbly = {times={[1]=0.55, [2]=0.25, [3]=0.15}, uses=t_uses.fifteen, maxlevel=3},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=4},
|
damage_groups = {fleshy=4},
|
||||||
},
|
},
|
||||||
|
@ -130,7 +145,7 @@ minetest.register_tool("rainbow_ore:rainbow_ore_sword", {
|
||||||
full_punch_interval = 0.7,
|
full_punch_interval = 0.7,
|
||||||
max_drop_level=3,
|
max_drop_level=3,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
snappy={times={[1]=0.95, [2]=0.45, [3]=0.15}, uses=0, maxlevel=3},
|
snappy={times={[1]=0.95, [2]=0.45, [3]=0.15}, uses=t_uses.twenty, maxlevel=3},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=8},
|
damage_groups = {fleshy=8},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue