Compare commits

...

8 Commits

7 changed files with 70 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
# List of textures that still have to be done # List of textures that still have to be done
- refined iron ingot for MCL - refined iron ingot for MCL
- sticky resin
- rubber wood (top|side) - rubber wood (top|side)
- rubber wood with rubber (side) - rubber wood with rubber (side)
- rubber leaves - rubber leaves

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

View File

@@ -1,5 +1,5 @@
-- IndustrialTest -- IndustrialTest
-- Copyright (C) 2023 mrkubax10 -- Copyright (C) 2023 mrkubax10 and Migdyn
-- This program is free software: you can redistribute it and/or modify -- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by -- it under the terms of the GNU General Public License as published by
@@ -43,6 +43,74 @@ local definition={
end, end,
_industrialtest_tool=true _industrialtest_tool=true
} }
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,
max_drop_level = 1,
groupcaps =
{
crumbly =
{
maxlevel = 3,
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,
max_drop_level = 1,
groupcaps =
{
crumbly =
{
maxlevel = 3,
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 if industrialtest.mtgAvailable then
definition.groups={ definition.groups={
flammable=2 flammable=2