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

SysoevDV

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hi. Please tell me why when I use the command block (via the adapter) for some reason it is not allowed to set its value. Example (from Wiki): local component = require("component") local cb = component.command_block local ticks = math.floor(1000/60/60 * os.time() - 6000) print(os.date()) cb.setValue("time set " .. (ticks + 24000)) cb.run() print(os.date()) And I get an error: /command:8: attempt to call field 'setValue' (a nil value) stack traceback: /command:8: in main chunk (..tail calls..) So how do I get a command block to execute commands through OC? Thank you in advance for your answers!
×
×
  • Create New...

Important Information

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