#(Zioxs) Stoping another queue task
45 messages · Page 1 of 1 (latest)
(Zioxs) Stoping another queue task
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
!paste
Help us help you by pasting your script to https://paste.denizenscript.com/New/Script and linking it back here.
Can you share what you have
Content of Denizen Script Paste #103988: 'Unnamed Denizen Script Paste'... pasted 2022/12/14 07:24:08 UTC-08:00, Paste length: 4465 characters across 100 lines
command queue clear doesn't work anymore ?
!e command
Server
This event is to override existing commands, and should not be used to create new commands - use a command script instead.
command <command_name> command
when a player, console, or command block/minecart runs a Bukkit command. This happens before
any code of established commands, allowing scripts to 'override' existing commands.
Note that for the sake of the event line, escaping is used, so 'bukkit:plugins' becomes 'bukkit&coplugins'
when source_type is player. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
<context.command> returns the command name as an ElementTag.
<context.raw_args> returns any args used, unmodified as plaintext.
<context.args> returns a ListTag of the arguments.
<context.source_type> returns the source of the command. Can be: PLAYER, SERVER, COMMAND_BLOCK, or COMMAND_MINECART.
<context.command_block_location> returns the command block's location (if the command was run from one).
<context.command_minecart> returns the EntityTag of the command minecart (if the command was run from one).
"FULFILLED" to tell Bukkit the command was handled.
True - this adds switches in:<area> + location_flagged:<flag name>.
queue
repeat [stop/next/<amount>] (from:<#>) (as:<name>) [<commands>]
Runs a series of braced commands several times.
Loops through a series of braced commands a specified number of times.
To get the number of loops so far, you can use <[value]>.
Optionally, specify "as:<name>" to change the definition name to something other than "value".
Optionally, to specify a starting index, use "from:<#>". Note that the "amount" input is how many loops will happen, not an end index.
The default "from" index is "1". Note that the value you give to "from" will be the value of the first loop.
To stop a repeat loop, do - repeat stop
To jump immediately to the next number in the loop, do - repeat next
prolly should use this instead of writing everything manually
oh ye you were asking about those queues
!t queues
!t scripttag.queues
Returns all queues which are running for this script.
ListTag(QueueTag)
- queue <[current]> clear```
but keep in my that this will stop all the queues running for that script
oke, i will try it
oh damn I made a huge mistake, queue clear and stop are deprecated, sorry
you should use directly stop command
!c
!c stop
queue
stop
Stops the current queue.
This will immediately stop the current queue, preventing it from processing any further.
instead of the stop command only for the queue in that task ?
Seems like you don't need to do this at all, just use some flags and the delta time event
Thanks for the advice
Has your issue been resolved, or your question been answered?
If so, please type </resolved:1028673926114594866> to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@cobalt imp