#Dynamic property lists

1 messages · Page 1 of 1 (latest)

flint ice
#

I need a list that saves between rejoins, reloads and works at least similar to dynamic properties (just a list that is for the world globally) it would be best if I can use dynamic properties

crimson trench
flint ice
#

Ignore the red pack failed text it doesent have anything to do with this

flint ice
limber harness
#

JSON.stringify()

flint ice
lethal lily
#
world.setDynamicProperty('coddy:test', JSON.stringify({ test: 2, bruh: 'hello' });

const data = JSON.parse(world.getDynamicProperty('coddy:test') || '{}');```
flint ice
#

Ok I’ll try that

#

@lethal lily I don’t want to have to use the : I just want a list example like ‘test1’, ‘test2’, ‘test3’

lethal lily
flint ice
#

Alright

flint ice
#

Like remove all items that are for example “test”

lethal lily
flint ice
#

Ok

#

Thanks

lethal lily
#

pls, do some research, I can't always help you.

flint ice
#

Ok

#

Bro it’s completely not working at all like it just adds 1 to the number when I add anything to it and just says [2] or whatever number and the remove thing does absolutely nothing, and there’s no errrors

lethal lily
#

Then do some researchs

#

try checking the values saved

#

try debugging mann

#
console.error(JSON.stringify(world.getDynamicProperty('coddy:test'));```
#

I'm not an AI you can just tag always.

flint ice
limber harness
#

Base js methods work completely fine; how are you using it?

lethal lily
#

it doesn't make sense that it will add a number if in push you add a string.

#

the way to display or get the value is the problem