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

Related issues

MC-4734 I can wear seeds insrad of my boots. and i lost boots. MC-4982 when I collect a block with my hand in Minecraft, the block replaces my boots MC-5035 When you drop item you will lose them! MC-5087 Bugged Multiplayer Pick-ups MC-5109 Internal Server Error MC-5110 Nether Wart bug (pick up) MC-5136 Armor acting up on Minecraft sever MC-5155 {SMP} Droping Items MC-5160 Item in feet slot MC-5176 Harvested items (wheat/reeds) disappearing upon pick up (also taking place of boots) MC-5201 Items replacing boots in armor slots. MC-5345 boots is disappearing MC-5505 Picked up items overwrite armour slots MC-5810 Items replacing boots slot MC-5847 Snapshot 13w01a, picked up items replace shoes- Creative Mode MC-5950 When picking up an item off the ground, it is occasionally placed into the "boots" slot, destroying whatever item is there already. MC-6067 When harvesting carrots a single carrot replaces equipped iron boots MC-6243 While using anvil, pressing escape with item in either box will cause item to go into boots(armor) slot MC-6380 Game Crashing Bug MC-6838 Ctrl+Q Item drop Puts Item in Boots Slot MC-6902 Picking up items in survival goes weird MC-7187 Items dropped equip into armor slots MC-7310 Every so often my shoes get replaced with whatever item i just picked up, really frustrating loosing my shoes MC-7415 equipped foot armor being replaced and deleted MC-7601 When i try to throw an item onto the ground or drop it it sends it to the boot armory slot. MC-7614 items disappearing when dropped. MC-7902 Random Items Replace Boots in Armor Slot MC-8250 Putting armour in the wrong slots crashing the game MC-8310 Some items picked up go into boots slot in inventory, and boots are overwritten and lost. MC-8371 Ticking memory error MC-8383 Boots Worn as Pants! MC-8415 Armor MC-8454 Blocks go into wrong slots and other issues MC-8464 Right clic with iron legging MC-8482 When I right click on armor, it puts it on the next layer up. For example, tunic goes to the helmet spot, leggings go to the chestplate spot, etc. MC-8500 Some things won't get picked up and will be put in the boots slot. MC-8503 13w04a server, command block bug MC-8590 The problem with the dress armor right mouse button. MC-8608 MobGriefing Item Bug (With Video) MC-8697 Armor placed in the wrong slot MC-8967 items appear in Boots slot MC-9049 Press Q item you dropped goes in the shoes area of the armor you lose the shoes you are wearing and then when you look at the inventory the game crashes MC-9183 Server crash when a pumpkin is dropped MC-9370 When i press q item im throwing goes in my boots armour place MC-9502 When I pick up a dropped item, it goes into my boots slot. MC-9701 Some items picked up are immediately placed into boot slot, any previous items held there are destroyed MC-9749 Game crash after breaking a pumpkin with enchanted bow. World (attached) is now unusable. MC-9767 items you /give with command blocks spawn in the slot for your boots MC-10334 When throwing an item, it takes the place of the boot slot. MC-10879 Normal Blocks As Armor MC-11381 Game crashes on load

Attachments

Comments

migrated
[media][media]
migrated

Crash report when trying to pickup an enchanted helmet.

migrated

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.

migrated

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.

migrated

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.

migrated

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. 😉

migrated

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.

migrated

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.

migrated

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

migrated

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

migrated

Added how to fix section to description.

kumasasa

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

migrated

Confirmed, attached clean crash report.

migrated

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)

kumasasa

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

migrated

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)
migrated

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

migrated

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.

migrated

That's what I just said.

migrated

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"

migrated

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

migrated

(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