Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function isSide(side)
- tSides = rs.getSide() -- this is a call the the redstone api which returns an array of the sides
- end
- for i = 1, #tSides do
- if not needAName( i ) and tSide[i] == side then
- return true
- end
- return false
- end
- one = string.lower( read() )
- if isSide(one) then
- print("Correct!)
- else
- print(one.." is not a side")
- end
Advertisement
Add Comment
Please, Sign In to add comment