mojira.dev

Bugsniffer

Assigned

No issues.

Reported

No issues.

Comments

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:

  1. Install the datapack provided

[media]
  1. 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]

  2. Right click this item

  3. Observe that even though the item gets refilled server-side by the datapack, it does not re-appear client-side