Jump to content




Title: Monitors and Player Detectors


  • You cannot reply to this topic
2 replies to this topic

#1 JPROSP8

  • Members
  • 6 posts

Posted 27 May 2013 - 03:58 PM

Title: Monitors and Player Detectors
FTB 1.4.7 Mindcrack Pack
p = peripheral.wrap("right")
local monitor = peripheral.wrap("front")
local x, y = monitor.getCursorPos()
y=y+1
while true do
a, b = os.pullEvent("player")
monitor.write(B)/>/>
monitor.setCursorPos(1,y)
end

When I do that code it show up once then i try again it comes up but the third time it doesn't come up. Any Suggestions?
Id also like it to move over to the next line.

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 16 July 2013 - 12:28 PM

It should work fine. You can use getCursorPos along with setCursorPos to adjust the cursor relative to its current location.

#3 Zudo

  • Members
  • 800 posts
  • LocationUK

Posted 17 July 2013 - 12:46 AM

Don't you want to put
y = y+1
in the loop?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users