An inventory_changed advancement clearing a mouse held item in creative creates a ghost item
Steps to reproduce:
1. run the game on a server or in singleplayer (tested both)
2. Set up the following advancement:
inv_change.json
{
"criteria": {
"change": {
"trigger": "minecraft:inventory_changed"
}
},
"rewards": {
"function": "test:clear_item"
}
}
which runs:
clear_item.mcfunction
clear @s lime_terracotta
give @s lime_terracotta
advancement revoke @s only test:inv_change
3. in creative, take the lime terracotta with your mouse.
as clear works in adventure/survival, the item is cleared from your mouse,
however, you keep a ghost clone of the item, which can't be used placed etc.
2023-06-21, 01:34 PM
2023-12-30, 06:07 AM
2023-12-30, 06:07 AM
0
1
-