View difference between Paste ID: 1f1JpvHq and n8fVhJWW
SHOW: | | - or go back to the newest paste.
1
term.clear()
2
term.setCursorPos(1,1)
3
 
4
print("Base Control")
5
term.setCursorPos(1,2)
6
print("Version 1.0")
7
term.setCursorPos(1,4)
8
sleep(1)
9-
print("What would you like me to Help with?")
9+
print("I have 2 Functions, Please Type Farm Or Type Power To Control These sections")
10-
term.setCursorPos(1,6)
10+
11
input = read()
12-
print("Type Farm to control the Farms")
12+
13-
term.setCursorPos(1,7)
13+
14
power = "power"
15-
print("Type Power to control the Power")
15+
16
if input == (farm) then
17
term.clear()
18
term.setCursorPos(1,1)
19
print("Do You want to turn the Farms on or off?")
20
end
21
22
input = read()
23
 
24
on = "on"
25
off = "off"
26
 
27
if input == (off) then
28
print("Farms Turning Off")
29
redstone.setOutput("back", true)
30
print("Type On when your ready for them to turn back on")
31
end
32
33
input = read()
34
 
35-
sleep(3)
35+
36
37
if input == (on) then
38
print("Farms Turning On")
39
redstone.setOutput("back", false)
40
sleep(1)
41
os.reboot()
42-
sleep(3)
42+
43
 
44
if input == (power) then
45
term.clear()
46
term.setCursorPos(1,1)
47
print("Do You want to turn the Power on or off?")
48
end
49
50-
print("Do you want to turn the power on or off?")
50+
51
 
52
on = "on"
53
off = "off"
54
 
55
if input == (off) then
56
print("Power Turning Off")
57
redstone.setOutput("back", true)
58-
print("Power is going on!")
58+
print("Type On when your ready for it to turn back on")
59-
redstone.setOutput("top", false)
59+
60-
sleep(3)
60+
61
input = read()
62
 
63
on = "on"
64
65-
print("Power turning of!")
65+
66-
redstone.setOutput("top", true)
66+
print("Power Turning On")
67-
sleep(3)
67+
68
sleep(1)
69
os.reboot()
70
end
71
end