[MC-4582] Can't eat, throw, or shoot while looking at an Iron Door/Iron Trapdoor Created: 13/Dec/12  Updated: 12/Feb/21  Resolved: 16/Aug/16

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.5, Snapshot 12w50a, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w07a, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w23b, Snapshot 13w24a, Snapshot 13w24b, Minecraft 1.9.2, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.3, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 1.10 Pre-Release 1, Minecraft 1.10.2
Fix Version/s: Minecraft 16w33a

Type: Bug
Reporter: FireHunterX Assignee: [Mojang] Agnes Larsson
Resolution: Fixed Votes: 7
Labels: None
Environment:

Java 7
Mac OS X


Issue Links:
Duplicate
is duplicated by MC-7844 Continuous Right Clicking Iron Doors Resolved
is duplicated by MC-9025 Can't fire a bow at an iron door Resolved
is duplicated by MC-10107 Carrots and a Cauldron Glitch Resolved
is duplicated by MC-15345 Food will single-"punch" an iron door... Resolved
is duplicated by MC-19089 You can't use item while looking at f... Resolved
is duplicated by MC-19136 Right-clicking fence with food Resolved
is duplicated by MC-19504 Placing Blocks/Hitting Fences Resolved
is duplicated by MC-19679 Punching fence when right clicked Resolved
is duplicated by MC-20813 Eating at Fence Resolved
is duplicated by MC-21537 Not able to consume food while facing... Resolved
is duplicated by MC-22379 Right Clicking Fences Resolved
is duplicated by MC-22829 fence bug Resolved
is duplicated by MC-22999 carrots and fences Resolved
is duplicated by MC-24298 Food Bug Resolved
is duplicated by MC-24592 Right Clicking Fences Makes The Punch... Resolved
is duplicated by MC-24994 Cannot block with sword when facing a... Resolved
is duplicated by MC-25284 Sword - Fence Resolved
is duplicated by MC-25546 Fences + Anything Resolved
is duplicated by MC-25794 Right Click with Steak on Fence resul... Resolved
is duplicated by MC-25969 Right-Clicking on a fence causes the ... Resolved
is duplicated by MC-26670 right click on fence post with food n... Resolved
is duplicated by MC-26822 Right clicking in Nether Fence and Fe... Resolved
is duplicated by MC-26850 Right clicking on fences makes you pu... Resolved
is duplicated by MC-26936 Weird action when right clicking on f... Resolved
is duplicated by MC-27903 Water cannot be placed on fences (cli... Resolved
is duplicated by MC-28417 Can't drink potions whilist looking a... Resolved
is duplicated by MC-28428 Eating vs Fence Resolved
is duplicated by MC-33452 Right-clicking on a fence with a swor... Resolved
is duplicated by MC-36297 Fence Bug Resolved
is duplicated by MC-43094 Can't eat while aimed at fences Resolved
is duplicated by MC-45594 Wrong action with sword Resolved
is duplicated by MC-45647 lava invisible over wodden fence Resolved
is duplicated by MC-46353 palcing blockes on iron doors require... Resolved
is duplicated by MC-49711 Swords are Buggy Resolved
is duplicated by MC-50078 Cant eat while facing fence Resolved
is duplicated by MC-51275 Right-Clicking Fences Resolved
is duplicated by MC-53146 can't eat food while aiming on a fence Resolved
is duplicated by MC-54001 Right clicking fences with sword bug Resolved
is duplicated by MC-54573 the WATER!! Resolved
is duplicated by MC-56826 Arm moves when right mouse button is ... Resolved
is duplicated by MC-61673 Use animation plays superfluously whe... Resolved
is duplicated by MC-65046 Cannot use items when looking at a fence Resolved
is duplicated by MC-66536 fence + liquid glitch Resolved
is duplicated by MC-67012 Right Clicking Fence Makes "Open Ches... Resolved
is duplicated by MC-69604 If the cursor is looking at armor sta... Resolved
is duplicated by MC-71816 Netherbrick Fences are rightclickable Resolved
is duplicated by MC-73569 You can "hit" fences by right clicking Resolved
is duplicated by MC-76956 cant eat or drink while face fence. Resolved
is duplicated by MC-77885 Right-click fence with a sword making... Resolved
is duplicated by MC-79781 Bows Used Incorrectly On Fences Resolved
is duplicated by MC-86451 Right click with any fence uses with ... Resolved
is duplicated by MC-87610 Food is not consumed when aiming at f... Resolved
is duplicated by MC-92209 Items with right-click functionality ... Resolved
is duplicated by MC-94853 Right clicking fences with different ... Resolved
is duplicated by MC-3413 Hoe on cauldron bug Resolved
Relates
relates to MC-21433 Fences Are Interactive Blocks Resolved
relates to MC-83998 Unable to place blocks on fences from... Resolved
relates to MC-114718 Right clicking cake with empty main h... Open
relates to MCPE-117305 When hovering over some blocks, it is... Open
relates to MCPE-19129 Can't use items while looking at iron... Reopened
relates to MC-59277 Unable to place signs on other signs ... Resolved
relates to MC-147549 Clicking on the bell from unringable ... Resolved
relates to MC-160894 Shovel swings when right-clicking on ... Resolved
relates to MC-161220 Right-clicking on a button while it's... Resolved
CHK:
Confirmation Status: Confirmed

 Description   

You can't eat while looking at an Iron Door.

Also affects all other right-click actions.

VERY annoying.


Code analysis by marcono1234 in this comment



 Comments   
Comment by Mark Jeronimus [ 02/Nov/16 ]

I'm on single player. Computer is completely idle, no lag, and it's 100% repeatable.

[edit] Tried it again in a brand new world. Same thing.

[edit2] Ok it has nothing to do with fences

Comment by Fabian Röling [ 02/Nov/16 ]

That's just lag and not specific to the current snapshot. I've seen the same in a video in 1.7.10. You are probably on a server. If you press tab (or whatever key you have for the player list), you see a network connection indicator that's not completely green. If you are in singleplayer, then you should look for lag sources on your internal server (permanently running machines, entities, etc.).

Comment by Mark Jeronimus [ 02/Nov/16 ]

The fix causes weird behavior in 16w43a.

Instead of eating like normal, eating takes 3 times as long as normal. The eating animation stops after the normal lenfth, but the sound and particles continue. After this 3 times longer period, one food item is consumed and it's hunger and saturation applied once.

Comment by NightSky64 [ 29/Oct/16 ]

True.

Comment by user-f2760 (Inactive) [ 29/Oct/16 ]

It's already fixed (and there was no reason for them to be interactable blocks).

Comment by NightSky64 [ 29/Oct/16 ]

You know you can just left shift while looking at iron doors in order to use items.

Comment by [Mod] Neko [ 17/Aug/16 ]

Find an alternative. You can use a piston and a fence instead of an iron door.

Comment by Ben Mintz [ 17/Aug/16 ]

noooo! this breaks AFK fish farms!

Comment by Francielly [ 07/Jun/16 ]

Confirmed for 1.10-pre1

Comment by [Mod] Asteraoth [ 22/May/16 ]

Confirmed for 16w20a

Comment by [Mod] Asteraoth [ 16/May/16 ]

Confirmed for 1.9.4

Comment by user-f2760 (Inactive) [ 20/Apr/16 ]

Reopened, and changing report to only take account of iron (trap)doors, as fences was resolved as intended by grum because they're intractable blocks, but iron (trap)doors don't know any form of interaction.

Comment by Marcono1234 [ 17/Apr/16 ]

Please link to this comment in the description

The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta. All method and class names are the names used in the decompiled version.

The reason why this happens is because the methods net.minecraft.block.BlockDoor.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, ItemStack, EnumFacing, float, float, float) and net.minecraft.block.BlockTrapDoor.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, ItemStack, EnumFacing, float, float, float) return true if the material is iron.

