Jump to content




redstone counter Made andcoded by mysticT


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

#1 candycool1234

  • Members
  • 91 posts

Posted 21 September 2012 - 01:33 AM

i give full credit to mysticT :)/> thx dude

local sInputSide = "left" -- change to the side of the redstone input (where the wire is)

local count = 0
local lastInput = false

while true do
os.pullEvent("redstone")
local input = rs.getInput(sInputSide)
if input ~= lastInput then
if input then
count = count + 1
print(count, " Units you wanna count in or count:")
end
lastInput = input
end
end

#2 NIN3

  • New Members
  • 57 posts
  • LocationEverywhere.

Posted 21 September 2012 - 01:41 AM

You really didnt need to post this, nor did you need to double post it. The script is not really spectacular, and its really misticTs to post; not to mention that most of the coders who are good at lua can replicate this.

#3 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 21 September 2012 - 01:53 AM

View PostNIN3, on 21 September 2012 - 01:41 AM, said:

You really didnt need to post this, nor did you need to double post it. The script is not really spectacular, and its really misticTs to post; not to mention that most of the coders who are good at lua can replicate this.
who cares, let it get buried in the forum posts

the code is somewhat usefull for people new to lua

#4 Mr. Fang

  • Members
  • 82 posts

Posted 21 September 2012 - 02:15 AM

Not going to lie, I like this thread. Thanx for the code.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users