make popped chorus fruit edible (#1722)

This commit is contained in:
programmer3481 2025-08-29 05:54:32 +09:00 committed by GitHub
parent d012ab3ba7
commit 9784879282
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,13 @@ function registerMinecraftItemModifications(event) {
}
})
event.modify('minecraft:popped_chorus_fruit', item => {
item.foodProperties = food => {
food.hunger(2)
food.saturation(1)
}
})
event.modify('minecraft:elytra', item => {
item.maxDamage = 2046
})