items with item lock component can be put into decorated pots
Partner Rank: 3
Verification Builds: 1.20.50-current
Regression Builds: been broken since the feature was implemented
Summary: items with item lock component can be put into decorated pots
Impact: means putting pots in worlds that use items with item lock become at risk of being soft locked
Repro Steps:
1. place a decorated pot
2. give yourself an item locked to your inventory or slot
/give @s iron_ingot 1 1 {"minecraft:item_lock":{"mode":"lock_in_inventory"}}
3. right click the pot
Repro Rate: 100%
Observed Results: The iron ingot is placed into the pot and you lose it
Expected Results: Similar to item frames and anything else, the iron ingot should not be placed into the pot
Screenshots/Videos attached: imagine a screenshot of a player looking at a pot and nothing in their hand.
Notes:
its likely item lock was just forgotten about when coding. we are using the following script to work around this so it isnt a huge deal but still a bug:
world.beforeEvents.itemUseOn.subscribe((event) => {
if (event.itemStack.lockMode === ItemLockMode.inventory || event.itemStack.lockMode === ItemLockMode.slot) {
if (event.block.permutation.matches("minecraft:decorated_pot")) {
event.cancel = true;
}
}
});