mojira.dev
MC-267380

Cannot open inventories beyond default block reach

Increase the block reach of a player and then attempting to open an inventory (chest, barrel, etc) from far away results in the screen showing for a split second before automatically closing

What I expected to happen was...:
The inventory should remain open.

What actually happened was...:
The inventory closes.

Steps to Reproduce:
1. Increase the block reach of the player with /attribute
2. Place a chest outside of the normal reach distance
3. Try to open it

Linked issues

Comments 4

This is the "close inventory when player moves too far away" part of the code, it doesn't take the attribute into account.

Additionally, a similar issue exists if you are riding a sufficiently scaled up horse or camel and try to open your inventory.

A command like 

/attribute @e[type=camel,limit=1,sort=nearest] minecraft:generic.scale base set 5

should work.

I'm not creating an issue for this because it seems relatively similar.

Jishuna

gegy

Confirmed

Platform

Important

Commands

23w51a, 23w51b

24w03a

Retrieved