Legrandfifou

Mag-card create

Oct 28th, 2014
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. -- Original code by "http://www.computercraft.info/forums2/index.php?/topic/3728-mc-164-cc-158-immibiss-peripherals/"
  2. local reader = peripheral.wrap("Coté ou se trouve le magcard reader")
  3. while true do
  4. reader.beginWrite("#le code que vous désirez","le nom affiché sur la carte")
  5. local event,arg1,arg2,arg3 = os.pullEvent()
  6. if event == "mag_write_done" then
  7.   print("card made")
  8. end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment