-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpumpkin.py
More file actions
55 lines (41 loc) · 1.23 KB
/
Copy pathpumpkin.py
File metadata and controls
55 lines (41 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from Main import *
from helpers import *
from __builtins__ import *
def pumpkin_harvest(direction, check_coords):
if get_entity_type() == None:
plant(Entities.Pumpkin)
check_coords.append(get_pos())
move(direction)
def pumpkin(laps):
for i in range(laps):
for i2 in range(size):
for i3 in range(size_min_1):
if not i:
till()
plant(Entities.Pumpkin)
move(East)
if not i:
till()
plant(Entities.Pumpkin)
move(North)
# do_a_flip()
# do_a_flip()
# do_a_flip()
check_coords = []
for i2 in range(size):
for i3 in range(size_min_1):
pumpkin_harvest(East, check_coords)
pumpkin_harvest(North, check_coords)
for coords in check_coords:
goto(coords)
while True:
if get_entity_type() == None:
plant(Entities.Pumpkin)
if not can_harvest():
use_item(Items.Fertilizer)
if can_harvest():
break
# do_a_flip()
# do_a_flip()
# do_a_flip()
harvest()