Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mineBranch = require('mine-branch')
- local mineHallway = require('mine-hallway')
- local MoveAdvanced = require('move-advanced')
- local Move = require('move')
- local slot_blocks = 15
- local branchNumber = 2
- local function mineNextBranches()
- -- Go to branch left
- MoveAdvanced.go({
- x = 0,
- y = 3,
- z = -2
- })
- Move.face(3)
- -- Mine branch left
- mineBranch()
- -- Go to branch right
- MoveAdvanced.go({
- x = 2,
- y = 0,
- z = 0
- })
- Move.face(1)
- -- Mine branch right
- mineBranch()
- -- Prepare for hallway (cause don't want to have a condition in main loop)
- MoveAdvanced.go({
- x = 0,
- y = 1,
- z = 0
- })
- Move.face(0)
- end
- local function main()
- MoveAdvanced.go({
- x = 1,
- y = 0,
- z = 0
- })
- Move.face(0)
- local branchDigged = 0
- while branchDigged < branchNumber do
- mineHallway()
- mineNextBranches()
- branchDigged = branchDigged + 1
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement