Remove old corn nodes

Until fixed?
master
James Stevenson 2016-06-25 17:15:00 -04:00
parent 91b263bc44
commit acb1fe56c5
1 changed files with 33 additions and 0 deletions

View File

@ -1,3 +1,36 @@
---[[
local old_nodes = {
"crops:corn_top_3", "crops:corn_base_2",
"crops:corn_top_2", "crops:corn_base_1",
"crops:corn_top_1", "crops:corn_base_3",
"crops:corn_top_4",
}
local old_entities = {}
for _,node_name in ipairs(old_nodes) do
minetest.register_node(":"..node_name, {
groups = {old=1},
})
end
minetest.register_abm({
nodenames = {"group:old"},
interval = 1,
chance = 1,
action = function(pos, node)
minetest.env:remove_node(pos)
end,
})
for _,entity_name in ipairs(old_entities) do
minetest.register_entity(":"..entity_name, {
on_activate = function(self, staticdata)
self.object:remove()
end,
})
end
--]]
--[[