Posted October 30, 201510 yr Good day everybody, i have one little question: Can i use NBTagEnd to encode null objects to nbt? Or should i use something else? Note: these "ends" may appear in both compound and list tags. Thanks for help! If you have any questions - just ask! Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
October 30, 201510 yr Author So, i can't use NBTTagEnd. I don't think i either can add new tag with null value. So if i use compound and put inside string with name "NULL" containing value "NULL" it will be probably differenciated from encoded object that has string field with name "NULL"? And that link to github you gave me, has some usefull things to learn for me. Because i'm working on something similar and it's working pretty nicely: MBT (Json, Gson. Nbt, Mbt. Get it?). Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
October 30, 201510 yr Author So if i use compound and put inside string with name "NULL" containing value "NULL" it will be probably differenciated from encoded object that has string field with name "NULL"?Which is why I choose the absolutely ridiculous key "_sc$null" (sc for SevenCommons). Oh yeah, to not be mistaken with object's field, all i have to do is to use characters that cannot be used in field's name. So #NULL will be enough ... (Json, Gson. Nbt, Mbt. Get it?). No, not really The why Gson is named Gson. Because Google's json? Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
October 30, 201510 yr Author The why Gson is named Gson. Because Google's json? Soooo.... My Nbt? Actually, never thought of this one . Anyways, #NULL is working. Thanks. Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
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.