Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add faces.py

  • Loading branch information...
commit 4db526c533c2fee91f7a9300ecbff8de9b7abe9d 1 parent 536cf7d
David Vierra authored September 29, 2011

Showing 2 changed files with 18 additions and 8 deletions. Show diff stats Hide diff stats

  1. 17  faces.py
  2. 9  mclevelbase.py
17  faces.py
... ...
@@ -0,0 +1,17 @@
  1
+
  2
+FaceXIncreasing = 0
  3
+FaceXDecreasing = 1
  4
+FaceYIncreasing = 2
  5
+FaceYDecreasing = 3
  6
+FaceZIncreasing = 4
  7
+FaceZDecreasing = 5
  8
+MaxDirections = 6
  9
+
  10
+faceDirections = (
  11
+                            (FaceXIncreasing, (1, 0, 0)),
  12
+                            (FaceXDecreasing, (-1, 0, 0)),
  13
+                            (FaceYIncreasing, (0, 1, 0)),
  14
+                            (FaceYDecreasing, (0, -1, 0)),
  15
+                            (FaceZIncreasing, (0, 0, 1)),
  16
+                            (FaceZDecreasing, (0, 0, -1))
  17
+                            )
9  mclevelbase.py
@@ -22,14 +22,7 @@
22 22
 import blockrotation
23 23
 from entity import *
24 24
 
25  
-
26  
-FaceXIncreasing = 0
27  
-FaceXDecreasing = 1
28  
-FaceYIncreasing = 2
29  
-FaceYDecreasing = 3
30  
-FaceZIncreasing = 4
31  
-FaceZDecreasing = 5
32  
-MaxDirections = 6
  25
+from faces import *
33 26
 #String constants for common tag names
34 27
 
35 28
 Entities = "Entities"

0 notes on commit 4db526c

Please sign in to comment.
Something went wrong with that request. Please try again.