forked from mrkubax10/industrialtest
Refactor electric hoes
This commit is contained in:
@@ -21,6 +21,11 @@ function industrialtest.Tool.use(self,itemstack,user,pointed)
|
||||
return false
|
||||
end
|
||||
|
||||
function industrialtest.Tool.hitUse(self,itemstack,user,pointed)
|
||||
-- dummy function
|
||||
return false
|
||||
end
|
||||
|
||||
function industrialtest.Tool.onPlace(self,itemstack,user,pointed)
|
||||
if self:use(itemstack,user,pointed) then
|
||||
local meta=itemstack:get_meta()
|
||||
@@ -60,6 +65,12 @@ function industrialtest.Tool.createDefinitionTable(self)
|
||||
end
|
||||
return nil
|
||||
end
|
||||
def.on_use=function(itemstack,user,pointed)
|
||||
if self:onUse(itemstack,user,pointed) then
|
||||
return itemstack
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
if industrialtest.mclAvailable then
|
||||
def.groups={
|
||||
|
||||
Reference in New Issue
Block a user