Comment by Marcono1234 [ 17/Apr/16 ]

Only iron doors and trapdoors are affected, for fences see MC-93651

Comment by KingSupernova [ 12/Feb/15 ]

Only fences were resolved as intended, nor doors or cauldrons.

Comment by KingSupernova [ 26/Jan/15 ]

I agree that this should be considered a bug. This behavior serves no purpose and really gets in the way.

Comment by branza [ 04/Jan/15 ]

Grum only said it's intended with fences, not with iron doors or cauldrons. It should at least be fixed for iron doors, which don't have any right click action.

Comment by Kumasasa [ 28/Dec/14 ]

grum commented in MC-21433

Indeed. Works as intended.

For feature suggestions or changes please see: Minecraft Suggestions on Reddit.

Comment by Mark Jeronimus [ 28/Dec/14 ]

I also think it should be re-opened.

Not being able to eat at a fence is clearly experienced as a bug.

Even if the fences etc are an interact-able block, there should be an exception in the code for eating. Period.

Comment by John Scott [ 17/Jun/14 ]

This also happens with Nether Brick Fence. Please add this to the bug report.

Comment by branza [ 08/Feb/14 ]

Grum said that the bug with fences is intended, but that's because leads can be attached to fences by right-clicking. Iron doors and cauldrons, on the other hand, don't have any right-click action, so I think this ticket should be reopened.

Comment by Kumasasa [ 06/Jul/13 ]

Working as intendend (See comment in MC-21433)

Comment by FireHunterX [ 30/May/13 ]

I did some work with Iron Doors myself, and I found this:

It is possible to retain the door functionality while doing away with the right-click actions.

It crashes quite often, but maybe I did something wrong.

If I can do it, Mojang definitely can do it.

Comment by FireHunterX [ 27/Mar/13 ]

Turns out that many other right-click actions don't work well with Iron doors.

Comment by Anon Ymus [ 23/Mar/13 ]

Confirmed in 1.5.1.

Comment by Daniel [ 13/Dec/12 ]

I guess it is because iron doors are handled as "doors" internally.
With wooden doors not eating/drinking/whatever makes sense because you right click the door to open it.
However since you can not open an iron door by right clicking it this should be changed for iron doors.

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