…why am I posting this topic chat
anyways, I need help on searching for a guide that helps with decoding a text object with a certain format. My brain’s not braining, I cant think of the search terms. Help is 100000% appreciated. thx
Boss_1s:
Here I’ll just
So lets say I have some text
it looks like this:
|item1|item2|item3|item4|
the separator character is |
In theory, with the following python code you can “grab” item2 like it’s a list item:
def substring(txt, sep, sep_idx) -> int:
sep_amt = 1
i = 0
while i+1<len(txt):
char = txt[i]
if char == sep:
if sep_amt == sep_idx:
return i
else:
sep_amt +=1
i += 1
but I can’t find the block to grab like the second |, only the first one
-costco
also I hate it when people click in to add a view but do absolutely nothing
edit - maybe I should add that this is for this topic right here: NBT data in GKC? (Pseudo-Items)
2 Likes
can you explain so it is easier to comprehend
2 Likes
yaypie
February 5, 2026, 3:01pm
3
What do you mean, “decoding a text object”?
If it seems easy enough to do, I can make it myself and show it to you.
its bc ppl just dont have ideas for it dude, they dont see the whole topic through the title..
1 Like
So I have some text that is separated by a separator, and I need it to act like a list in text.
So index grabbing basically.
you you want the text to be together?
Im not smart enough bro
yaypie
February 5, 2026, 3:04pm
6
do you mean if a player interacts with a text, it changes a symbol/number/letter?
1 Like
4314
February 5, 2026, 3:06pm
7
umm I can try to help, but I have no idea what this means? explanation need
error_:431_4##5TstrA
1 Like
Here I’ll just
So lets say I have some text
it looks like this:
|item1|item2|item3|item4|
the separator character is |
In theory, with the following python code you can “grab” item2 like it’s a list item:
def substring(txt, sep, sep_idx) -> int:
sep_amt = 1
i = 0
while i+1<len(txt):
char = txt[i]
if char == sep:
if sep_amt == sep_idx:
return i
else:
sep_amt +=1
i += 1
but I can’t find the block to grab like the second |, only the first one
How long is each item in the list? Are they all equal # of characters, or do they vary?
2 Likes
Boss_1s
February 27, 2026, 3:07pm
11
never mid, answeres been there the whole time, did not search correctly lol
I think I’m due for another guide.
Introduction
What is a list?
A list in coding is like a shopping list, but it allows you to store or organize groups of data.
While I was creating this guide, April Fool’s hit. Eating tiny slim is explicitly forbidden.
[image]
Anyyyway
There is a specific way to organize your list, and the reasons for this ultimately come down to what blocks are available in Gimkit Creative. This is an example of how your list will be set up.
01notyoyo01, 02kos…
system
Closed
February 27, 2026, 6:07pm
12
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.