#How to save data permanently to world ?
1 messages · Page 1 of 1 (latest)
so you want to save names in a ban list ?
yes I want to create a ban list (so that after the re-entry it is preserved )
there are few native ways to do so
- Scoreboards, as player names
- dynamic properties
- inside some entity tag
(Question to the first method )
using 1/0 value ? (1-banned, 0-not banned)
so?
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
How to save data permanently to world ?
For dynamic properties its Per entity per pack. For world its 10000 per pack. 12.7 bytes per number 10 per bool and max length bytes per string
They are you be use as a advanced scoreboard
And reset if uuid Changes
You can copy that if you want