Jump to content




redstone counter Made andcoded by mystic


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

#1 candycool1234

  • Members
  • 91 posts

Posted 21 September 2012 - 01:33 AM

i give full credit to mystic :)/> 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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users