]> git.lizzy.rs Git - elidragon.git/blob - patches.lua
Initial Commit
[elidragon.git] / patches.lua
1 minetest.register_alias_force("default:sign_yard", "default:sign_wood_yard")
2 local old_is_protected = minetest.is_protected
3 function minetest.is_protected(pos, player)
4         if pos.y <= -7 then
5                 return true
6         else
7                 return old_is_protected(pos, player)
8         end     
9 end
10 minetest.register_abm({
11         nodenames = {"air"},
12         neighbors = {"default:cloud"},
13         interval = 1,
14         chance = 1,
15         action = function(pos, node, active_object_count, active_object_count_wider)
16         if pos.y == -10 then
17             minetest.set_node({x = pos.x, y = pos.y, z = pos.z}, {name = "default:cloud"})
18         end
19         end
20 })