Implement Miner

This commit is contained in:
2025-05-06 17:46:36 +02:00
parent 03ff0ac8ce
commit 93d6cdbb89
5 changed files with 367 additions and 0 deletions

View File

@@ -32,6 +32,10 @@ function industrialtest.Machine.afterPlaceNode(self,pos,placer,itemstack,pointed
-- dummy function
end
function industrialtest.Machine.afterDigNode(self,pos,oldnode,oldmetadata,digger)
-- dummy function
end
function industrialtest.Machine.getFormspec(self,pos)
local formspec
if industrialtest.mtgAvailable then
@@ -195,6 +199,9 @@ function industrialtest.Machine.createDefinitionTable(self)
after_place_node=function(pos,placer,itemstack,pointed)
self:afterPlaceNode(pos,placer,itemstack,pointed)
end,
after_dig_node=function(pos,oldnode,oldmetadata,digger)
self:afterDigNode(pos,oldnode,oldmetadata,digger)
end,
on_timer=function(pos,elapsed)
return self:onTimer(pos,elapsed)
end,