//------------------------------------------------------------------------------------------------------------------------------------------------
// PA2 Extras - Tooltips
//------------------------------------------------------------------------------------------------------------------------------------------------
// Author: RicTheCoder
//
// Adds some tooltips to items in order to add extra explanation to them, as it is complicated to figure it out sometimes, also warns about
// potential bugs.
//------------------------------------------------------------------------------------------------------------------------------------------------

// Tooltips to add
// - The key is the Item ID, the value a single or array of tooltips to add
// - All kubejs normal things are supported, so Text.of will work.
const tooltipToItem = {
	"rftoolsdim:realized_dimension_tab": "§eYou can delete a dimension in the Dimension Editor, using a TNT",
	
	"rebornstorage:advanced_wireless_transmitter": "§cDoes not work with Infinity Range Booster, and it doesn't seem to work with Dimension Card either",
	"refinedstorage:white_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:orange_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:magenta_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:yellow_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:lime_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:pink_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:gray_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:light_gray_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:cyan_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:purple_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:blue_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:brown_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:green_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:red_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	"refinedstorage:black_controller": "§eIf you have issues with accessing RS from Wireless sources or others, try changing the controller to another chunk",
	
	"ironfurnaces:million_furnace": "§eWill smelt an entire stack in one go!"
}

//---[CODE]---------------------------------------------------------------------------------------------------------------------------------------

// The tooltip event
ItemEvents.tooltip(event => {
	Object.keys(tooltipToItem).forEach(item => {
		event.add(item, tooltipToItem[item]);
	})
});