Added farming:cotton to nssm:web drop

Added abm so spiders do not greif the world
master
DonBatman 2016-05-15 07:47:37 -07:00
parent d455ff757a
commit 9aee510ebb
1 changed files with 11 additions and 1 deletions

View File

@ -78,6 +78,16 @@ minetest.register_ore({
y_max = 200,
}
)
--abm to remove spider webs so they do not greif the world
minetest.register_abm({
nodenames = {"nssm:web"},
interval = 20,
chance = 10,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.set_node(pos, {name = "air"})
end,
})
--nodes
@ -97,7 +107,7 @@ minetest.register_node("nssm:web", {
pointable = true,
diggable = true,
buildable_to = false,
drop = "",
drop = "farming:cotton",
drowning = 0,
liquid_renewable = false,
liquidtype = "source",