// priority: 0

function registerMinecraftItemModifications(event) {

	event.modify('minecraft:red_mushroom', item => {
		item.foodProperties = food => {
			food.hunger(2)
			food.saturation(1)
			food.effect('minecraft:nausea', 100, 1, 1)
		}
	})

	event.modify('minecraft:brown_mushroom', item => {
		item.foodProperties = food => {
			food.hunger(2)
			food.saturation(1)
		}
	})

	event.modify('minecraft:elytra', item => {
		item.maxDamage = 2046
	})
}