SHOW:
|
|
- or go back to the newest paste.
| 1 | rednet.open("bottom");
| |
| 2 | local senderId, message, protocol = rednet.receive("jail");
| |
| 3 | ||
| 4 | local cell1 = false; | |
| 5 | local cell2 = false; | |
| 6 | local cell3 = false; | |
| 7 | local cell4 = false; | |
| 8 | local cell5 = false; | |
| 9 | local cell6 = false; | |
| 10 | ||
| 11 | local cell7 = false; | |
| 12 | local cell8 = false; | |
| 13 | local cell9 = false; | |
| 14 | local cell10 = false; | |
| 15 | local cell11 = false; | |
| 16 | local cell12 = false; | |
| 17 | ||
| 18 | - | if(message == "cc1r") then |
| 18 | + | if(message == "Cell 1") then |
| 19 | - | commands.fill(-54, 139, -992, -52, 137, -992, "securitycraft:reinforced_iron_bars"); |
| 19 | + | if(cell1 == false) then |
| 20 | - | elseif(message == "oc1r") then |
| 20 | + | commands.fill(-54, 139, -992, -52, 137, -992, "securitycraft:reinforced_iron_bars"); |
| 21 | - | commands.fill(-54, 139, -992, -52, 137, -992, "minecraft:air"); |
| 21 | + | cell1 = true; |
| 22 | - | elseif(message == "cc2r") then |
| 22 | + | else |
| 23 | - | commands.fill(-48, 139, -992, -46, 137, -992, "securitycraft:reinforced_iron_bars"); |
| 23 | + | commands.fill(-54, 139, -992, -52, 137, -992, "minecraft:air"); |
| 24 | - | elseif(message == "oc2r") then |
| 24 | + | cell1 = false; |
| 25 | - | commands.fill(-48, 139, -992, -46, 137, -992, "minecraft:air"); |
| 25 | + | end |
| 26 | - | elseif(message == "cc3r") then |
| 26 | + | elseif(message == "Cell 2") then |
| 27 | - | commands.fill(-42, 139, -992, -40, 137, -992, "securitycraft:reinforced_iron_bars"); |
| 27 | + | if(cell2 == false) then |
| 28 | - | elseif(message == "oc3r") then |
| 28 | + | commands.fill(-48, 139, -992, -46, 137, -992, "securitycraft:reinforced_iron_bars"); |
| 29 | - | commands.fill(-42, 139, -992, -40, 137, -992, "minecraft:air"); |
| 29 | + | cell2 = true; |
| 30 | - | elseif(message == "cc4r") then |
| 30 | + | else |
| 31 | - | commands.fill(-40, 139, -986, -42, 137, -986, "securitycraft:reinforced_iron_bars"); |
| 31 | + | commands.fill(-48, 139, -992, -46, 137, -992, "minecraft:air"); |
| 32 | - | elseif(message == "oc4r") then |
| 32 | + | cell2 = false; |
| 33 | - | commands.fill(-40, 139, -986, -42, 137, -986, "minecraft:air"); |
| 33 | + | end |
| 34 | - | elseif(message == "cc5r") then |
| 34 | + | elseif(message == "Cell 3") then |
| 35 | - | commands.fill(-46, 139, -986, -48, 137, -986, "securitycraft:reinforced_iron_bars"); |
| 35 | + | if(cell3 == false) then |
| 36 | - | elseif(message == "oc5r") then |
| 36 | + | commands.fill(-42, 139, -992, -40, 137, -992, "securitycraft:reinforced_iron_bars"); |
| 37 | - | commands.fill(-46, 139, -986, -48, 137, -986, "minecraft:air"); |
| 37 | + | cell3 = true; |
| 38 | - | elseif(message == "cc6r") then |
| 38 | + | else |
| 39 | - | commands.fill(-52, 139, -986, -54, 137, -986, "securitycraft:reinforced_iron_bars"); |
| 39 | + | commands.fill(-42, 139, -992, -40, 137, -992, "minecraft:air"); |
| 40 | - | elseif(message == "oc6r") then |
| 40 | + | cell3 = false; |
| 41 | - | commands.fill(-52, 139, -986, -54, 137, -986, "minecraft:air"); |
| 41 | + | end |
| 42 | elseif(message == "Cell 4") then | |
| 43 | if(cell4 == false) then | |
| 44 | commands.fill(-40, 139, -986, -42, 137, -986, "securitycraft:reinforced_iron_bars"); | |
| 45 | cell4 = true; | |
| 46 | else | |
| 47 | commands.fill(-40, 139, -986, -42, 137, -986, "minecraft:air"); | |
| 48 | cell4 = false; | |
| 49 | end | |
| 50 | elseif(message == "Cell 5") then | |
| 51 | if(cell5 == false) then | |
| 52 | commands.fill(-46, 139, -986, -48, 137, -986, "securitycraft:reinforced_iron_bars"); | |
| 53 | cell5 = true; | |
| 54 | else | |
| 55 | commands.fill(-46, 139, -986, -48, 137, -986, "minecraft:air"); | |
| 56 | cell5 = false; | |
| 57 | end | |
| 58 | elseif(message == "Cell 6") then | |
| 59 | if(cell6 == false) then | |
| 60 | commands.fill(-52, 139, -986, -54, 137, -986, "securitycraft:reinforced_iron_bars"); | |
| 61 | cell6 = true; | |
| 62 | else | |
| 63 | commands.fill(-52, 139, -986, -54, 137, -986, "minecraft:air"); | |
| 64 | cell6 = false; | |
| 65 | end | |
| 66 | end |