-
Bug
-
Resolution: Fixed
-
Minecraft 18w22c, Minecraft 1.13-pre2, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 18w31a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.14.1, 1.14.4, 19w34a, 1.15, 1.15.1, 1.15.2 Pre-Release 1, 1.15.2, 20w06a, 20w14a, 20w17a, 20w19a, 20w21a, 1.16.1, 1.16.2 Pre-release 1
-
Confirmed
-
Entities
The bug
If the gamerule doEntityDrops is set to false, it is impossible to empty item frames.
To reproduce
- Run /gamerule doEntityDrops false
- Place an item frame
- Place an item inside of the frame
- Try to punch the item frame in order to take the item out
→ Notice that it plays the "pop" noise, but does not drop the item.
Code analysis
In 1.12.2, items were removed from item frames by the method EntityItemFrame.attackFromEntity(damageSource, amount). In 1.13, this is now done in the method EntityItemFrame.dropItemOrSelf(entity, self). Since the latter method only runs if doEntityDrops is true, the code that removes the item cannot be reached.
Do note this change was likely made while fixing MC-124833.
- is duplicated by
-
MC-131611 Item in an item frame wont pop off
- Resolved
-
MC-132759 The frames with item are unbreakable
- Resolved
-
MC-133778 sometimes unable to get things in item frames
- Resolved
-
MC-135580 Items in Item Frames wont pop out when i click on it in 1.13
- Resolved
-
MC-136072 Item frames with item become pernament
- Resolved
-
MC-136369 Item frames that have an item in them can't be broken or have the item removed.
- Resolved
-
MC-136508 Items cannot be removed from item frames on multiplayer server.
- Resolved
-
MC-136901 Item frame and their items are invincible
- Resolved
-
MC-147150 Can't remove item_frame while gamerule doEntityDrops is false
- Resolved
-
MC-152095 Items cannot be removed from Item Frames by punching if the gamerule doEntityDrops is set to false
- Resolved
-
MC-157873 Item frames do not drop the item and cannot be removed when hit
- Resolved
-
MC-158158 Item Frames not breaking directly or dropping items
- Resolved
-
MC-159090 the item frame don't give out the item we've put in and the boat doesn't give itself or disapear
- Resolved
-
MC-160858 Item frames with items in them cannot be broken when playing in a realm
- Resolved
-
MC-162252 elytra wont break out of picture frame
- Resolved
-
MC-171757 Item Frames become invulnerable with item inside
- Resolved
-
MC-185986 I can't break item frames with items in it!
- Resolved
-
MC-192148 When the gamerule "doEntityDrops" is set to false, item frames with items in them cannot be destroyed
- Resolved
-
MC-192280 Item frames with items won't break
- Resolved
-
MC-197084 Item frame won't empty the item when game rule doEntityDrops set to false
- Resolved