Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear();
- term.setCursorPos(1,1);
- term.setTextColor(colors.green);
- print("Detekuji prichozi redstone signal...");
- term.setTextColor(colors.orange);
- local turbine = peripheral.wrap("BigReactors-Turbine_2");
- off, on = true;
- while true do
- if rs.getInput("bottom") then
- turbine.setActive(true);
- off = true;
- if on == true then
- print("Turbina byla spustena!");
- on = false;
- end
- else
- turbine.setActive(false);
- on = true;
- if off == true then
- print("Turbina byla zastavena!");
- off = false;
- end
- end
- sleep(1);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement