In this snapshot, with the addition of the food item component, which allows to detect right-clicks in a versatile and easy-to-implement way, this bug becomes more pressing. When re-filling a slot from an item that has been eaten, the item given using /item replace of /give is always a ghost item.
Steps to reproduce:
Install the datapack provided
[media]
Give yourself an item with /give @s minecraft:arrow[minecraft:food={"saturation_modifier":0,"nutrition":0,"can_always_eat":true,"eat_seconds":0.05},minecraft:max_stack_size=1]
Right click this item
Observe that even though the item gets refilled server-side by the datapack, it does not re-appear client-side
Can confirm in 24w12a
In this snapshot, with the addition of the food item component, which allows to detect right-clicks in a versatile and easy-to-implement way, this bug becomes more pressing. When re-filling a slot from an item that has been eaten, the item given using /item replace of /give is always a ghost item.
Steps to reproduce:
[media]Install the datapack provided
Give yourself an item with
/give @s minecraft:arrow[minecraft:food={"saturation_modifier":0,"nutrition":0,"can_always_eat":true,"eat_seconds":0.05},minecraft:max_stack_size=1]
Right click this item
Observe that even though the item gets refilled server-side by the datapack, it does not re-appear client-side