-
Notifications
You must be signed in to change notification settings - Fork 0
/
heartabsolute.py
70 lines (65 loc) · 1.74 KB
/
heartabsolute.py
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from mcpi.minecraft import Minecraft
from time import sleep
mc=Minecraft.create()
x=-65
y=141
z=1
q=z
a = 159,14
b = 155
c = 159,15
heart1 = [
[0,0,0,c,c,0,0,0,0,0,c,c,0,0,0],
[0,c,c,a,a,c,0,0,0,c,a,a,c,c,0],
[c,a,a,a,a,a,c,0,c,a,a,a,a,a,c],
[c,a,a,b,b,a,a,c,a,a,a,a,a,a,c],
[c,a,a,b,b,a,a,a,a,a,a,a,a,a,c],
[c,a,a,a,a,a,a,a,a,a,a,a,a,a,c],
[0,c,a,a,a,a,a,a,a,a,a,a,a,c,0],
[0,c,a,a,a,a,a,a,a,a,a,a,a,c,0],
[0,0,c,a,a,a,a,a,a,a,a,a,c,0,0],
[0,0,0,c,a,a,a,a,a,a,a,c,0,0,0],
[0,0,0,0,c,a,a,a,a,a,c,0,0,0,0],
[0,0,0,0,0,c,a,a,a,c,0,0,0,0,0],
[0,0,0,0,0,0,c,a,c,0,0,0,0,0,0],
[0,0,0,0,0,0,0,c,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
]
heart2 = [
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,c,c,0,0,0,0,0,c,c,0,0,0,0],
[0,c,a,a,c,0,0,0,c,a,a,c,0,0,0],
[c,a,a,a,a,c,0,c,a,a,a,a,c,0,0],
[c,a,a,b,a,a,c,a,a,a,a,a,c,0,0],
[c,a,a,a,a,a,a,a,a,a,a,a,c,0,0],
[0,c,a,a,a,a,a,a,a,a,a,c,0,0,0],
[0,c,a,a,a,a,a,a,a,a,a,c,0,0,0],
[0,0,c,a,a,a,a,a,a,a,c,0,0,0,0],
[0,0,0,c,a,a,a,a,a,c,0,0,0,0,0],
[0,0,0,0,c,a,a,a,c,0,0,0,0,0,0],
[0,0,0,0,0,c,a,c,0,0,0,0,0,0,0],
[0,0,0,0,0,0,c,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
]
def setHeart(x,y,z,heart):
for line in heart:
z = q
for block in line:
mc.setBlock(x,y,z,block)
z = z + 1
y = y - 1
while True:
setHeart(x-1,y,z,heart1)
setHeart(x,y,z,heart1)
setHeart(x+1,y,z,heart1)
sleep(0.5)
setHeart(x-1,y,z,heart2)
setHeart(x,y,z,heart2)
setHeart(x+1,y,z,heart2)
sleep(0.5)
setHeart(x-1,y,z,heart1)
setHeart(x,y,z,heart1)
setHeart(x+1,y,z,heart1)
setHeart(x+1,y,z,heart1)
sleep(0.5)