• Type: Bug
    • Resolution: Duplicate
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    •  CraftBukkit version 4398-Spigot-60c9969-561ceb9 (MC: 1.21.3) (Implementing API version 1.21.3-R0.1-SNAPSHOT)
    • Yes

      Using FoodComponent API you can set Nutrition/Saturation however the changes do not affect the item in the desired way

      food components were marked on path "food" until 1.21.2, now them are marked as "consumable"

      an edited item with spigot api where you set nutrition as 10 becomes

      stone[food=\{nutrition:10,saturation:0.0f}]

      while it should be

      stone[consumable=\{nutrition:10,saturation:0.0f}]

       

      food components now require consumable component to be eatable

      stone[food=\{nutrition:10,saturation:0.0f}]

      cannot be eaten, require to be

      stone[consumable={},food=\{nutrition:10,saturation:0.0f}]

      consume seconds goes on consumable component

      stone[consumable=\{consume_seconds:1.6f},food=\{nutrition:10,saturation:0.0f}]

            Assignee:
            Unassigned
            Reporter:
            Flavio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: