[MC-4560] Items in equipment slot / Crashes if CanPickUpLoot is set to 1 in level.dat/player.dat files Created: 13/Dec/12  Updated: 23/Mar/13  Resolved: 17/Mar/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Snapshot 12w50a, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w01a, Snapshot 13w01b, Snapshot 13w02b, Snapshot 13w04a, Snapshot 13w05b, Snapshot 13w06a, Snapshot 13w07a, Snapshot 13w09a
Fix Version/s: Minecraft 1.5

Type: Bug
Reporter: Is Prive Assignee: Unassigned
Resolution: Fixed Votes: 5
Labels: None
Environment:

OS: Windows 8 Professional x64
RAM: 6GB
CPU: Intel(R) Core i5 750
Java: 7 update 9
Mods: No, because it is 12w50a...


Attachments: Text File crash-2012-12-13_16.45.43-server.txt     Text File crash-2013-01-06_14.56.50-server.txt    
Issue Links:
Duplicate
is duplicated by MC-5345 boots is disappearing Resolved
is duplicated by MC-5505 Picked up items overwrite armour slots Resolved
is duplicated by MC-5810 Items replacing boots slot Resolved
is duplicated by MC-5847 Snapshot 13w01a, picked up items repl... Resolved
is duplicated by MC-5950 When picking up an item off the groun... Resolved
is duplicated by MC-6067 When harvesting carrots a single carr... Resolved
is duplicated by MC-6243 While using anvil, pressing escape wi... Resolved
is duplicated by MC-6380 Game Crashing Bug Resolved
is duplicated by MC-6838 Ctrl+Q Item drop Puts Item in Boots Slot Resolved
is duplicated by MC-6902 Picking up items in survival goes weird Resolved
is duplicated by MC-7187 Items dropped equip into armor slots Resolved
is duplicated by MC-7310 Every so often my shoes get replaced ... Resolved
is duplicated by MC-7415 equipped foot armor being replaced an... Resolved
is duplicated by MC-7601 When i try to throw an item onto the ... Resolved
is duplicated by MC-7614 items disappearing when dropped. Resolved
is duplicated by MC-7902 Random Items Replace Boots in Armor Slot Resolved
is duplicated by MC-8250 Putting armour in the wrong slots cra... Resolved
is duplicated by MC-8310 Some items picked up go into boots sl... Resolved
is duplicated by MC-8371 Ticking memory error Resolved
is duplicated by MC-8383 Boots Worn as Pants! Resolved
is duplicated by MC-8415 Armor Resolved
is duplicated by MC-8454 Blocks go into wrong slots and other ... Resolved
is duplicated by MC-8464 Right clic with iron legging Resolved
is duplicated by MC-8482 When I right click on armor, it puts ... Resolved
is duplicated by MC-8500 Some things won't get picked up and w... Resolved
is duplicated by MC-8503 13w04a server, command block bug Resolved
is duplicated by MC-8590 The problem with the dress armor righ... Resolved
is duplicated by MC-8608 MobGriefing Item Bug (With Video) Resolved
is duplicated by MC-8697 Armor placed in the wrong slot Resolved
is duplicated by MC-8967 items appear in Boots slot Resolved
is duplicated by MC-9049 Press Q item you dropped goes in the ... Resolved
is duplicated by MC-9183 Server crash when a pumpkin is dropped Resolved
is duplicated by MC-9370 When i press q item im throwing goes ... Resolved
is duplicated by MC-9502 When I pick up a dropped item, it goe... Resolved
is duplicated by MC-9701 Some items picked up are immediately ... Resolved
is duplicated by MC-9749 Game crash after breaking a pumpkin w... Resolved
is duplicated by MC-9767 items you /give with command blocks s... Resolved
is duplicated by MC-10334 When throwing an item, it takes the p... Resolved
is duplicated by MC-10879 Normal Blocks As Armor Resolved
is duplicated by MC-11381 Game crashes on load Resolved
is duplicated by MC-4734 I can wear seeds insrad of my boots. ... Resolved
is duplicated by MC-4982 when I collect a block with my hand i... Resolved
is duplicated by MC-5035 When you drop item you will lose them! Resolved
is duplicated by MC-5087 Bugged Multiplayer Pick-ups Resolved
is duplicated by MC-5109 Internal Server Error Resolved
is duplicated by MC-5110 Nether Wart bug (pick up) Resolved
is duplicated by MC-5136 Armor acting up on Minecraft sever Resolved
is duplicated by MC-5155 {SMP} Droping Items Resolved
is duplicated by MC-5160 Item in feet slot Resolved
is duplicated by MC-5176 Harvested items (wheat/reeds) disappe... Resolved
is duplicated by MC-5201 Items replacing boots in armor slots. Resolved
Relates
relates to MC-12254 Dispenser/Right click incorrectly put... Resolved
CHK:
Confirmation Status: Confirmed
Game Mode: Survival

 Description   

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



 Comments   
Comment by Tails [ 17/Mar/13 ]

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

Comment by Lex Manos [ 23/Feb/13 ]

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"

Comment by Anon Ymus [ 23/Feb/13 ]

That's what I just said.

Comment by Lex Manos [ 23/Feb/13 ]

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.

Comment by Anon Ymus [ 09/Feb/13 ]

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

Comment by Tails [ 25/Jan/13 ]

Note:

Description: Ticking memory connection
java.lang.ArrayIndexOutOfBoundsException: 4
	at qx.c(SourceFile:1522)
	at md.c(SourceFile:1214)
	at qx.c(SourceFile:357)
	at md.j_(SourceFile:540)
Comment by Kumasasa [ 12/Jan/13 ]

Nice summary, I've put that in the description.

Comment by Jin-oh Kang [ 12/Jan/13 ]

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. (sorry for my bad english if i used it)

Comment by Tails [ 06/Jan/13 ]

Confirmed, attached clean crash report.

Comment by Kumasasa [ 06/Jan/13 ]

Reopened, since MC-6380 and MC-5109 are not modded.

Comment by Tails [ 20/Dec/12 ]

Added how to fix section to description.

Comment by Miles Harvey [ 20/Dec/12 ]

For me this happens in Multiplayer, and when I pick up seeds it equips only 1 and then destroys the rest and all blocks are picked up and then destroyed when there is something equiped in my boots armour slot

Comment by Is Prive [ 20/Dec/12 ]

Try editing the (playername).dat in the player folder instead of the level.dat when running a server.

Comment by Tails [ 20/Dec/12 ]

You have modified level.dat the same way as the poster of this ticket, please follow the steps he provided in his comment to fix your issue.

Comment by Christopher Helminiak [ 20/Dec/12 ]

my bug report with the same thing got closed because of this one already existing.....i used the search feature and this never once came up...i kept getting the same results that had nothing to do with my issue......also, @Tails....the problem is happening to me on a vanilla server, and I have no mods installed personally.

Comment by Is Prive [ 13/Dec/12 ]

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.

Comment by Tails [ 13/Dec/12 ]

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.

Comment by Is Prive [ 13/Dec/12 ]

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.

Comment by Tails [ 13/Dec/12 ]

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.
Comment by Is Prive [ 13/Dec/12 ]

Crash report when trying to pickup an enchanted helmet.

Generated at Sun Jan 12 12:04:59 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.