SHOW:
|
|
- or go back to the newest paste.
| 1 | t=turtle | |
| 2 | function light() | |
| 3 | - | t.placeUp() |
| 3 | + | if t.placeUp() == "true" then |
| 4 | - | t.forward() |
| 4 | + | t.forward() |
| 5 | - | t.forward() |
| 5 | + | t.forward() |
| 6 | - | t.forward() |
| 6 | + | t.forward() |
| 7 | - | t.forward() |
| 7 | + | t.forward() |
| 8 | - | t.forward() |
| 8 | + | t.forward() |
| 9 | - | t.forward() |
| 9 | + | t.forward() |
| 10 | - | end |
| 10 | + | t.forward() |
| 11 | end | |
| 12 | if t.placeUp() == "false" then | |
| 13 | sleep(8) | |
| 14 | end | |
| 15 | end | |
| 16 | ||
| 17 | function slots() | |
| 18 | if t.getItemCount() < 5 then | |
| 19 | t.select(2) | |
| 20 | end | |
| 21 | if t.getItemCount() < 5 then | |
| 22 | t.select(3) | |
| 23 | end | |
| 24 | if t.getItemCount() < 5 then | |
| 25 | t.select(4) | |
| 26 | end | |
| 27 | if t.getItemCount() < 5 then | |
| 28 | t.select(5) | |
| 29 | end | |
| 30 | if t.getItemCount() < 5 then | |
| 31 | t.select(6) | |
| 32 | end | |
| 33 | if t.getItemCount() < 5 then | |
| 34 | t.select(7) | |
| 35 | end | |
| 36 | if t.getItemCount() < 5 then | |
| 37 | t.select(8) | |
| 38 | end | |
| 39 | if t.getItemCount() < 5 then | |
| 40 | t.select(9) | |
| 41 | end | |
| 42 | if t.getItemCount() < 5 then | |
| 43 | t.select(10) | |
| 44 | end | |
| 45 | if t.getItemCount() < 5 then | |
| 46 | t.select(11) | |
| 47 | end | |
| 48 | if t.getItemCount() < 5 then | |
| 49 | t.select(12) | |
| 50 | end | |
| 51 | if t.getItemCount() < 5 then | |
| 52 | t.select(13) | |
| 53 | end | |
| 54 | if t.getItemCount() < 5 then | |
| 55 | t.select(14) | |
| 56 | end | |
| 57 | if t.getItemCount() < 5 then | |
| 58 | t.select(15) | |
| 59 | end | |
| 60 | if t.getItemCount() < 5 then | |
| 61 | t.select(16) | |
| 62 | end | |
| 63 | if t.getItemCount() < 5 then | |
| 64 | print("Fucking shit...iam sorry...")
| |
| 65 | end | |
| 66 | end | |
| 67 | while true do | |
| 68 | slots() | |
| 69 | light() | |
| 70 | end |