#(mrcrash) Return all numbers between two numbers

61 messages · Page 1 of 1 (latest)

compact horizon
#

Hi,

I need to return all the numbers between two numbers, I'm sure there is a tag for that but I can't find it

something like:

<[1 to 5 tag]> = <list[1|2|3|4|5]>

coral capeBOT
#

(mrcrash) Return all numbers between two numbers

coral capeBOT
#

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.

earnest pendant
#

iirc, it's something like <util.int.from[1].to[5]>.

patent dockBOT
#

Tag parse results for <util.int.from[1].to[5]>: https://paste.denizenscript.com/View/126027

util.int.from[1].to[5]
Had error: Tag <util.int.from[1].to[5]> is invalid!
Had error: Unfilled or unrecognized sub-tag(s) 'int.from[1].to[5]' for tag <util.int.from[1].to[5]>!
Had error: The returned value from initial tag fragment 'util' was: '(Base-Object)'.
earnest pendant
#

Ah, almost.

#

<util.int[<#>].to[<#>]>

patent dockBOT
#

Tag parse results for <util.int[1].to[5]>: https://paste.denizenscript.com/View/126028

util.int[1].to[5]
Had error: Tag <util.int[1].to[5]> is invalid!
Had error: Unfilled or unrecognized sub-tag(s) 'int[1].to[5]' for tag <util.int[1].to[5]>!
Had error: The returned value from initial tag fragment 'util' was: '(Base-Object)'.
blissful schooner
earnest pendant
#

I saw <util.random.int[<#>].to[<#>]>. and though it would work without the .random, because why would it not. Turns out, it did, in-fact, not work.

blissful schooner
#

It's a different tag, but I would like to know the usecase first

#

actually the warning is on the tag itself

#

!t util.list_numbers

peak dewBOT
# blissful schooner !t util.list_numbers

Returns a list of integer numbers in the specified range.
You must specify at least the 'to' input, you can optionally specify 'from' (default 1), and 'every' (default 1).
Note that this generally should not be used as input to the 'foreach' command. Instead, use !command repeat.

Returns

ListTag

Examples
# Narrates "1, 2, and 3"
- narrate <util.list_numbers[to=3].formatted>
# Narrates "3, 4, and 5"
- narrate <util.list_numbers[from=3;to=5].formatted>
# Narrates "4, 8, and 12"
- narrate <util.list_numbers[from=4;to=12;every=4].formatted>
compact horizon
compact horizon
blissful schooner
#

ye

compact horizon
#

yay

near snowBOT
#

+> YAY!!!

compact horizon
#

Can i sort it as list ?

#

ok just remove formatted mb

cursive sparrow
#

isnt that just value > smallest && value < largest

compact horizon
#

Mb, i need to return a slot id list

It's for using a foreach slots from 1 to 54

blissful schooner
#

?

#

!info haste debug

peak dewBOT
#
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

blissful schooner
#

What are you trying to do exactly

blissful schooner
compact horizon
#

Im trying to use a list of slot inside a foreach loop to set xy items inside each one

compact horizon
#

?

blissful schooner
#

Mind sharing a debug so I can check what all the values are

compact horizon
blissful schooner
#

Your second foreach loop only contains an a

#

can you elaborate on this

#

holdup

#

@cyan ridge cracked @compact horizon

cyan ridgeBOT
blissful schooner
peak dewBOT
# blissful schooner !checklog https://paste.denizenscript.com/View/126037
Server Version

Purpur version 1.20.6-2233-0d6766e (MC: 1.20.6)

Plugin Version(s)

Citizens: 2.0.35-SNAPSHOT (build 3479) -- (:warning:Outdated build, behind by 56)
Denizen: 1.3.1-SNAPSHOT (build 7066-DEV) -- (Current build :white_check_mark:)
Depenizen: 2.1.1 (build 864) -- (Current build :white_check_mark:)

Checked For

@blissful schooner

UUID Version

3 (:triangular_flag_on_post: Offline)

Java Version

21.0.3 :white_check_mark:

Other Noteworthy Plugin(s)

ProtocolLib: 5.3.0-SNAPSHOT-726, Quests: 5.1.2-b501

Problematic Plugin(s)

PvPManager: 3.34.27 - :warning: PvPManager is known to cause issues related to Citizens and Sentinel.

Possibly Relevant Plugin(s)

TAB: 4.1.6 - This plugin adds Below_Name scoreboards to NPCs.
ViaVersion: 5.0.3 - Mixed client vs server versions can sometimes cause packet-related issues.
FastAsyncWorldEdit: 2.11.2-SNAPSHOT-879;d1e2511 - This plugin has been known to break the plugin load order on many servers, due to usage of the 'loadbefore' directive in its 'plugin.yml'.

blissful mist
#

(that why there is 200+ players in the list probably)

earnest pendant
# blissful mist Hi, there is a mistake here, i'm the owner and the server are closed for offline...

A helper would be able to elaborate further than I can.

Regardless of why, we cannot, and do not support servers that are running in offline mode.
I do not see why you have to have a live server run in offline mode.

This server is probably better served with a wipe in terms of data generated with non UUID v4 data. If you're not willing to do that, at the very least, you'd have to purge your existing player data files to get rid of all the invalid player files.

Not sure what plugin requires offline mode, but it sounds sketchy at best, and piracy at worst; which is also a no-no for I hope you understand are obvious reasons.

earnest pendant
#

For first glance of that, is Citizens 2 not sufficient?

blissful mist
#

but yes we going to wipe out all player data before release

blissful mist
earnest pendant
#

I am not sure if Citizen can, but Denizen definitely can. Keep in mind though, it is forbidden by Mojang to have your server reflect more players than it actually has.

blissful mist
#

that are for developping purpose

#

not for faking the player number btw

earnest pendant
#

Then yes, you should be able to work just fine with Citizens, and Denizen.

#

!c tablist

peak dewBOT
# earnest pendant !c tablist
Group

player

Syntax

tablist [add/remove/update] (name:<name>) (display:<display>) (uuid:<uuid>) (skin_blob:<blob>) (latency:<#>) (gamemode:creative/survival/adventure/spectator) (listed:true/false)

Short Description

Modifies values in the player's tablist.

Description

Adds, removes, or updates a player profile entry in the player's tab-list view.

Using 'add' will add a new entry to the client's player list.
'name' must be specified.
'display' if unspecified will be the same as the name.
'uuid' if unspecified will be randomly generated.
'skin_blob' if unspecified will be a default Minecraft skin. Skin blob should be in format "texture;signature" (separated by semicolon).
'latency' is a number representing the players ping, if unspecified will be 0. 0 renders ...

blissful mist
#

Currently, the tab are already set up, but if needed, we will use that, thx

blissful schooner
#

@cyan ridge cracked @blissful mist

cyan ridgeBOT
compact horizon
#

the 2nd foreach is just a list of names