Pickaxes can now be changed via factor
By default all durapicks will get 12 times their normal durabilities, and it's customizable.
This commit is contained in:
parent
1738176d53
commit
3b04e013ba
@ -6,9 +6,11 @@ Need a very good and durable pickaxe?
|
|||||||
|
|
||||||
The answer to both of these good questions is with a Durapick!
|
The answer to both of these good questions is with a Durapick!
|
||||||
|
|
||||||
Each pickaxe is a bit expensive but worth it, sitting at about 5 times the durability of the standard dull boring default pickaxe.
|
Each pickaxe is a bit expensive but worth it.
|
||||||
|
|
||||||
Collect them all and make a very powerful Dev Pickaxe, unlimited durability mines everything in insane speeds and did I mention it's fast too.
|
Just edit the init.lua file's settings area and edit things like durapick_durability_factor to make pickaxes many times stronger than their default counterpicks.
|
||||||
|
|
||||||
|
Collect them all and make a very powerful Dev Pickaxe, unlimited durability (or if the setting is true then Dev Pickaxe will have durability) mines everything in insane speeds and did I mention it's fast too. :P
|
||||||
|
|
||||||
By: Beanzilla
|
By: Beanzilla
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ minetest.register_tool("durapick:bronze_pick", {
|
|||||||
full_punch_interval = 1.0,
|
full_punch_interval = 1.0,
|
||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
cracky = {times={[1]=4.50, [2]=1.80, [3]=0.90}, uses=durapick_durability_bronze, maxlevel=2},
|
cracky = {times={[1]=4.50, [2]=1.80, [3]=0.90}, uses=(durapick_durability_bronze * durapick_durability_factor), maxlevel=2},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=4},
|
damage_groups = {fleshy=4},
|
||||||
},
|
},
|
||||||
|
10
dev.lua
10
dev.lua
@ -12,11 +12,11 @@ if durapick_durability_dev then
|
|||||||
max_drop_level=3,
|
max_drop_level=3,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
-- This will mine everything in 0.5 seconds
|
-- This will mine everything in 0.5 seconds
|
||||||
cracky={times={[1]=0.5, [2]=0.5, [3]=0.5}, durapick_durability_dev_amt, maxlevel=255},
|
cracky={times={[1]=0.5, [2]=0.5, [3]=0.5}, (durapick_durability_dev_amt * durapick_durability_factor), maxlevel=255},
|
||||||
crumbly={times={[1]=0.5, [2]=0.5, [3]=0.5}, durapick_durability_dev_amt, maxlevel=255},
|
crumbly={times={[1]=0.5, [2]=0.5, [3]=0.5}, (durapick_durability_dev_amt * durapick_durability_factor), maxlevel=255},
|
||||||
snappy={times={[1]=0.5, [2]=0.5, [3]=0.5}, durapick_durability_dev_amt, maxlevel=255},
|
snappy={times={[1]=0.5, [2]=0.5, [3]=0.5}, (durapick_durability_dev_amt * durapick_durability_factor), maxlevel=255},
|
||||||
choppy={times={[1]=0.5, [2]=0.5, [3]=0.5}, durapick_durability_dev_amt, maxlevel=255},
|
choppy={times={[1]=0.5, [2]=0.5, [3]=0.5}, (durapick_durability_dev_amt * durapick_durability_factor), maxlevel=255},
|
||||||
dig_immediate={times={[1]=0.5, [2]=0.5, [3]=0.5}, durapick_durability_dev_amt, maxlevel=255},
|
dig_immediate={times={[1]=0.5, [2]=0.5, [3]=0.5}, (durapick_durability_dev_amt * durapick_durability_factor), maxlevel=255},
|
||||||
},
|
},
|
||||||
-- Modified damage due to the fact it is craftable
|
-- Modified damage due to the fact it is craftable
|
||||||
damage_groups = {fleshy=8},
|
damage_groups = {fleshy=8},
|
||||||
|
@ -6,7 +6,7 @@ minetest.register_tool("durapick:diamond_pick", {
|
|||||||
full_punch_interval = 0.9,
|
full_punch_interval = 0.9,
|
||||||
max_drop_level=3,
|
max_drop_level=3,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
cracky = {times={[1]=2.0, [2]=1.0, [3]=0.50}, uses=durapick_durability_diamond, maxlevel=3},
|
cracky = {times={[1]=2.0, [2]=1.0, [3]=0.50}, uses=(durapick_durability_diamond * durapick_durability_factor), maxlevel=3},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=5},
|
damage_groups = {fleshy=5},
|
||||||
},
|
},
|
||||||
|
19
init.lua
19
init.lua
@ -4,15 +4,18 @@ local moreblocks = minetest.get_modpath("moreblocks")
|
|||||||
-- Settings
|
-- Settings
|
||||||
|
|
||||||
-- Durabilites
|
-- Durabilites
|
||||||
durapick_durability_wood = 270 -- default:pick_wood 30
|
durapick_durability_wood = 30 -- default:pick_wood 30
|
||||||
durapick_durability_stone = 540 -- default:pick_stone 60
|
durapick_durability_stone = 60 -- default:pick_stone 60
|
||||||
durapick_durability_steel = 1620 -- default:pick_steel 180
|
durapick_durability_steel = 180 -- default:pick_steel 180
|
||||||
durapick_durability_bronze = 1620 -- default:pick_bronze 180
|
durapick_durability_bronze = 360 -- default:pick_bronze 180
|
||||||
durapick_durability_mese = 4860 -- default:pick_mese 540
|
durapick_durability_mese = 540 -- default:pick_mese 540
|
||||||
durapick_durability_diamond = 5490 -- default:pick_diamond 610
|
durapick_durability_diamond = 610 -- default:pick_diamond 610
|
||||||
|
|
||||||
durapick_durability_dev = false -- Does the Dev Pickaxe have a durability?
|
durapick_durability_dev = false -- Does the Dev Pickaxe have a durability?
|
||||||
durapick_durability_dev_amt = durapick_durability_diamond * 9
|
durapick_durability_dev_amt = 730
|
||||||
|
|
||||||
|
-- How many pickaxes are 1 durapick equal too?
|
||||||
|
durapick_durability_factor = 12
|
||||||
|
|
||||||
-- Resources
|
-- Resources
|
||||||
durapick_stick = "default:stick"
|
durapick_stick = "default:stick"
|
||||||
@ -25,6 +28,8 @@ if moreblocks then -- If moreblocks exists, use compressed cobble
|
|||||||
else -- If not, then use something default
|
else -- If not, then use something default
|
||||||
durapick_resource_stone = "default:stonebrick"
|
durapick_resource_stone = "default:stonebrick"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Custom Resource
|
||||||
durapick_resource_wood_post = "durapick:dura_wood"
|
durapick_resource_wood_post = "durapick:dura_wood"
|
||||||
durapick_resource_wood_pre = "group:wood"
|
durapick_resource_wood_pre = "group:wood"
|
||||||
|
|
||||||
|
2
mese.lua
2
mese.lua
@ -6,7 +6,7 @@ minetest.register_tool("durapick:mese_pick", {
|
|||||||
full_punch_interval = 0.8,
|
full_punch_interval = 0.8,
|
||||||
max_drop_level=3,
|
max_drop_level=3,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
cracky = {times={[1]=2.4, [2]=1.2, [3]=0.60}, uses=durapick_durability_mese, maxlevel=3},
|
cracky = {times={[1]=2.4, [2]=1.2, [3]=0.60}, uses=(durapick_durability_mese * durapick_durability_factor), maxlevel=3},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=5},
|
damage_groups = {fleshy=5},
|
||||||
},
|
},
|
||||||
|
@ -6,7 +6,7 @@ minetest.register_tool("durapick:steel_pick", {
|
|||||||
full_punch_interval = 1.0,
|
full_punch_interval = 1.0,
|
||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=durapick_durability_steel, maxlevel=2},
|
cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=(durapick_durability_steel * durapick_durability_factor), maxlevel=2},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=4},
|
damage_groups = {fleshy=4},
|
||||||
},
|
},
|
||||||
|
@ -7,7 +7,7 @@ minetest.register_tool("durapick:stone_pick", {
|
|||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
-- Added ability for stone pick to mine like steel pick, just slower
|
-- Added ability for stone pick to mine like steel pick, just slower
|
||||||
cracky = {times={[2]=2.0, [3]=1.00}, uses=durapick_durability_stone, maxlevel=1},
|
cracky = {times={[2]=2.0, [3]=1.00}, uses=(durapick_durability_stone * durapick_durability_factor), maxlevel=1},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=4},
|
damage_groups = {fleshy=4},
|
||||||
},
|
},
|
||||||
|
2
wood.lua
2
wood.lua
@ -7,7 +7,7 @@ minetest.register_tool("durapick:wood_pick", {
|
|||||||
max_drop_level=1,
|
max_drop_level=1,
|
||||||
groupcaps={
|
groupcaps={
|
||||||
-- Changed it so the wood pick has the ability to mine like a steel pick, just slower
|
-- Changed it so the wood pick has the ability to mine like a steel pick, just slower
|
||||||
cracky = {times={[3]=1.60}, uses=durapick_durability_wood, maxlevel=1},
|
cracky = {times={[3]=1.60}, uses=(durapick_durability_wood * durapick_durability_factor), maxlevel=1},
|
||||||
},
|
},
|
||||||
damage_groups = {fleshy=4},
|
damage_groups = {fleshy=4},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user