SHOW:
|
|
- or go back to the newest paste.
1 | ---------------------------------------------------------- | |
2 | -- Hypno's Better Level Emitter -- | |
3 | -- -- | |
4 | -- Hypno FTB Unleashed Episode 17 -- | |
5 | -- https://www.youtube.com/watch?v=FVdn09e_2R0 -- | |
6 | -- -- | |
7 | -- YouTube Channel http://youtube.com/hypnotizd -- | |
8 | ---------------------------------------------------------- | |
9 | ||
10 | local p = peripheral.wrap("bottom") | |
11 | while true do | |
12 | local bones = p.listAll()[352] | |
13 | - | if (redstone.getOutput("top") == true) then |
13 | + | if (bones == nil) then |
14 | redstone.setOutput("top", false) | |
15 | elseif (redstone.getOutput("top") == true) then | |
16 | if (bones < 1000) then | |
17 | redstone.setOutput("top", false) | |
18 | end | |
19 | elseif (redstone.getOutput("top") == false) then | |
20 | if (bones > 2000) then | |
21 | redstone.setOutput("top", true) | |
22 | end | |
23 | end | |
24 | os.sleep(60) | |
25 | end |