Clean up the redstone rules

This commit is contained in:
Wuzzy 2018-01-12 01:37:32 +01:00
parent 54c0d1d750
commit e4ab20509f
7 changed files with 44 additions and 79 deletions

View file

@ -1,17 +1,4 @@
local lever_get_output_rules = function(node)
local rules = {
{x = -1, y = 0, z = 0},
{x = 1, y = 0, z = 0},
{x = 0, y = 0, z = -1},
{x = 0, y = 0, z = 1},
{x = 0, y = -1, z = 0},
{x = 0, y = 1, z = 0},
}
local dir = minetest.facedir_to_dir(node.param2)
dir = vector.multiply(dir, 2)
table.insert(rules, dir)
return rules
end
local lever_get_output_rules = mesecon.rules.buttonlike_get
-- LEVER
minetest.register_node("mesecons_walllever:wall_lever_off", {