You can hold more than 64 items by your cursor
The bug
When you hold a few unstackable items or more than a normal stack of "low-stackable" items by your cursor (i.e. more than 16 ender pearls), and try to take another bigger than normal stack of the same item, you will leave a "usual" stack of the items in the slot but get all other items by you cursor; this happens even if you get more than 64 items in your cursor as a result.
- In theory this allows you to hold any amount of items.
- When you try to put this very big stack into an empty slot, you will put only 64 items.
- When you drop this stack, you will get an item entity with a big Count number in memory
Video of the issue:
https://www.youtube.com/watch?v=1GmTgEB0aeY
Steps to reproduce
- Get yourself a few stacks of 64 unstackable or "low-stackable" items using /give or /replaceitem
Example commands:/replaceitem entity @p slot.hotbar.0 minecraft:mushroom_stew 64
/give @p minecraft:ender_pearl 64
- Take these items (using left or right click) one by one
Result: you get an arbitrary big stack of the items
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.inventory.Container.slotClick(int, int, ClickType, EntityPlayer), especially the click type ClickType.PICKUP and slotId not being -999 tests j2 > itemstack13.getMaxStackSize() - itemstack11.getCount() (j2 being the number of items to place in the slot). This could be fixed my using Math.max(0, j2 > itemstack13.getMaxStackSize() - itemstack11.getCount()).
Created Issue:
Endless Stacking
We all know that you cant stack some items in minecraft like beds tools soups and other stuff only using a command.
The command that i used :
/replaceitem entity @p slot.inventory.0 minecraft:beetroot_soup 64
after that i accidentally clicked one of the soup stacks while iam holding one already and what i got is a bug... 127 beetroot soups were stacked on each other and here is a video to show how:
https://www.youtube.com/watch?v=1GmTgEB0aeY
We all know that you cant stack some items in minecraft like beds tools soups and other stuff only using a command.
The command that i used :
/replaceitem entity @p slot.inventory.0 minecraft:beetroot_soup 64after that i accidentally clicked one of the soup stacks while iam holding one already and what i got is a bug... 127 beetroot soups were stacked on each other and here is a video to show how:
https://www.youtube.com/watch?v=1GmTgEB0aeYThe bug
When you hold a few unstackable items or more than a normal stack of "low-stackable" items by your cursor (i.e. more than 16 enderpearls), and try to take another bigger than normal stack of the same item, you will leave a "usual" stack of the items in the slot but get all other items by you cursor; this happens even if you get more than 64 items in your cursor as a result. In theory this allows you to hold any amount of items.
When you try to put this very big stack into an empty slot, you will put only 64 items.Video of the issue:
https://www.youtube.com/watch?v=1GmTgEB0aeYSteps to reproduce
- Get yourself a few stacks of 64 unstackable or "low-stackable" items using /give or /replaceitem
/replaceitem entity @p slot.hotbar.0 minecraft:mushroom_stew 64/give @p minecraft:ender_pearl 64- Take these items (using left or right click) one by one
Result: you get an arbitrary big stack of the items
Endless StackingYou can hold more than 64 items by your cursor
The bug
When you hold a few unstackable items or more than a normal stack of "low-stackable" items by your cursor (i.e. more than 16 enderpearls), and try to take another bigger than normal stack of the same item, you will leave a "usual" stack of the items in the slot but get all other items by you cursor; this happens even if you get more than 64 items in your cursor as a result. In theory this allows you to hold any amount of items.
When you try to put this very big stack into an empty slot, you will put only 64 items.Video of the issue:
https://www.youtube.com/watch?v=1GmTgEB0aeYSteps to reproduce
- Get yourself a few stacks of 64 unstackable or "low-stackable" items using /give or /replaceitem
/replaceitem entity @p slot.hotbar.0 minecraft:mushroom_stew 64/give @p minecraft:ender_pearl 64- Take these items (using left or right click) one by one
Result: you get an arbitrary big stack of the items
The bug
When you hold a few unstackable items or more than a normal stack of "low-stackable" items by your cursor (i.e. more than 16 enderpearls), and try to take another bigger than normal stack of the same item, you will leave a "usual" stack of the items in the slot but get all other items by you cursor; this happens even if you get more than 64 items in your cursor as a result.
- In theory this allows you to hold any amount of items.
- When you try to put this very big stack into an empty slot, you will put only 64 items.
- When you drop this stack, you will get an item entity with the amount of items you held before
Video of the issue:
https://www.youtube.com/watch?v=1GmTgEB0aeYSteps to reproduce
- Get yourself a few stacks of 64 unstackable or "low-stackable" items using /give or /replaceitem
/replaceitem entity @p slot.hotbar.0 minecraft:mushroom_stew 64/give @p minecraft:ender_pearl 64- Take these items (using left or right click) one by one
Result: you get an arbitrary big stack of the items
The bug
When you hold a few unstackable items or more than a normal stack of "low-stackable" items by your cursor (i.e. more than 16 enderpearls), and try to take another bigger than normal stack of the same item, you will leave a "usual" stack of the items in the slot but get all other items by you cursor; this happens even if you get more than 64 items in your cursor as a result.
- In theory this allows you to hold any amount of items.
- When you try to put this very big stack into an empty slot, you will put only 64 items.
- When you drop this stack, you will get an item entity with the amount of items you held before
Video of the issue:
https://www.youtube.com/watch?v=1GmTgEB0aeYSteps to reproduce
- Get yourself a few stacks of 64 unstackable or "low-stackable" items using /give or /replaceitem
/replaceitem entity @p slot.hotbar.0 minecraft:mushroom_stew 64/give @p minecraft:ender_pearl 64- Take these items (using left or right click) one by one
Result: you get an arbitrary big stack of the items
The bug
When you hold a few unstackable items or more than a normal stack of "low-stackable" items by your cursor (i.e. more than 16 enderpearls), and try to take another bigger than normal stack of the same item, you will leave a "usual" stack of the items in the slot but get all other items by you cursor; this happens even if you get more than 64 items in your cursor as a result.
- In theory this allows you to hold any amount of items.
- When you try to put this very big stack into an empty slot, you will put only 64 items.
- When you drop this stack, you will get an item entity with the amount of items you held before
Video of the issue:
https://www.youtube.com/watch?v=1GmTgEB0aeYSteps to reproduce
- Get yourself a few stacks of 64 unstackable or "low-stackable" items using /give or /replaceitem
Example commands:/replaceitem entity @p slot.hotbar.0 minecraft:mushroom_stew 64/give @p minecraft:ender_pearl 64- Take these items (using left or right click) one by one
Result: you get an arbitrary big stack of the items
The bug
When you hold a few unstackable items or more than a normal stack of "low-stackable" items by your cursor (i.e. more than 16 enderpearls), and try to take another bigger than normal stack of the same item, you will leave a "usual" stack of the items in the slot but get all other items by you cursor; this happens even if you get more than 64 items in your cursor as a result.
- In theory this allows you to hold any amount of items.
- When you try to put this very big stack into an empty slot, you will put only 64 items.
- When you drop this stack, you will get an item entity with
the amount of items you held beforeVideo of the issue:
https://www.youtube.com/watch?v=1GmTgEB0aeYSteps to reproduce
- Get yourself a few stacks of 64 unstackable or "low-stackable" items using /give or /replaceitem
Example commands:/replaceitem entity @p slot.hotbar.0 minecraft:mushroom_stew 64/give @p minecraft:ender_pearl 64- Take these items (using left or right click) one by one
Result: you get an arbitrary big stack of the items
The bug
When you hold a few unstackable items or more than a normal stack of "low-stackable" items by your cursor (i.e. more than 16 enderpearls), and try to take another bigger than normal stack of the same item, you will leave a "usual" stack of the items in the slot but get all other items by you cursor; this happens even if you get more than 64 items in your cursor as a result.
- In theory this allows you to hold any amount of items.
- When you try to put this very big stack into an empty slot, you will put only 64 items.
- When you drop this stack, you will get an item entity with a big Count number in memory
Video of the issue:
https://www.youtube.com/watch?v=1GmTgEB0aeYSteps to reproduce
- Get yourself a few stacks of 64 unstackable or "low-stackable" items using /give or /replaceitem
Example commands:/replaceitem entity @p slot.hotbar.0 minecraft:mushroom_stew 64/give @p minecraft:ender_pearl 64- Take these items (using left or right click) one by one
Result: you get an arbitrary big stack of the items
The bug
When you hold a few unstackable items or more than a normal stack of "low-stackable" items by your cursor (i.e. more than 16 enderpearls), and try to take another bigger than normal stack of the same item, you will leave a "usual" stack of the items in the slot but get all other items by you cursor; this happens even if you get more than 64 items in your cursor as a result.
- In theory this allows you to hold any amount of items.
- When you try to put this very big stack into an empty slot, you will put only 64 items.
- When you drop this stack, you will get an item entity with a big Count number in memory
Video of the issue:
https://www.youtube.com/watch?v=1GmTgEB0aeYSteps to reproduce
- Get yourself a few stacks of 64 unstackable or "low-stackable" items using /give or /replaceitem
Example commands:/replaceitem entity @p slot.hotbar.0 minecraft:mushroom_stew 64/give @p minecraft:ender_pearl 64- Take these items (using left or right click) one by one
Result: you get an arbitrary big stack of the items
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.inventory.Container.slotClick(int, int, ClickType, EntityPlayer), especially the click type ClickType.PICKUP and slotId not being -999 tests j2 > itemstack13.getMaxStackSize() - itemstack11.getCount() (j2 being the number of items to place in the slot). This could be fixed my using Math.max(0, j2 > itemstack13.getMaxStackSize() - itemstack11.getCount()).
The bug
When you hold a few unstackable items or more than a normal stack of "low-stackable" items by your cursor (i.e. more than 16 enderpearls), and try to take another bigger than normal stack of the same item, you will leave a "usual" stack of the items in the slot but get all other items by you cursor; this happens even if you get more than 64 items in your cursor as a result.
- In theory this allows you to hold any amount of items.
- When you try to put this very big stack into an empty slot, you will put only 64 items.
- When you drop this stack, you will get an item entity with a big Count number in memory
Video of the issue:
https://www.youtube.com/watch?v=1GmTgEB0aeYSteps to reproduce
- Get yourself a few stacks of 64 unstackable or "low-stackable" items using
/give or /replaceitem
Example commands:/replaceitem entity @p slot.hotbar.0 minecraft:mushroom_stew 64/give @p minecraft:ender_pearl 64- Take these items (using left or right click) one by one
Result: you get an arbitrary big stack of the items
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.inventory.Container.slotClick(int, int, ClickType, EntityPlayer), especially the click type ClickType.PICKUP and slotId not being -999 tests j2 > itemstack13.getMaxStackSize() - itemstack11.getCount() (j2 being the number of items to place in the slot). This could be fixed my using Math.max(0, j2 > itemstack13.getMaxStackSize() - itemstack11.getCount()).
The bug
When you hold a few unstackable items or more than a normal stack of "low-stackable" items by your cursor (i.e. more than 16 ender pearls), and try to take another bigger than normal stack of the same item, you will leave a "usual" stack of the items in the slot but get all other items by you cursor; this happens even if you get more than 64 items in your cursor as a result.
- In theory this allows you to hold any amount of items.
- When you try to put this very big stack into an empty slot, you will put only 64 items.
- When you drop this stack, you will get an item entity with a big Count number in memory
Video of the issue:
https://www.youtube.com/watch?v=1GmTgEB0aeYSteps to reproduce
- Get yourself a few stacks of 64 unstackable or "low-stackable" items using /give or /replaceitem
Example commands:/replaceitem entity @p slot.hotbar.0 minecraft:mushroom_stew 64/give @p minecraft:ender_pearl 64- Take these items (using left or right click) one by one
Result: you get an arbitrary big stack of the items
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.inventory.Container.slotClick(int, int, ClickType, EntityPlayer), especially the click type ClickType.PICKUP and slotId not being -999 tests j2 > itemstack13.getMaxStackSize() - itemstack11.getCount() (j2 being the number of items to place in the slot). This could be fixed my using Math.max(0, j2 > itemstack13.getMaxStackSize() - itemstack11.getCount()).
This applies to /give as well and is very likely intended. Otherwise unpredicted behavior like MC-114271 can happen.

I feel like this report is invalid, because the count was higher than the maximum stack limit in the first place and bugs like this might happen in other cases too, but then there is
MC-105965which makes this a valid report.