Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- general = {}
- function directionTranslate(direction)
- if direction == nil then
- return 3
- end
- if direction == "bottom" then
- return 0
- elseif direction == "top" then
- return 1
- elseif direction == "back" then
- return 2
- elseif direction == "front" then
- return 3
- elseif direction == "right" then
- return 4
- elseif direction == "left" then
- return 5
- else
- return 6
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement