When a player is standing close to a container and there's a wall in between, like this:
The player can still access the items trough the inventory menu:
We need some way to detect if there's a wall between the container and the player. My idea is to use Helper.map_manager for this. When the player's itemdetector detects a container entering it's proximity, we ask the map manager to check if there is a block in the direction of the container. If there is, then we consider the container to be outside of proximity.
When a player is standing close to a container and there's a wall in between, like this:
The player can still access the items trough the inventory menu:
We need some way to detect if there's a wall between the container and the player. My idea is to use Helper.map_manager for this. When the player's itemdetector detects a container entering it's proximity, we ask the map manager to check if there is a block in the direction of the container. If there is, then we consider the container to be outside of proximity.