This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Inumel's profile picture

Command Block Api Issues

Started by Inumel, 24 August 2013 - 05:52 PM
Inumel #1
Posted 24 August 2013 - 07:52 PM
Hello! I am having issues with a program regarding command blocks.

First off, I would like to say that the config in the severs is enabled, and the config in CC itself is enabled

Here is my program http://pastebin.com/JK16E0mS .

Tt was working until I restarted my server.. Now its giving me "startup:7: attempt to call nil" Like its not even detecting the command block is there anymore!

My in-game setup is a computer, with a chatbox on the top, and a command block on the left


When the player says "takemehome" in chat, its supposed to teleport the player to those specified coordinates, from any world/dimension

Any help would be greatly appreciated
Small derp, I moved the wrap for the chat box outside of the while look
immibis #2
Posted 25 August 2013 - 04:44 AM
Try sleeping a few seconds at the start of the program (before wrapping the peripheral)
Inumel #3
Posted 25 August 2013 - 09:06 AM
Worked perfectly. Thanks, Immibis!
Inumel #4
Posted 25 August 2013 - 04:59 PM
Now happening again. Ill just tick that up to a bug and figure something else out..