diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-12 20:05:50 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-02-12 20:05:50 -0500 |
commit | aa601daf67ca220290e03608fbaa4bcddbfcfbd8 (patch) | |
tree | a0759c06b939c90e8bed4d1af84e832bbbf0b842 /mesecons_pistons | |
parent | ce806489e2472c29bb6f32b0ec59f7e023f11c08 (diff) | |
download | dreambuilder_modpack-aa601daf67ca220290e03608fbaa4bcddbfcfbd8.tar dreambuilder_modpack-aa601daf67ca220290e03608fbaa4bcddbfcfbd8.tar.gz dreambuilder_modpack-aa601daf67ca220290e03608fbaa4bcddbfcfbd8.tar.bz2 dreambuilder_modpack-aa601daf67ca220290e03608fbaa4bcddbfcfbd8.tar.xz dreambuilder_modpack-aa601daf67ca220290e03608fbaa4bcddbfcfbd8.zip |
update boost_cart, homedecor, mesecons, moretrees, unified_inventory, and worldedit
Diffstat (limited to 'mesecons_pistons')
-rw-r--r-- | mesecons_pistons/init.lua | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index 474f621..a52c802 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -1,6 +1,6 @@ -- Get mesecon rules of pistons -piston_rules = -{{x=0, y=0, z=1}, --everything apart from z- (pusher side) +local piston_rules = { + {x=0, y=0, z=1}, --everything apart from z- (pusher side) {x=1, y=0, z=0}, {x=-1, y=0, z=0}, {x=1, y=1, z=0}, @@ -8,29 +8,32 @@ piston_rules = {x=-1, y=1, z=0}, {x=-1, y=-1, z=0}, {x=0, y=1, z=1}, - {x=0, y=-1, z=1}} + {x=0, y=-1, z=1} +} -local piston_up_rules = -{{x=0, y=0, z=-1}, --everything apart from y+ (pusher side) +local piston_up_rules = { + {x=0, y=0, z=-1}, --everything apart from y+ (pusher side) {x=1, y=0, z=0}, {x=-1, y=0, z=0}, {x=0, y=0, z=1}, {x=1, y=-1, z=0}, {x=-1, y=-1, z=0}, {x=0, y=-1, z=1}, - {x=0, y=-1, z=-1}} + {x=0, y=-1, z=-1} +} -local piston_down_rules = -{{x=0, y=0, z=-1}, --everything apart from y- (pusher side) +local piston_down_rules = { + {x=0, y=0, z=-1}, --everything apart from y- (pusher side) {x=1, y=0, z=0}, {x=-1, y=0, z=0}, {x=0, y=0, z=1}, {x=1, y=1, z=0}, {x=-1, y=1, z=0}, {x=0, y=1, z=1}, - {x=0, y=1, z=-1}} + {x=0, y=1, z=-1} +} -local piston_get_rules = function (node) +local function piston_get_rules(node) local rules = piston_rules for i = 1, node.param2 do rules = mesecon.rotate_rules_left(rules) @@ -38,7 +41,7 @@ local piston_get_rules = function (node) return rules end -piston_facedir_direction = function (node) +local function piston_facedir_direction(node) local rules = {{x = 0, y = 0, z = -1}} for i = 1, node.param2 do rules = mesecon.rotate_rules_left(rules) @@ -46,7 +49,7 @@ piston_facedir_direction = function (node) return rules[1] end -piston_get_direction = function(dir, node) +local function piston_get_direction(dir, node) if type(dir) == "function" then return dir(node) else |