add material and formation attribute to the carpets

This commit is contained in:
Alexander Weber 2017-02-24 00:54:13 +01:00
parent f1cf661040
commit 494e61a8b9
2 changed files with 7 additions and 0 deletions

@ -37,6 +37,8 @@ function carpets.register(recipe, def)
node.tiles = {node.tiles[6]}
end
node.groups.leafdecay = nil
node.material = recipe
node.formation = "carpet"
if config:get_bool("FallingCarpet") and node.groups.falling_node == nil then
node.groups.falling_node = 1

@ -19,6 +19,11 @@ local function filter(name, def)
return false
end
-- no 3rd hand carpets
if def.material then
return false
end
-- not supported node types for carpets
if def.drawtype == "liquid" or
def.drawtype == "firelike" or