cmd = peripheral.wrap("right")
cmd.setCommand("time set 0")
cmd.runCommand()
And it returns
test:2: attempt to call nil
I've made sure that
# Enable Command Block support
B:enableCommandBlock=true
Not sure if I did something wrong, the wiki is wrong, or is this a bug?
And as for my second problem, I tried using an iterator for loop to get rednet messages on computer 0 as according to http://computercraft...ki/Os.pullEvent but it failed.
This is my test program
local event, param1, param2, param3
for event, param1, param2, param3 in os.pullEvent("rednet_message") do
param1 = tostring(param1)
param3 = tostring(param3)
print(event.." "..param1.." "..param2.." "..param3)
end
Okay, it suceeds here.Next I open up Lua on a wireless turtle
lua>rednet.open("left")
lua>rednet.send(0, "hi")
true
And computer 0 returns
test2:2: attempt to call string
Also unsure if bug, wiki mistake or my mistake.
EDIT: ComputerCraft 1.52, Forge 660