Advertisement
Link712011

CC - Trade command computer side

Jun 18th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. -- AdvancedSolarPanel:asp_crafting_items, meta=5
  2. -- IC2:reactorReflectorThick
  3. os.pullEvent = os.pullEventRaw
  4. local senderId, message, protocol
  5. local turtle_id = 3
  6.  
  7. rednet.open("back")
  8. print("Computer ID: ", os.getComputerID())
  9. while true do
  10.     senderId, message, protocol = rednet.receive()
  11.     if turtle_id == senderId and message == "8beb68fcdde33899727e21fb8750150f0b0439b5c3c482610b7b0b35d662af09cdcf6d632a130aa1d62a2da5794243c038ed9a070a04d059f32f8ec44c914708" then
  12.         commands.exec("give @p 4303 1 12")
  13.     else
  14.         print("Recieving ", message)
  15.     end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement