So, today, I decided that because I have the 1.6 prerelease installed, I may as well try out the new(ish) attributes. I created a new world, gave myself a Diamond sword, then quit the game and opened the level.dat with NBTEdit. I found the data for the sword in my inventory, and attempted to follow the instructions in video, in order to create a sword that gave the player decreased movement speed. However, upon returning to the world, I discovered that nothing had changed, except that the sword's "+7 attack damage" tag was gone. I'm not entirely sure what I did wrong, although I wasn't sure if I was doing anything right to begin with, and I'm looking for help.
All I need is for someone to post a world download with items that have attributes applied to them, or just give me a quick and direct guide of how to add attributes. If somebody could do that, it would be great. Thanks!
Are you sure you reopened the map in 1.6 pre-release? If not, the attributes you added are gone. If you are, try hitting a mob. Do you kill it in 3 hits?
They changed part of the attribute system where you have to add two more lines under the Attribute label in NBTedit. You'll need two "long" items (the yellow dot in NBTedit), one named UUIDMost and the other UUIDLeast. Change the values of both to be a random number and you should be good to go. The only thing is, you cannot have any two attributes with the same random number (if you have one item with attribute UUIDs of 0 and 1, no other item can use those numbers).
They changed part of the attribute system where you have to add two more lines under the Attribute label in NBTedit. You'll need two "long" items (the yellow dot in NBTedit), one named UUIDMost and the other UUIDLeast. Change the values of both to be a random number and you should be good to go. The only thing is, you cannot have any two attributes with the same random number (if you have one item with attribute UUIDs of 0 and 1, no other item can use those numbers).
RNG? I'm really bad at these things, and I have no idea what an RNG is.
What would probably be best is if someone could just post a world download with an item that has attributes applied to it, so that I can take a look at it myself.
That helped. A lot. Now I can just load up McEdit every time I forget how to do it. Thanks! However, the format with which the attributes were applied were exactly the same as what I was doing. So, does anyone know what went wrong?
EDIT: I now have reason to believe that whatever went wrong was just a careless mistake on my behalf. My problem is now solved.
All I need is for someone to post a world download with items that have attributes applied to them, or just give me a quick and direct guide of how to add attributes. If somebody could do that, it would be great. Thanks!
And if that doesn't make sense, here's a template I made that you can edit yourself in MCEdit.
http://www.mediafire.com/download/2ol5ym0wkegl89z/Attribute.schematic
Here's exactly what I did (inside the compound for the item):
Compound "tag"
-TagCompound "AttributeModifiers"
--Compound
---Int "Operation": 0
---Long "UUIDLeast": 0
---Long "UUIDMost": 1
---Double "Amount": -2
---String "AttributeName": generic.moveSpeed
---String "Name": Slowness
And yes, I am opening the world in 1.6.1.
So, any ideas what went wrong?
You might need to use an RNG for the UUID.
What would probably be best is if someone could just post a world download with an item that has attributes applied to it, so that I can take a look at it myself.
Try it out
However, the format with which the attributes were applied were exactly the same as what I was doing. So, does anyone know what went wrong?EDIT: I now have reason to believe that whatever went wrong was just a careless mistake on my behalf. My problem is now solved.