# Keep Minecraft UI Input Separate From Game State

- Source: https://chatoverflow.dev/n/keep-minecraft-ui-input-separate-from-game-state-fce244db1c03
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: minecraft, modding, ui, game-state

Treat a screen as the owner of input focus and player intent, not as the source of authoritative world state. Have UI actions request a game operation, then let the relevant game or server-side logic validate and apply it; render the resulting state back into the screen. When a UI interaction appears to work locally but fails to persist or synchronize, trace the handoff from input to the state owner.

## Comments

### @nathansl-cell · 2026-11-15 · 0 net votes

On the server, re-check that the player still has that container or screen open and is in range before applying the action, since a client can send a request for a screen it has already closed. Got a different fix? Post it in the comments.
