Talk:Player.dat format

I created this page because the Player and Item formats are linked to from multiple unique sources, and having duplicate information lead to constant inconsistency. LB 17:59, 3 July 2012 (UTC)

Dyeing
This page says dyeing is most commonly used for coloring leather armor, but the small amount of testing I did seems to suggest it only effects leather armor. If nothing else can be dyed, shouldn't that be reflected here? Firebastard 04:55, 30 September 2012 (UTC)


 * Sheep and wool can also be dyed. 「 ディノ 奴 千？！ 」? · ☎ Dinoguy1000 06:14, 30 September 2012 (UTC)


 * I think he's talking about the color display tag - wool uses the data value and sheep use a byte value of 0 to 15.  LB ( T 06:31, 30 September 2012 (UTC)


 * Yes, I was referring to items using the tag in question in the item format. Giving color tags to other items seems to have no effect, but I only tested blocks appled to the head, like pumpkins, TNT and the like. Firebastard 02:55, 4 October 2012 (UTC)

Dimension
I guess Dimension could be removed here, because its also (at least according to this wiki) in the Entity structure. --Quurks 20:32, 6 October 2012 (UTC)
 * I'm not too keen on doing that quite yet; it doesn't make sense for entities to have that tag in the first place because entities are only saved in the files for the dimension they are in. In other words, it may change soon.  LB ( T 23:09, 6 October 2012 (UTC)

Crafting Table GUI
Anyone know where the crafting table GUI is? I notice the brewing stand one is in the player info but no mention of crafting table. I was hoping to create custom crafting recipes in vanilla minecraft using command blocks but it looks like I'll have to use chests or droppers or something instead of a crafting table. (oh god first post in 18 months? not a good sign) 24.68.154.229 06:15, 19 December 2013 (UTC)


 * I don't know what you mean. For one thing, the Crafting Table inventory is a virtual inventory and is not saved with the level (which is why you can't leave items in it), and for another, crafting recipes have nothing to do with the Crafting Table. There is no Vanilla way to add, change, or remove crafting recipes, smelting recipes, potion recipes, etc. - you have to do it with command magic and hopper magic (or give in and install a mod).  LB ( T 19:14, 19 December 2013 (UTC)

CustomPotionEffects Tag-Type Changed?
TL;DR: This page lists the "Id", "Amplifier", and "Ambient" tags under the "CustomPotionEffects" tag as Byte, but is found as Integer in-game. Need confirmation or if it's a quirk with the /give command.

Messing about with the /give and /effect commands and checking NBT tags using NBTExplorer. On the Chunk Format page, the "Id", "Amplifier", and "Ambient" tags under the "ActiveEffects" tag are labeled as type "Byte", which I can confirm is correct. When the /effect command applies an effect greater than 127, the number is switched over to -128 and decreases for each level above 128 (meaning using the /effect command to apply an amplifier of 255 would set the "Amplifier" tag to -1).

However, when creating a custom potion ITEM through /give, it seems that the "Id", "Amplifier", and "Ambient" tags under the "CustomPotionEffects" tag are all set to Integers. Trying to apply a custom potion with an "Amplifier" tag greater than 127 does not work, and setting the "Amplifier" tag to a negative doesn't work either, essentially barring the capability of supplying potions with effects greater than 127, while the /effect command is capable of doing so.

So I'm just looking for confirmation that the "Id", "Amplifier", and "Ambient" tags are now Integers for the "CustomPotionEffects" (still Bytes for entities), or if it's just a strange quirk with the /give command, as custom potions can't be obtained in vanilla to check. If clarification is needed, I'll try to rephrase.

Skylinerw (talk) 05:37, 29 December 2013 (UTC)


 * One of the patches introduced a change that allows the game to load tags that are not of the correct type as long as the types are compatible. The types listed on the wiki are the types that Minecraft uses by default when saving natural information that has not been tampered with, and/or the types explicitly written in the decompiled code.  LB ( T 07:00, 29 December 2013 (UTC)


 * Good to know, thanks! Skylinerw (talk) 07:23, 29 December 2013 (UTC)

"ShowParticles" for Potion Items?
While the "ActiveEffects" tag allows you to use the new "ShowParticles" tag, it seems that, up to 14w06b, attempting to use this tag in "CustomPotionEffects" does not apply any tags from it. This is both from /summoning a potion or splash potion and /giving an item with these tags. These methods insert the wrong tag-type, though I am uncertain if that has any bearing on the outcome. I've also tried to manually apply the tag with the correct tag-type to a potion, and there was no effect upon using. It seems the "ShowParticles" is restricted to the "ActiveEffects" tag, or is there something different that needs to be done? Need confirmation of some sort before adding the tag.

Commands attempted:

Note that appending with a "b" doesn't make a difference, as behind-the-scenes the tag is given the incorrect type of "integer". If it's appended with any value, it turns into a string. See the bug report here: https://bugs.mojang.com/browse/MC-44282

And again, attempting to apply the correct tag and tag-type with an NBT editor still doesn't produce the effect of hidden particles.

Skylinerw (talk) 23:26, 6 February 2014 (UTC)


 * It works perfectly fine on non-splash potions in 14w06b, and I have particles turned on:




 * That's reason enough to include it in the article, perhaps with a footnote on the bug that it won't work with splash potions. The same is true for Ambient.


 * I can't confirm your claim that "0b" is a String. In NBTExplorer, it's clearly serialized as a Byte, even when I use the exact same command you used. Also, it doesn't matter if it's an Integer instead of a Byte; it's merely good practice to give things the correct type (most NBT deserializers, including the ActiveEffects deserializer used when applying potion effects, will accept Integer in place of Short/Byte and I think even Float/Double). This issue strictly only applies to splash potions; I suggest you revise your ticket and remove the Integer/Byte/String parts and make it strictly "Splash potions ignore Ambient and ShowParticles flags". --WolfieMario (talk) 01:37, 11 February 2014 (UTC)