Advertisement
sanovskiy

Warp beacon

Nov 12th, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. Side = { "bottom", "top", "back", "left", "right" }
  2. for i = 1,5 do
  3.   if peripheral.getType(Side[i]) == "warpcore" then
  4.     beacon = peripheral.wrap(Side[i])
  5.     print("Enter frequency")
  6.     freq=io.read()
  7.     beacon.set_beacon_frequency(freq)
  8.     print("Stand on the top of warp core and wait :)")
  9.     error()
  10.   end
  11. end
  12. print("Can't find warp core!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement