mirror of
https://github.com/minetest-mods/carpets.git
synced 2024-12-21 04:45:42 +01:00
add material and formation attribute to the carpets
This commit is contained in:
parent
f1cf661040
commit
494e61a8b9
2
api.lua
2
api.lua
@ -37,6 +37,8 @@ function carpets.register(recipe, def)
|
|||||||
node.tiles = {node.tiles[6]}
|
node.tiles = {node.tiles[6]}
|
||||||
end
|
end
|
||||||
node.groups.leafdecay = nil
|
node.groups.leafdecay = nil
|
||||||
|
node.material = recipe
|
||||||
|
node.formation = "carpet"
|
||||||
|
|
||||||
if config:get_bool("FallingCarpet") and node.groups.falling_node == nil then
|
if config:get_bool("FallingCarpet") and node.groups.falling_node == nil then
|
||||||
node.groups.falling_node = 1
|
node.groups.falling_node = 1
|
||||||
|
5
init.lua
5
init.lua
@ -19,6 +19,11 @@ local function filter(name, def)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- no 3rd hand carpets
|
||||||
|
if def.material then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
-- not supported node types for carpets
|
-- not supported node types for carpets
|
||||||
if def.drawtype == "liquid" or
|
if def.drawtype == "liquid" or
|
||||||
def.drawtype == "firelike" or
|
def.drawtype == "firelike" or
|
||||||
|
Loading…
Reference in New Issue
Block a user