Posted 28 March 2017 - 02:53 PM
This is probably a beginner question, but I have gotten pretty far by myself in this…
My goal was to have a command computer program receive redstone input from the left, begin a countdown timer that would say the countdown to people in a certain radius, and then when it hits zero it sends a redstone signal out on the right.
I accomplished this goal with a little help from google searches, but hit a wall on this one:
I am using the command.exec to say the countdown in a loop that needs to say the variable, but I can't get it to say the variable. Here is the part of the script in question (I didn't put in the whole thing…):
local i = 10
while i > -1 do
sleep(1)
commands.exec( "say @a[r=10] …")
i = i - 1
end
However all I get is:
and so on…
also tried with (i), {i}, "i", <i>, and ""i"" all with similar results or error message.
What am I doing wrong, or what am I missing here?
-Hawkins
My goal was to have a command computer program receive redstone input from the left, begin a countdown timer that would say the countdown to people in a certain radius, and then when it hits zero it sends a redstone signal out on the right.
I accomplished this goal with a little help from google searches, but hit a wall on this one:
I am using the command.exec to say the countdown in a loop that needs to say the variable, but I can't get it to say the variable. Here is the part of the script in question (I didn't put in the whole thing…):
local i = 10
while i > -1 do
sleep(1)
commands.exec( "say @a[r=10] …")
i = i - 1
end
However all I get is:
and so on…
also tried with (i), {i}, "i", <i>, and ""i"" all with similar results or error message.
What am I doing wrong, or what am I missing here?
-Hawkins