Compare commits
3 Commits
df46aa36ee
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| abbd281e0d | |||
| 1368c2ef00 | |||
| a45d66210a |
29
tools.lua
29
tools.lua
@@ -48,6 +48,9 @@ minetest.register_tool("industrialtest:drill",
|
||||
{
|
||||
description = S("Mining Drill"),
|
||||
inventory_image = "industrialtest_drill.png",
|
||||
_industrialtest_powerStorage=true,
|
||||
_industrialtest_powerCapacity=30000,
|
||||
_industrialtest_powerFlow=128,
|
||||
tool_capabilities =
|
||||
{
|
||||
full_punch_interval = 1.5,
|
||||
@@ -57,18 +60,30 @@ minetest.register_tool("industrialtest:drill",
|
||||
crumbly =
|
||||
{
|
||||
maxlevel = 3,
|
||||
uses = 8888,
|
||||
times = {[1]=0.3, [2]=0.3, [3]=0.3}
|
||||
},
|
||||
cracky =
|
||||
{
|
||||
maxlevel = 3,
|
||||
times = {[1]=0.3, [2]=0.3, [3]=0.3}
|
||||
},
|
||||
},
|
||||
damage_groups = {cracky=3,crubmly=3,fleshy=3},
|
||||
},
|
||||
after_use =
|
||||
{
|
||||
meta:set_int("industrialtest.powerAmount", math.max(meta:get_int("industrialtest.powerAmount") - 80,0))
|
||||
industrialtest.api.updateItemPowerText(itemstack)
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_tool("industrialtest:drill_diamond",
|
||||
{
|
||||
description = S("Diamond Drill"),
|
||||
inventory_image = "industrialtest_drill_diamond.png",
|
||||
_industrialtest_powerStorage=true,
|
||||
_industrialtest_powerCapacity=30000,
|
||||
_industrialtest_powerFlow=128,
|
||||
tool_capabilities =
|
||||
{
|
||||
full_punch_interval = 1.5,
|
||||
@@ -78,12 +93,22 @@ minetest.register_tool("industrialtest:drill_diamond",
|
||||
crumbly =
|
||||
{
|
||||
maxlevel = 3,
|
||||
uses = 8888,
|
||||
times = {[1]=0.1, [2]=0.1, [3]=0.1}
|
||||
},
|
||||
cracky =
|
||||
{
|
||||
maxlevel = 3,
|
||||
times = {[1]=0.1, [2]=0.1, [3]=0.1}
|
||||
},
|
||||
},
|
||||
damage_groups = {cracky=3,crubmly=3,fleshy=3},
|
||||
},
|
||||
|
||||
after_use =
|
||||
{
|
||||
meta:set_int("industrialtest.powerAmount", math.max(meta:get_int("industrialtest.powerAmount") - 80,0))
|
||||
industrialtest.api.updateItemPowerText(itemstack)
|
||||
}
|
||||
})
|
||||
|
||||
if industrialtest.mtgAvailable then
|
||||
|
||||
Reference in New Issue
Block a user