diff --git a/nssm_materials.lua b/nssm_materials.lua index 2b43692..776c24f 100644 --- a/nssm_materials.lua +++ b/nssm_materials.lua @@ -10,7 +10,34 @@ local function nssm_craftitem(name, descr) }) end - +minetest.register_node("nssm:web", { + description = S("Web"), + inventory_image = "web.png", + tiles = {"web.png"} , + drawtype = "plantlike", + paramtype = "light", + walkable = false, + pointable = true, + diggable = true, + buildable_to = false, + drop = "farming:cotton", + drowning = 0, + liquid_renewable = false, + liquidtype = "source", + liquid_range = 0, + liquid_alternative_flowing = "nssm:web", + liquid_alternative_source = "nssm:web", + liquid_viscosity = 20, + groups = {flammable = 2, snappy = 1, liquid = 1}, + on_construct = function(pos) + if not nssm.spiders_litter_web then + minetest.get_node_timer(pos):start(15) + end + end, + on_timer = function(pos) + minetest.remove_node(pos) + end +})