Elix_x Posted October 30, 2015 Posted October 30, 2015 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! Quote Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
Elix_x Posted October 30, 2015 Author Posted October 30, 2015 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?). Quote Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
Elix_x Posted October 30, 2015 Author Posted October 30, 2015 On 10/30/2015 at 1:33 PM, diesieben07 said: Quote 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 ... Quote Quote (Json, Gson. Nbt, Mbt. Get it?). No, not really The why Gson is named Gson. Because Google's json? Quote Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
Elix_x Posted October 30, 2015 Author Posted October 30, 2015 On 10/30/2015 at 3:15 PM, diesieben07 said: Quote The why Gson is named Gson. Because Google's json? Soooo.... My Nbt? Actually, never thought of this one . Anyways, #NULL is working. Thanks. Quote Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
Recommended Posts
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.