parent
bea76ecc62
commit
36549e9a49
@ -31,6 +31,10 @@ local function registerElectricChainsaw(config)
|
|||||||
local definition={
|
local definition={
|
||||||
description=config.displayName,
|
description=config.displayName,
|
||||||
inventory_image="industrialtest_"..config.name..".png",
|
inventory_image="industrialtest_"..config.name..".png",
|
||||||
|
after_use=function(itemstack)
|
||||||
|
-- Hack to make sure that chainsaw won't be destroyed when has 0 EU
|
||||||
|
return nil
|
||||||
|
end,
|
||||||
_industrialtest_powerStorage=true,
|
_industrialtest_powerStorage=true,
|
||||||
_industrialtest_powerCapacity=10000,
|
_industrialtest_powerCapacity=10000,
|
||||||
_industrialtest_powerFlow=industrialtest.api.lvPowerFlow,
|
_industrialtest_powerFlow=industrialtest.api.lvPowerFlow,
|
||||||
@ -70,10 +74,6 @@ local function registerElectricChainsaw(config)
|
|||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
definition.after_use=function(itemstack)
|
|
||||||
-- Hack to make sure that chainsaw won't be destroyed when has 0 EU in MCL
|
|
||||||
return nil
|
|
||||||
end
|
|
||||||
definition._mcl_diggroups={
|
definition._mcl_diggroups={
|
||||||
axey={
|
axey={
|
||||||
speed=config.inactiveDigSpeed,
|
speed=config.inactiveDigSpeed,
|
||||||
|
@ -31,6 +31,10 @@ local function registerElectricDrill(config)
|
|||||||
local definition={
|
local definition={
|
||||||
description=config.displayName,
|
description=config.displayName,
|
||||||
inventory_image="industrialtest_"..config.name..".png",
|
inventory_image="industrialtest_"..config.name..".png",
|
||||||
|
after_use=function()
|
||||||
|
-- Hack to make sure that drill won't be destroyed when has 0 EU
|
||||||
|
return nil
|
||||||
|
end,
|
||||||
_industrialtest_powerStorage=true,
|
_industrialtest_powerStorage=true,
|
||||||
_industrialtest_powerCapacity=10000,
|
_industrialtest_powerCapacity=10000,
|
||||||
_industrialtest_powerFlow=industrialtest.api.lvPowerFlow,
|
_industrialtest_powerFlow=industrialtest.api.lvPowerFlow,
|
||||||
@ -64,10 +68,6 @@ local function registerElectricDrill(config)
|
|||||||
tool=1,
|
tool=1,
|
||||||
dig_speed_class=config.digSpeedClass
|
dig_speed_class=config.digSpeedClass
|
||||||
}
|
}
|
||||||
definition.after_use=function()
|
|
||||||
-- Hack to make sure that drill won't be destroyed when has 0 EU in MCL
|
|
||||||
return nil
|
|
||||||
end
|
|
||||||
definition._mcl_diggroups={
|
definition._mcl_diggroups={
|
||||||
pickaxey={
|
pickaxey={
|
||||||
speed=config.inactiveDigSpeed,
|
speed=config.inactiveDigSpeed,
|
||||||
|
@ -31,6 +31,10 @@ local function registerElectricSaber(config)
|
|||||||
local definition={
|
local definition={
|
||||||
description=config.displayName,
|
description=config.displayName,
|
||||||
inventory_image="industrialtest_"..config.name..".png",
|
inventory_image="industrialtest_"..config.name..".png",
|
||||||
|
after_use=function()
|
||||||
|
-- Hack to make sure that saber won't be destroyed when has 0 EU
|
||||||
|
return nil
|
||||||
|
end,
|
||||||
_industrialtest_powerStorage=true,
|
_industrialtest_powerStorage=true,
|
||||||
_industrialtest_powerCapacity=10000,
|
_industrialtest_powerCapacity=10000,
|
||||||
_industrialtest_powerFlow=industrialtest.api.lvPowerFlow,
|
_industrialtest_powerFlow=industrialtest.api.lvPowerFlow,
|
||||||
@ -62,10 +66,6 @@ local function registerElectricSaber(config)
|
|||||||
max_drop_level=config.maxDropLevel,
|
max_drop_level=config.maxDropLevel,
|
||||||
damage_groups={fleshy=config.inactiveDamage}
|
damage_groups={fleshy=config.inactiveDamage}
|
||||||
}
|
}
|
||||||
definition.after_use=function()
|
|
||||||
-- Hack to make sure that saber won't be destroyed when has 0 EU in MCL
|
|
||||||
return nil
|
|
||||||
end
|
|
||||||
definition._mcl_toollike_wield=true
|
definition._mcl_toollike_wield=true
|
||||||
definition._mcl_diggroups={
|
definition._mcl_diggroups={
|
||||||
swordy={
|
swordy={
|
||||||
|
Loading…
Reference in New Issue
Block a user