Browse Source

Disable web propogation, spiders can still make webs

feature/less_webs
surkhe 10 months ago
parent
commit
e7d27e8172
  1. 39
      nssm_materials.lua

39
nssm_materials.lua

@ -396,45 +396,6 @@ minetest.register_abm({ @@ -396,45 +396,6 @@ minetest.register_abm({
end
})
minetest.register_abm({
nodenames = {"nssm:web"},
neighbors = {"default:junglegrass"},
interval = 20.0,
chance = 20,
action = function(pos, node, active_object_count, active_object_count_wider)
local n = minetest.env:get_node(pos).name
if n== "air" then
minetest.set_node({x = pos.x, y = pos.y + 1, z = pos.z}, {name = "nssm:web"})
end
end
})
minetest.register_abm({
nodenames = {"nssm:web"},
neighbors = {"default:junglegrass"},
interval = 20.0,
chance = 20,
action = function(pos, node, active_object_count, active_object_count_wider)
local n = minetest.env:get_node(pos).name
if n== "air" then
minetest.set_node({x = pos.x + 1, y = pos.y, z = pos.z}, {name = "nssm:web"})
end
end
})
minetest.register_abm({
nodenames = {"nssm:web"},
neighbors = {"default:junglegrass"},
interval = 20.0,
chance = 20,
action = function(pos, node, active_object_count, active_object_count_wider)
local n = minetest.env:get_node(pos).name
if n== "air" then
minetest.set_node({x = pos.x - 1, y = pos.y, z = pos.z}, {name = "nssm:web"})
end
end
})
minetest.register_node("nssm:phoenix_fire", {
description = "Phoenix Fire",
drawtype = "firelike",

Loading…
Cancel
Save