I am making this plugin that would need to save an entity data to like a database (Which I use PhpMyAdmin as it is more convenient for most cases.) and I am trying to save a list of entities to it as string with NBT data and everything as when to respawn it, it will continue having all it's data. I do plan to just store just the Entity, but I don't know how I would transform it back to an entity once turning it into a string as it will first store it in an array and then turn that array into a string, separated by commas and then turn back into an array to then turn it back into an Entity object, except I don't know how I would do that. I also don't know if just storing the whole Entity would store the nbt data or not. I am still kind of new to Java. I know there are other ways like storing the name and other excess data separate and such but that would be way too much work to do and would most likely kill performance. So I hope to get any help as possible to solve this problem as I tried looking on the internet and found absolute nothing that would help me. Also, mind explaining more about Entity's UUID a bit more as well. Like how does it work, like can you delete an entity completely and summon one with the UUID and it will have all the NBT data or what. Also had a bit of trouble finding an answer for this but it isn't off-topic to what I am asking as I might be able to use that instead of getting NBT but don't want the hassle of testing it through Minecraft as that will slow down the program I am using (eclipse) and then I will have to close Minecraft then restart, and yeah, too much of a hassle. Edit/Update: So I still need help with this problem I am having. I was thinking about just creating a whole class to be used inside a json and such but don't wanna store too much data and don't know how much would fit. Anyway to serialize the Entity and then store it inside JDBC and then later retrieve it like new. I have tried to do it using NMS but to no success. I'll accept any alternatives, as long as it isn't making me too do much work where I might forget something important and will cause a bug. I also wanna try to not use any APIs as that might just slow server start up more. I really desperately need help and don't know what to do that would be fast and takes less time and makes it less-bug efficient, as in too much work where it will cause bugs/hidden bugs. Thanks again.