Posted December 1, 20159 yr Does anybody know if vanilla has one or maybe there is some public implementation? I am asking about reverse-parsing of NBTBase.toString() (literally read returned string back to NBT). Yes, I know - I can write it, or do in milion other ways, just hate reinventing the wheel. 1.7.10 is no longer supported by forge, you are on your own.
December 1, 20159 yr http://stackoverflow.com/questions/27755029/how-to-convert-from-a-string-to-an-nbtcompoundtag Apparently there's a JSONToNBT class... Not 100% sure since this is from January and I'm nowhere near my workspace Aside from there I've seen nothing aside from raw byte handling of NBT. I think its my java of the variables.
December 1, 20159 yr Author Took a glimpse. Looks nice so far. Good to know it exists. I am still as designing stage (of scripting language for my mod) so I have to account for all possibilities - here - reading NBT from cfg (for e.g setting Item's NBT). Thanks man! 1.7.10 is no longer supported by forge, you are on your own.
December 1, 20159 yr Ernio, if you're willing to depend on Java 8, you should look into Nashorn. It's a very good JavaScript engine that's built into JavaSE, so you wouldn't have to reinvent the wheel. Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
December 2, 20159 yr Author I alredy made design and interpreter which handles loading script and is surprisingly fast (in execution, almost as fast as native). The biggest problem I face is that keywords I provide give power over more common game (and my mod) features, but they can't really interpret everything (obviously). Nashorn might be useful in implementing advanced-level scripts, which is cool Thanks for tip. Btw. If anyone know something about it (Nashorn) - particularly its performance problems (e.g what to not do), feel free to post it. 1.7.10 is no longer supported by forge, you are on your own.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.