Jimmy_The_Knight
Well-known member
- Joined
- Dec 28, 2020
- Messages
- 73
- Reaction score
- 32
I know that you can use the 'cancel event' action for this, but the right-click event sometimes ignores it and opens the chest for the player anyways.
This is because you most likely used If Player: Is Looking At Block or something similar that get's the player's current target block. To make them completely inaccessible, you need to use If Game: Event Block Equals [ (blocks, in this case, a chest) ] or If Var: Equals [ Game Value: Event Block Location, (locations of the chests you want to prevent players from opening) ] to get the player's target block location at the event.but the right-click event sometimes ignores it and opens the chest for the player anyways.
This is because you most likely used If Player: Is Looking At Block or something similar that get's the player's current target block. To make them completely inaccessible, you need to use If Game: Event Block Equals [ (blocks, in this case, a chest) ] or If Var: Equals [ Game Value: Event Block Location, (locations of the chests you want to prevent players from opening) ] to get the player's target block location at the event.but the right-click event sometimes ignores it and opens the chest for the player anyways.
This is exactly what I was looking for, thanks so much!This is because you most likely used If Player: Is Looking At Block or something similar that get's the player's current target block. To make them completely inaccessible, you need to use If Game: Event Block Equals [ (blocks, in this case, a chest) ] or If Var: Equals [ Game Value: Event Block Location, (locations of the chests you want to prevent players from opening) ] to get the player's target block location at the event.
Perhaps. Something like a slime would most likely be better, because of its small (or customizable size) cube hitbox. Also, the entity would most likely be hidden inside the player's head, not at the block, to lower the entity count and just make development more efficient.Wanted to add that I saw on smutt's house "quantum physics simulator" if you right clicked on something that was supposed to react to one (door, fence gate, chest) it didn't open and shut really quickly. It never opened. It didn't even play a sound. Was this accomplished by hiding armor stands to block the right click or something?
oh that makes a lot of sence. Does the looking at block event still work through entities? If so it actually sounds like a really good way to stop players from flicking trapdoors they shouldn't be flicking.Perhaps. Something like a slime would most likely be better, because of its small (or customizable size) cube hitbox. Also, the entity would most likely be hidden inside the player's head, not at the block, to lower the entity count and just make development more efficient.