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 INFORMATION SCREEN for MULTILAYER-STRIPMINE-- --Made by ~ilike_zw4 -- --DESCRIPTION -- --This program is part of the Multilayer-Stripmine program of mine.-- --This program is uses to Display the sent messages from your mining turtle on a Screen in your base-- --FIELDS-- modemID = 15113 modem = peripheral.find("modem") or error ("no modem found) modem.open(modemID) monitor = peripheral.find("monitor") monitor.setCursorPos(1,1) monitor.clear() sizeX, sizeY = monitor.getSize() repeat repeat event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message") until channel == modemID if monitor.getCursorPos() +5 > sizeX then local x,y = monitor.getCursorPos() monitor.setCursorPos(1, y+1) end if message == "\n" then local x,y = monitor.getCursorPos() monitor.setCursorPos(1, y+1) end if message == "clear" then monitor.clear() monitor.setCursorPos(1, y+1) else monitor.write(tostring(message)) end until false
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)