Bug Closed · Invalid

Consumable for items can't work.

#6466 opened by Unknown 1 year ago

Unknownreported this bug

Minecraft Version 1.21.1 Core Leaf Plugin Version 5.9.1

for this, like wiki

DRAN:
  Id: dragon_breath
  Model: 10000
  Display: '<#c127c1>D<#c04abd>R<#be6cb8>A<#bd8fb4>N'
  Lore:
    - '...'
  Consumable:
    ConsumeSeconds: 2
    HasParticles: false
    Animation: EAT
    Sound: item.honey_bottle.drink
    ConsumeEffects:
    - potion{type=strength;d=1200;level=2}
    - potion{type=resistance;d=1200;level=1}
    - potion{type=speed;d=1200;level=0}
  Food:
    Nutrition: 4
    Saturation: 8
    CanAlwaysEat: true
  Options:
    Glint: true
    FireResistant: true
    StackSize: 99
Unknowncommented

Loading Packs... s... 'DRAN'. Enable debugging for a stack trace. Groups...

Unknowncommented

According to the Minecraft.wiki page, the Consumable and food item component's weren't added until 1.21.2, so I'd assume that would be the minimum requirement to utilize them.

https://minecraft.wiki/w/Data_component_format

Solution: It's best to use 1.21.4 for a full feature complete list of data components added in the 1.21 updates.

Sign in to join the discussion.