Files

27 lines
468 B
Go
Raw Permalink Normal View History

2026-07-09 08:33:57 +08:00
package item
import (
"github.com/df-mc/dragonfly/server/world"
)
// BeetrootSoup is an unstackable food item.
type BeetrootSoup struct {
defaultFood
}
// MaxCount ...
func (BeetrootSoup) MaxCount() int {
return 1
}
// Consume ...
func (BeetrootSoup) Consume(_ *world.Tx, c Consumer) Stack {
c.Saturate(6, 7.2)
return NewStack(Bowl{}, 1)
}
// EncodeItem ...
func (BeetrootSoup) EncodeItem() (name string, meta int16) {
return "minecraft:beetroot_soup", 0
}