I think most of you know that blocklauncher don't save custom render,if you don't know,now you know(lol),Entity.getUniqueId(entity)does nothing,I still have no idea how to use it because nobody answer me
Anyway,here is what I thought:How can I save the render?
And here is the idea:Whenever a mob with custom render type,it will keep track of its coordinate.When you leave the game,it will write down the final coordinate of that mob,and when you go into the world again,it will read the file with that coordinate,and set the mob back to that render type and that skin.
Now is the problem:
1.How to track down multiple of them?I mean,you can't do ModPE.saveData a billion times,right?And,we normally just do 1 variable, like:
var xyz;
xyz=Level.spawnMob(blah blah blah);
Entity.setHealth(xyz,blah);
After that,if you spawn another one,it will change the xyz to another one,but the original one go back to a zombie or other thing,but not xyz(messy,messy,don't mind me)
2.How on earth can I make the mod read the file in a correct way
I know those questions are stupid,but I am still a NOOB of JavaScript, I hope someone could help me out
Anyway,here is what I thought:How can I save the render?
And here is the idea:Whenever a mob with custom render type,it will keep track of its coordinate.When you leave the game,it will write down the final coordinate of that mob,and when you go into the world again,it will read the file with that coordinate,and set the mob back to that render type and that skin.
Now is the problem:
1.How to track down multiple of them?I mean,you can't do ModPE.saveData a billion times,right?And,we normally just do 1 variable, like:
var xyz;
xyz=Level.spawnMob(blah blah blah);
Entity.setHealth(xyz,blah);
After that,if you spawn another one,it will change the xyz to another one,but the original one go back to a zombie or other thing,but not xyz(messy,messy,don't mind me)
2.How on earth can I make the mod read the file in a correct way
I know those questions are stupid,but I am still a NOOB of JavaScript, I hope someone could help me out
so i give this http://extendedcraft.weebly.com/reading-and-writing-txt-file-and-using-it-for-saving.html
Ok,thanks