How to read ships.dat
Open it in any nbt viewer
Data is just bytes
Copy it, paste into a file, and open as text
It’s just a serialized json
Ascii encoding
It’ll then look a lot nicer if you put it into https://jsonformatter.org/
You can then see that there’s some data, and then a “ships” list (square brackets) full of ship dictionary’s (curly brackets) and each ship has an id value. You can search for your missing ships id
/slug and then change the curly brackets group it’s in
So for example:
ships: [
{
“id”: 1,
“etc”: “data”
},
{
“id”: yours,
“Position_x”: 100 (or something)
},
{
“id”: 3,
“etc”: “data”
}
]
Would become:
ships: [
{
“id”: 1,
“etc”: “data”
},
{
“id”: yours,
“Position_x”: 0 (or something)
}
]
Then do all the steps to open the file in reverse
(serialize the json, then turn the ascii string into bytes, then put it back in the ships.dat)
But before you put the file back into the world I would recommend making a backup, just in case you screw something up you don’t want to delete all your ship data