Posted May 12, 20196 yr So I'm having a capability attached onto my Item to store NBT datas. However, each time I get the capability from the ItemStack, it seems to think that the stack has no tag compound at all. So it keeps resetting the data. https://gist.github.com/Spyeedy/23e51fcf00f4ec2aec4a263943af1d08 http://www.startrek.com/uploads/assets/articles/61c89a9d73c284bda486afaeaf01cdb27180359b.jpg[/img] Till next time. Thank you for delivering funny scenes to Star Trek as Chekov . Will always remember you
May 12, 20196 yr 1. Capabilities do not store NBT data. NBT is a serialization format (like txt or json or xml). 2. Your read and write NBT methods do fuck all, what did you expect to happen? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
May 12, 20196 yr What's the point in doing capabilities the way you are doing it here? If you want to manipulate the NBT then there is no need for a capability and vice-versa. Edited May 12, 20196 yr by V0idWa1k3r
May 12, 20196 yr Author 7 minutes ago, Draco18s said: 1. Capabilities do not store NBT data. NBT is a serialization format (like txt or json or xml). 2. Your read and write NBT methods do fuck all, what did you expect to happen? I see, well, someone recommended to me to use capabilities. http://www.startrek.com/uploads/assets/articles/61c89a9d73c284bda486afaeaf01cdb27180359b.jpg[/img] Till next time. Thank you for delivering funny scenes to Star Trek as Chekov . Will always remember you
May 12, 20196 yr 5 hours ago, Spyeedy said: I see, well, someone recommended to me to use capabilities. Yes. You should. Here's the thing: Would you rather deal with integers and floats? Or the zip-compressed string representation thereof? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.