Hi, this is a pretty simple question i think but i was wondering if theres any methods to make it so food items like the example potion down below give you back a glass bottle upon consumption. I've been looking around for it for a bit now but i cant seem to find anything
StartupEvents.registry('item', event => { event.create("greater_luck_potion") .displayName('Greater Luck Potion') .maxStackSize(16) .rarity('uncommon') .glow(true) .useAnimation('drink') .food(food=>{ food .hunger(0) .saturation(0) .alwaysEdible() .effect('minecraft:luck', 180, 3, 1) }) })