Posts: 23
Threads: 5
Joined: Jun 2015
Thanks: 0
Given 2 thank(s) in 2 post(s)
Is there any way to access/write nbt in lua? If not i suggest adding that. Not only would it allow easier customization of many things but also allow another (automatically syncronized) way of saving information about world. E.g. had an idea for meteors. It would be easiest to make ghast fireballs rain from sky, but tracking which ones are spawned by plugin which are natural is somewhat troublesome.
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 post(s)
That's not only about reading and writing NBT, it's also about attaching foreign information to practically any object in the server. That would be a huge undertaking. (Also, consider that it's theoretically possible, although not used at this moment, to have a different world storage schema that's not using NBT).
Is it so important to track which fireballs are natural? Is there any special processing you'd be doing for the plugin's ones? I'd just go with not bothering, at least for the first version of the plugin.
Posts: 23
Threads: 5
Joined: Jun 2015
Thanks: 0
Given 2 thank(s) in 2 post(s)
About world storage: if we want to have comparability with vanilla minecraft we would have to have some system of having custom data attached to objects (specifically all entities) even if using different world storage.
Also it does not need to be as flexible as NBT. E.g. storing any string in any entity seems excessive.
Lastly it's not necessary to differentiate the two fireballs, however it would seem very strange that ghast shot a fireball that destroyed HUGE amount of terrain and left ores in the crater... (also somewhat related: there is no scale for entities?)
Posts: 23
Threads: 5
Joined: Jun 2015
Thanks: 0
Given 2 thank(s) in 2 post(s)
I just hope not to leak something (e.g. meteors that get unloaded?)
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 post(s)
06-14-2015, 07:15 PM
(This post was last modified: 06-14-2015, 07:15 PM by xoft.)
You could timestamp the entries and remove them after a timeout.