Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
-- Mining turtle monitor V1.0.3-- -- To be used alongside StripMine1.7+ -- -- Designed for channels 1 onwards to be used -- -- Config -- Mside = "top" -- set to whatever side the modem is on the turtle Maxt = 7 -- set to number of turtles, have their channels set to their number -- Functions -- function cl() term.clear() term.setCursorPos(1,1) end -- Rednet -- modem = peripheral.wrap(Mside) open = rednet.isOpen() if open == false then cl() print("Opening modem...") rednet.open(Mside) end -- Main code while true do cl() sleep(0.5) print("Listening to channels...") for i = 1,Maxt do cl() print("Listening on channel: " .. i) modem.open(i) local side, Schn, Rchn, null, msg = os.pullEvent("modem_message") if os.pullEvent("modem_message") == true then cl() print(msg) end end end -- Main code
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)