// priority: 3900

onEvent('item.modification', event => {
	let colors = ["red", "yellow", "green", "blue", "magenta", "black"]
	colors.forEach(element => {
		event.modify('appliedenergistics2:' + element + '_paint_ball', item => {
			item.maxStackSize = 1
		})
	});

	event.modify('avaritia:cosmic_meatballs', item => {
		item.foodProperties = food => {
			food.hunger(400)
			food.saturation(0.5)
			food.meat(true)
			food.alwaysEdible(false)
			food.fastToEat(false)
			food.effect('speed', 600, 0, 1)
			food.effect('regeneration', 600, 1, 1)
			food.effect('resistance', 600, 1, 1)
			food.effect('fire_resistance', 600, 1, 1)
			food.effect('absorption', 600, 3, 1)
		}
	})

	event.modify('avaritia:ultimate_stew', item => {
		item.foodProperties = food => {
			food.hunger(800)
			food.saturation(0.75)
			food.meat(true)
			food.alwaysEdible(false)
			food.fastToEat(false)
			food.effect('speed', 600, 1, 1)
			food.effect('regeneration', 600, 2, 1)
			food.effect('resistance', 600, 1, 2)
			food.effect('fire_resistance', 600, 2, 1)
			food.effect('absorption', 600, 3, 1)
		}
	})

	// event.modify('avaritia:skullfire_sword', item => {
	// 	item.rarity = RARITY_UNCOMMON
	// })

	// event.modify('wstweaks:lava_blade', item => {
	// 	item.rarity = RARITY_UNCOMMON
	// })

	// event.modify('wstweaks:blaze_blade', item => {
	// 	item.rarity = RARITY_UNCOMMON
	// })

	// event.modify('projecte:dm_sword', item => {
	// 	item.rarity = RARITY_RARE
	// })

	// event.modify('projecte:rm_sword', item => {
	// 	item.rarity = RARITY_RARE
	// })

	// event.modify('projecte:rm_katar', item => {
	// 	item.rarity = RARITY_EPIC
	// })

	// event.modify('industrialforegoing:infinity_hammer', item => {
	// 	item.rarity = RARITY_EPIC
	// })
})