From 494e61a8b9cd88c6a81d5ecf5c8b9f1ce87085ba Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Fri, 24 Feb 2017 00:54:13 +0100 Subject: [PATCH] add material and formation attribute to the carpets --- api.lua | 2 ++ init.lua | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/api.lua b/api.lua index 3f61e4c..14e8347 100644 --- a/api.lua +++ b/api.lua @@ -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 diff --git a/init.lua b/init.lua index 8269abb..709fec5 100644 --- a/init.lua +++ b/init.lua @@ -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