Machines now explode when there is too much power transferred

This commit is contained in:
2023-11-19 14:53:43 +01:00
parent 84efcf7f7f
commit 286f95596f
3 changed files with 27 additions and 17 deletions

View File

@@ -70,6 +70,7 @@ if industrialtest.mclAvailable then
end
return itemstack
end
industrialtest.internal.explode=mcl_explosions.explode
end
-- compatibilty that adds not existing elements
@@ -647,6 +648,10 @@ if industrialtest.mclAvailable then
y_min=mcl_vars.mg_overworld_min
})
elseif industrialtest.mtgAvailable then
industrialtest.internal.explode=function(pos,radius)
tnt.boom(pos,{radius=radius})
end
industrialtest.registerMetal=function(name,displayName,hardness)
minetest.register_craftitem("industrialtest:"..name.."_lump",{
description=S(displayName.." Lump"),