Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

coolian

Members
  • Content Count

    4
  • Joined

  • Last visited

Everything posted by coolian

  1. thanks now it works after adding _ befor message
  2. i have made some code to play around with the modem stuff but for some reason the modem_message event always returns 0 also im am running one of the scripts on a microcontroller and i am running minecraft version 1.7.10 code of the microcontroller: local rs = component.proxy(component.list("redstone")()) local modem = component.proxy(component.list(modem)()) local identity = 1 a ={} d = "id:" f = tostring(identity) a[1] = d a[2] = f modem.broadcast(1234, "id:1 is online") while true do computer.pullSignal(0.5) end code of the not microcontroller: local component = require('component') local event = require('event') local modem = component.modem modem.open(1234) while true do local _, _, from, port, message = event.pull("modem_message") print(message) os.sleep(0.1) end obviously both are connected with wires and the file with the modem.open is executed befor starting the microcontroller
  3. thx im not very good at lua usally im in java but open computers dosnt has a java implementation
  4. i want to make a timer call some function after a little bit of time i use event.timer local event = require'timer' event.timer(2,function() print("do something"),3) that is my code and i get an unexpectet symbol error at ')' wheres the unexpectet symbol how do i need to make that
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.