Armor, shields and elytra are dropped by dispenser if they cannot be equipped but skulls and pumpkins are not
The bug
As stated in MC-45743 and MC-48239 it is intended that skulls and pumpkins are not dropped when they cannot be equipped for a mob in front or cannot be placed to spawn a mob (wither, snowman and iron golem). However, armor, shields and the elytra are dropped when they cannot be equipped.
Expected behavior
Armor, shields and the elytra are not dropped when there is no mob in front which can equip the item.
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.item.ItemArmor.DISPENSER_BEHAVIOR.new BehaviorDefaultDispenseItem() {...}.dispenseStack(IBlockSource, ItemStack) calls the method of the parent class which then drops the item.
Linked Issues
relates to5
Created Issue:
Pumpkins and skulls are not dropped when cannot be placed or equipped but armor is
clones
duplicates
clones
duplicates
Pumpkins and skulls are not dropped whencannot beplaced orequipped butarmor isArmor is dropped by dispenser if it cannot be equipped but skulls and pumpkins are not
clones
relates to
clones
Relates to
The bug
As stated in
MC-45743andMC-48239it is intended that skulls and pumpkins are not dropped when they cannot be equipped for a mob in front or cannot be placed to spawn a mob (wither, snowman and iron golem). However, armor, shields and the elytra are dropped when they cannot be equipped.Expected behavior
Armor, shields and the elytra are not dropped when there is no mob in front which can equip the item.
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.item.ItemArmor.DISPENSER_BEHAVIOR.new BehaviorDefaultDispenseItem() {...}.dispenseStack(IBlockSource, ItemStack) calls the method of the parent class which then drops the item.
Relates to
The bug
As stated in
MC-45743andMC-48239it is intended that skulls and pumpkins are not dropped when they cannot be equipped for a mob in front or cannot be placed to spawn a mob (wither, snowman and iron golem). However, armor, shields and the elytra are dropped when they cannot be equipped.Expected behavior
Armor, shields and the elytra are not dropped when there is no mob in front which can equip the item.
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.item.ItemArmor.DISPENSER_BEHAVIOR.new BehaviorDefaultDispenseItem() {...}.dispenseStack(IBlockSource, ItemStack) calls the method of the parent class which then drops the item.
Armoris dropped by dispenser ifit cannot be equipped but skulls and pumpkins are notArmor shields and elytra are dropped by dispenser if they cannot be equipped but skulls and pumpkins are not
Armor, shields and elytra are dropped by dispenser if they cannot be equipped but skulls and pumpkins are not
relates to
relates to
Swekob and [Mod] redstonehelper, that is now MC-114107.
The bug
The report MC-109400 indicates that items with special dispense behavior are not supposed to be dropped when the requirements for the behavior are not met. This is similar to how droppers only drop items if there is no container in front of them.
However, some items are dropped when their special dispense behavior cannot dispense them. This makes this quite inconsistent.
Affected items
- oak_boat
- birch_boat
- spruce_boat
- jungle_boat
- acacia_boat
- dark_oak_boat
- minecart
- furnace_minecart
- chest_minecart
- hopper_minecart
- tnt_minecart
- command_block_minecart
- bucket
- water_bucket
- lava_bucket
- cod_bucket
- salmon_bucket
- pufferfish_bucket
- tropical_fish_bucket
- glass_bottle (Different sound in this case)
Note: Armor, shields and the elytra have their own report (MC-114107) in case this report is invalid, because for them it is inconsistent with pumpkins and skulls as well.
Can confirm for 18w50a, can I request ownership of this ticket?
Affects 19w02a
Can confirm in 20w49a.
Can confirm in 21w03a.
Can confirm in 21w06a.
Can confirm in 1.16.5 and 21w08b.
Can confirm in 1.17.1 Pre-release 1.
Can confirm in 25w6a.