mojira.dev
MC-4560

Items in equipment slot / Crashes if CanPickUpLoot is set to 1 in level.dat/player.dat files

By changing the value of CanPickUpLoot from 0 to 1 in level.dat or player.dat files, items will be picked up and placed into the equipment slot:
When dropping an an item or tool it will equip to your boots slot.
When dropping an Chestplate it will go to your helmet slot.
When dropping an helmet, the game crashes... When trying to pick the helmet back up, the game crashes again...(see attached crash log)
When dropping an pair of leggings, it will go to your Chestplate slot.
When dropping an pair of boots, it will go to your Leggings slot.

What I expected to happen was:
The item that I dropped would be dropped.

What actually happend was:
It item immediately goes to another an equipment slot in my inventory.
It also overwrites the existing item on the equipment slot.

Steps to Reproduce:
Drop an item in Survival mode.

Summary
This happens when you use Bukkit map to Vanilla SMP server, and this is because of incompatibility between unmodded 12w02b and bukkit. The bukkit sets "CanPickUpLoot" NBT Tag's value to 1 (not 0 the default), and 12w02b doesn't support that, so this occurs.

How to fix
Using NBT-Edit I compared my Level.dat file with a new fresh one.
In NBT-Edit the Byte "CanPickUpLoot" was 1, instead of the default 0. (In NBT-Edit: Data > Player > CanPickUpLoot)
For multiplayer use the player.dat files

Linked issues

MC-4734 I can wear seeds insrad of my boots. and i lost boots. Resolved MC-4982 when I collect a block with my hand in Minecraft, the block replaces my boots Resolved MC-5035 When you drop item you will lose them! Resolved MC-5087 Bugged Multiplayer Pick-ups Resolved MC-5109 Internal Server Error Resolved

Attachments

Comments 20

Crash report when trying to pickup an enchanted helmet.

This ticket is invalid as it relates to a modded or 3rd party client/server.

  • Any non-standard client/server build needs to be taken up with the appropriate team, not Mojang.

  • Any plugin issues need to be addressed to the plugin creator.

  • This site is for addressing issues related to the base unmodded MineCraft.

Since when are there mods for 12w50a?
Edit: I do not have any mods installed...
Edit 2: The sentence "Is Modded: Very likely; Jar signature invalidated" is probably becuase of the snapshot.

1. Cannot reproduce your issue in vanilla.
2. MC-4560 has a perfectly fine crash report - meaning you have some kind of mods/plugins installed.

I found the problem myself and fixed it.
Using NBT-Edit I compared my Level.dat file with a new fresh one.
In NBT-Edit the Byte "CanPickUpLoot" was 1, instead of the default 0. (In NBT-Edit: Data > Player > CanPickUpLoot)
This is probably caused by moving my world from Bukkit to Normal Vanilla Singleplayer Minecraft.
Which is weird in my opinion. Thanks anyways. 😉

10 more comments

There shouldn't even be a "CanPickUpLoot" option in level.dat to mess with.

Actually, there is in single player worlds, as the level.dat contains your player's entity as well. And this value is stored on all EntityLiving
Personally, I believe that Players should just have this functionality disabled as they are controlled by a player and shouldn't have items swapped without them wanting it.

That's what I just said.

Sorry, thought you meant "I could not find a instance of that entry in a vanilla leval.dat" not "It's there, but I suggest it not be"

CanPickUpLoot value resets itself to 0 now every time you load the world.

Is Prive

(Unassigned)

Confirmed

Snapshot 12w50a, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w01a, Snapshot 13w01b, ..., Snapshot 13w04a, Snapshot 13w05b, Snapshot 13w06a, Snapshot 13w07a, Snapshot 13w09a

Minecraft 1.5

Retrieved