Skip to content

Commit

Permalink
Allow pistons to connect vertically (to mese)
Browse files Browse the repository at this point in the history
  • Loading branch information
khonkhortisan committed Apr 12, 2013
1 parent c08e868 commit 88eb0c6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mesecons_pistons/init.lua
Expand Up @@ -3,6 +3,8 @@ 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=0, y=1, z=0},
{x=0, y=-1, z=0},
{x=1, y=1, z=0},
{x=1, y=-1, z=0},
{x=-1, y=1, z=0},
Expand All @@ -15,6 +17,7 @@ local piston_up_rules =
{x=1, y=0, z=0},
{x=-1, y=0, z=0},
{x=0, y=0, z=1},
{x=0, y=-1, z=0},
{x=1, y=-1, z=0},
{x=-1, y=-1, z=0},
{x=0, y=-1, z=1},
Expand All @@ -25,10 +28,11 @@ local piston_down_rules =
{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=0},
{x=1, y=1, z=0},
{x=-1, y=1, z=0},
{x=0, y=1, z=1},
{x=0, y=1, z=-1}}

local piston_get_rules = function (node)
local rules = piston_rules
Expand Down

2 comments on commit 88eb0c6

@Jeija
Copy link
Collaborator

@Jeija Jeija commented on 88eb0c6 Apr 12, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This conflicts with 6cf7130 and needs to be removed :(
Are you fine with that?

@khonkhortisan
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I'm fine with that - it looks like the 6d facedir rules also connect vertically - by all means, go ahead.

Please sign in to comment.