mojira.dev
MC-268443

Adding vaults to guarded_by_piglins tag doesn't aggro them when the vault is opened by a player

Opening chests and other containers in the guarded_by_piglins block tag aggros them, but adding the vault to this tag doesn't make them treat players opening a vault as stealing from them. Inconsistent behavior.
P. S. Breaking the vault works, but opening it doesn't.

Attachments

Comments 6

Please attach a minimal setup data pack or share the commands you are using. As such, we have no repro of this issue.

attached tag file. When you break the vault the piglins react like they should, but opening it doesn't trigger their aggro.

Despite what one might think, #guarded_by_piglins has nothing to do with using/opening the block. Piglins will always be angered by opening chests/barrels/..., no matter whether chests/barrels/... are considered #guarded_by_piglins or not. Therefore this is really the question of whether opening vaults should generally aggro piglins.

Are the containers opening which aggros piglins hardcoded?

Yes, exactly. #guarded_by_piglins is only responsible for aggroing piglins when destroying blocks.

Based on the previous comment, this behavior works as intended. If you want to leave feedback, please visit Minecraft Suggestions on Reddit or visit the Minecraft Feedback Discord server.

iNkoR_the_2nd

(Unassigned)

Confirmed

Data Packs

24w06a

Retrieved