#How to save data permanently to world ?

1 messages · Page 1 of 1 (latest)

idle elk
#

I wanted to ask how to save text (bans:...)
(I want to make command for the ban and for this you need to save the names of the banned)

jagged rose
#

so you want to save names in a ban list ?

idle elk
#

yes I want to create a ban list (so that after the re-entry it is preserved )

jagged rose
#

there are few native ways to do so

  1. Scoreboards, as player names
  2. dynamic properties
  3. inside some entity tag
idle elk
#

(Question to the first method )
using 1/0 value ? (1-banned, 0-not banned)
so?

jagged rose
#

dynamic property can have 1000 chars per pack not ideal for this

score boards can have 32k chars per player name but gets tricky to setup

entity tags are the easiest way even better with a custom entity as no one will be able to kill it and see it, can easily get the entity and using entity.addTag('wave') we can add tags each tag i think is also 32k chars then we can get it with entity.getTags() which returns array like [ 'wave' ]

#

@idle elk

jagged rose
#

How to save data permanently to world ?

deft sphinx
#

They are you be use as a advanced scoreboard

#

And reset if uuid Changes

#

You can copy that if you want