Fix few oversights and bring back some missing features

This commit is contained in:
2025-03-03 11:44:18 +01:00
parent 09a0d9c855
commit 8f529ad6c3
3 changed files with 45 additions and 28 deletions

View File

@@ -179,6 +179,8 @@ function industrialtest.Machine.createDefinitionTable(self)
def.groups={cracky=2}
if self.sounds=="metal" then
def.sounds=default.node_sound_metal_defaults()
elseif self.sounds=="wood" then
def.sounds=default.node_sound_wood_defaults()
end
def.can_dig=function(pos)
local meta=minetest.get_meta(pos)
@@ -196,6 +198,8 @@ function industrialtest.Machine.createDefinitionTable(self)
end
if self.sounds=="metal" then
def.sounds=mcl_sounds.node_sound_metal_defaults()
elseif sounds=="wood" then
def.sounds=mcl_sounds.node_sound_wood_defaults()
end
def.groups={
pickaxey=1,
@@ -232,6 +236,13 @@ function industrialtest.Machine.createDefinitionTable(self)
def.legacy_facedir_simple=true
end
if self.hasPowerInput then
def.groups._industrialtest_hasPowerInput=1
end
if self.hasPowerOutput then
def.groups._industrialtest_hasPowerOutput=1
end
return def
end