Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("bottom");
- local senderId, message, protocol = rednet.receive("jail");
- local cell1 = false;
- local cell2 = false;
- local cell3 = false;
- local cell4 = false;
- local cell5 = false;
- local cell6 = false;
- local cell7 = false;
- local cell8 = false;
- local cell9 = false;
- local cell10 = false;
- local cell11 = false;
- local cell12 = false;
- if(message == "Cell 1") then
- if(cell1 == false) then
- commands.fill(-54, 139, -992, -52, 137, -992, "securitycraft:reinforced_iron_bars");
- cell1 = true;
- else
- commands.fill(-54, 139, -992, -52, 137, -992, "minecraft:air");
- cell1 = false;
- end
- elseif(message == "Cell 2") then
- if(cell2 == false) then
- commands.fill(-48, 139, -992, -46, 137, -992, "securitycraft:reinforced_iron_bars");
- cell2 = true;
- else
- commands.fill(-48, 139, -992, -46, 137, -992, "minecraft:air");
- cell2 = false;
- end
- elseif(message == "Cell 3") then
- if(cell3 == false) then
- commands.fill(-42, 139, -992, -40, 137, -992, "securitycraft:reinforced_iron_bars");
- cell3 = true;
- else
- commands.fill(-42, 139, -992, -40, 137, -992, "minecraft:air");
- cell3 = false;
- end
- elseif(message == "Cell 4") then
- if(cell4 == false) then
- commands.fill(-40, 139, -986, -42, 137, -986, "securitycraft:reinforced_iron_bars");
- cell4 = true;
- else
- commands.fill(-40, 139, -986, -42, 137, -986, "minecraft:air");
- cell4 = false;
- end
- elseif(message == "Cell 5") then
- if(cell5 == false) then
- commands.fill(-46, 139, -986, -48, 137, -986, "securitycraft:reinforced_iron_bars");
- cell5 = true;
- else
- commands.fill(-46, 139, -986, -48, 137, -986, "minecraft:air");
- cell5 = false;
- end
- elseif(message == "Cell 6") then
- if(cell6 == false) then
- commands.fill(-52, 139, -986, -54, 137, -986, "securitycraft:reinforced_iron_bars");
- cell6 = true;
- else
- commands.fill(-52, 139, -986, -54, 137, -986, "minecraft:air");
- cell6 = false;
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement