Files
TFG/kubejs/client_scripts/tooltips.js
Pyritie 6214f4b36b Feature/mv hv rework (#3270)
* Material stat rework tool (#3040)

* first push

* add hidden tag

* Update branch (#3125)

* Add Turbine Rotors (#13)

* first push

* add hidden tag

* Add Turbine Rotors

* fix capitalization

* Inconel 718 (#14)

* fixed typo in LV initial quest (#3055)

Signed-off-by: Eilandor <eilandor@ukr.net>

* add inconel and every recipes

* Add TiCl and Nerfs to energy (#3063)

---------

Signed-off-by: Eilandor <eilandor@ukr.net>
Co-authored-by: Eilandor <eilandor@ukr.net>

* small balance

* add all the materials for MoSiB

* add mo 50 re

* Add the fix with Forge Graddle I'm lost

* weird stuffs

---------

Signed-off-by: Eilandor <eilandor@ukr.net>
Co-authored-by: Eilandor <eilandor@ukr.net>

* Feature/material stats (#3136)

* Add Turbine Rotors (#13)

* first push

* add hidden tag

* Add Turbine Rotors

* fix capitalization

* Inconel 718 (#14)

* fixed typo in LV initial quest (#3055)

Signed-off-by: Eilandor <eilandor@ukr.net>

* add inconel and every recipes

* Add TiCl and Nerfs to energy (#3063)

---------

Signed-off-by: Eilandor <eilandor@ukr.net>
Co-authored-by: Eilandor <eilandor@ukr.net>

* small balance

* add all the materials for MoSiB

* add mo 50 re

* Add the fix with Forge Graddle I'm lost

* weird stuffs

* start adding sic

* fix cutter

* fix

* fix conflict

* fix names

---------

Signed-off-by: Eilandor <eilandor@ukr.net>
Co-authored-by: Eilandor <eilandor@ukr.net>

* add gt modern utilities

* Feature/mv hv rework (#3144)

* Finally all the tools are working

* plunger

* revert change on tool function

* fix numerous call

* no coffe yet

* Mv hv rework redstone fluid (reopened because git moment) (#3049)

* Redstone Etching Fluid

* region comments

* oops, acid might be acidic

* .customStill() for redstone tri p-toluenesulfonate

---------

Signed-off-by: TomPlop <tomdidome@gmail.com>
Co-authored-by: TomPlop <tomdidome@gmail.com>
Co-authored-by: Pyritie <pyritie@gmail.com>

* sillycon stuff

* rearranged material + modification files

* added missing mortars

* item tag models for tools

* add config for gtmutils

* change how electric tools are made, so it's based off flags

* Feature/mv hv rework (#3160)

* Finally all the tools are working

* plunger

* revert change on tool function

* fix numerous call

* no coffe yet

* trying to pin point the issue

* merge issue

* cast iron

* merge issue

* cast iron

* ok

* fix conflict

* some fast fix

* Kanthal Coil and swap PE to SR for circuits components

* small update to MV Chapter

* change colors of sterling silver and rose gold

* Add Ceramic Circuit board (#3163)

* Finally all the tools are working

* plunger

* revert change on tool function

* fix numerous call

* no coffe yet

* trying to pin point the issue

* merge issue

* cast iron

* merge issue

* cast iron

* ok

* fix conflict

* some fast fix

* Kanthal Coil and swap PE to SR for circuits components

* small update to MV Chapter

* add ceramic circuit board sic

* add quartz crucible

* stuff

* mostly done with recipes for boules

* Solders to mv hv rework (#3168)

* Add new solders

* Refactor circuit recipes

* Use GT Thallium

* Clarify no tin alternative in ZPM

* Remaining assembly line recipes

* Make processes more interestinger

* Add dusty lorandite

* lang

* Hide higher tier solder

* Fix merge weirdness

---------

Co-authored-by: Xikaro <os.valerievich@yandex.ru>

* Feature/mv hv rework (#3171)

* Finally all the tools are working

* plunger

* revert change on tool function

* fix numerous call

* no coffe yet

* trying to pin point the issue

* merge issue

* cast iron

* merge issue

* cast iron

* ok

* fix conflict

* some fast fix

* Kanthal Coil and swap PE to SR for circuits components

* small update to MV Chapter

* add ceramic circuit board sic

* Add a whole lot

* fix

* enable mo_si_b

* casing change

* it can't require kanthal coils to cook if it's a kanthal coil ingredient

* recipes + boule texture

* more stuff for the boule-inator

* fix circuits/change gas fuel for non renewable Reformate/fix gem slurries

* change reformate

* add tag to lens

* tags for precision fab

* fix boule tags, formatting

* tweak coils a little, more to come

* Add Artisan Table recipes and MV Chapter rework (#3216)

* add glass lens

* Artisan table and MV Chapter

* change rockets and space suits, add sic_sic and move stuffs around

* cleanroom more expensive/fix rods/fix ultimet/adding fluids

* add desh tempered for HV coils

* fix cleanroom

* lower cleanroom cost

* Add Mo50Re to the rocket engine

* Change Desh and Armacolite

* nichrome coil stuff

* make ore proc use more water

* perlite to distilled

* add alloy smelter recipe for rubber using sulfur power as well

* fix typo

* Change to rutile

* etching fluids

* Fix a lot of stuffs (#3234)

* lots

* change circuit board

* Remove that one that isn't necessary

* Des trucs

* That was hard to fix

* More quests stuffs

* Add MoSiB Line

* fix

* oups

* class artisan table

* Add Rocket Insulation T1

* Adding SiC SiC

* Add Rocket Insulation T1 (#3247)

* Add Rocket Insulation T1

* Adding SiC SiC

* Fix for Fluid Pipes

* Fluid pipe rework stat to be determined yet

* Prepare the field for removing item pipes

* removed some random pipes to test

* Add SiC Rotors and some changes to Material Stats

* fix no damage on tool

* buff materials damage by 2

* Buff tools

* Hide plastic soft hammer

* remove plunger too

* remove the transition item

* remove useless tag and add some langfile

* SiC SiC and many small things - buff tools (#3253)

* Add SiC Rotors and some changes to Material Stats

* fix no damage on tool

* buff materials damage by 2

* Buff tools

* Hide plastic soft hammer

* remove plunger too

* remove the transition item

* remove useless tag and add some langfile

* more langfile

* Add MV Quests

* new langfile for HV

* new quests

* fix quests

* fix the board lang

* Lots of quests stuffs (#3258)

* Add MV Quests

* new langfile for HV

* new quests

* fix quests

* fix the board lang

* Add fluids and fix circuits

* fix circuit boards

* water boiler

* Small changes to exotic materials

* diamond tipped tools

* diamond tipped tools - lang part 1

* remove quartz crucible to core

* Finish GTModern Utilities Integration for now

* Allow the ability to craft the inert furnace

* add some quest fix

* cleanup material files

* fix merge conflict

---------

Signed-off-by: Eilandor <eilandor@ukr.net>
Signed-off-by: TomPlop <tomdidome@gmail.com>
Co-authored-by: TomPlop <tomdidome@gmail.com>
Co-authored-by: Mqrius <Nuntius.Marii@Gmail.com>
Co-authored-by: Eilandor <eilandor@ukr.net>
Co-authored-by: Xtrial-01 <fenek.pantofelek@gmail.com>
Co-authored-by: Spicy Noodles <93035068+SpicyNoodle5@users.noreply.github.com>
Co-authored-by: Xikaro <os.valerievich@yandex.ru>
Co-authored-by: Redeix <brayden.j.m.ford@gmail.com>
2026-03-05 22:27:44 +00:00

556 lines
28 KiB
JavaScript

"use strict";
/**
* @param {Internal.ItemTooltipEventJS} event
*/
const registerTooltips = (event) => {
//Your IDE may say that "item" and "advanced" are never used, but they are required! So dont remove them <3
event.addAdvanced(['minecraft:name_tag'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.nametag'))
})
event.addAdvanced(['firmalife:bucket/yeast_starter'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.yeast_starter'))
})
event.addAdvanced(['firmalife:beehive'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.beehive'))
})
event.addAdvanced(['create:blaze_burner'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.blaze_burner'))
})
event.addAdvanced(['tfg:antipoison_pill'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.antipoison_pill'))
})
event.addAdvanced(['tfg:antipoison_tablet'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.antipoison_tablet'))
})
event.addAdvanced(['tfg:polycaprolactam_fabric'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.polycaprolactam'))
})
//#region Multiblock Controler Tooltip
event.addAdvanced(['tfg:electric_greenhouse'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.machine.electric_greenhouse_1'));
text.add(2, Text.translate('tfg.tooltip.machine.electric_greenhouse_2'));
text.add(3, Text.translate('tfg.tooltip.machine.customize_greenhouse'));
text.add(4, Text.translate('tfg.tooltip.machine.two_energy_hatches'));
})
event.addAdvanced(['tfg:growth_chamber'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.machine.growth_chamber_1'));
text.add(2, Text.translate('tfg.tooltip.machine.growth_chamber_2'));
text.add(3, Text.translate('tfg.tooltip.machine.two_energy_hatches'));
})
event.addAdvanced(['tfg:evaporation_tower'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.machine.evaporation_tower_1'));
text.add(2, Text.translate('tfg.tooltip.machine.evaporation_tower_2'));
text.add(3, Text.translate('tfg.tooltip.machine.two_energy_hatches'));
})
event.addAdvanced(['tfg:bioreactor'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.machine.bioreactor_1'));
text.add(2, Text.translate('tfg.tooltip.machine.bioreactor_2'));
text.add(3, Text.translate('tfg.tooltip.machine.two_energy_hatches'));
})
event.addAdvanced(['tfg:cooling_tower'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.machine.cooling_tower_1'));
text.add(2, Text.translate('tfg.tooltip.machine.cooling_tower_2'));
text.add(3, Text.translate('tfg.tooltip.machine.perfect_overclock'));
text.add(4, Text.translate('tfg.tooltip.machine.subtick'));
text.add(5, Text.translate('tfg.tooltip.machine.one_energy_hatch'));
})
event.addAdvanced(['gtceu:moon_dust_harvester'], (item, advanced, text) => {
text.add(1, Text.translate('gtceu.tooltip.machine.moon_dust_harvester_1'));
text.add(2, Text.translate('gtceu.tooltip.machine.moon_dust_harvester_2'));
text.add(3, Text.translate('tfg.tooltip.machine.coil_energy_discount'));
text.add(4, Text.translate('tfg.tooltip.machine.two_energy_hatches'));
})
event.addAdvanced(['gtceu:ostrum_harvester'], (item, advanced, text) => {
text.add(1, Text.translate('gtceu.tooltip.machine.ostrum_harvester_1'));
text.add(2, Text.translate('gtceu.tooltip.machine.ostrum_harvester_2'));
text.add(3, Text.translate('tfg.tooltip.machine.coil_energy_discount'));
text.add(4, Text.translate('tfg.tooltip.machine.two_energy_hatches'));
})
event.addAdvanced(['tfg:ostrum_linear_accelerator'], (item, advanced, text) => {
text.add(1, Text.translate('gtceu.tooltip.machine.ostrum_linear_accelerator_1'));
text.add(2, Text.translate('gtceu.tooltip.machine.ostrum_linear_accelerator_2'));
text.add(3, Text.translate('gtceu.tooltip.machine.ostrum_linear_accelerator_3'));
text.add(4, Text.translate('tfg.tooltip.machine.two_energy_hatches'));
})
event.addAdvanced(['gtceu:heat_exchanger'], (item, advanced, text) => {
text.add(1, Text.translate('gtceu.tooltip.machine.heat_exchanger_1'));
text.add(2, Text.translate('gtceu.tooltip.machine.heat_exchanger_2'));
text.add(3, Text.translate('tfg.tooltip.machine.perfect_overclock'));
text.add(4, Text.translate('tfg.tooltip.machine.subtick'));
text.add(5, Text.translate('tfg.tooltip.machine.one_energy_hatch'));
})
event.addAdvanced(['gtceu:nuclear_fuel_factory'], (item, advanced, text) => {
text.add(1, Text.translate('gtceu.tooltip.machine.nuclear_fuel_factory_1'));
text.add(2, Text.translate('gtceu.tooltip.machine.nuclear_fuel_factory_2'));
text.add(3, Text.translate('tfg.tooltip.machine.coil_speed_discount'));
text.add(4, Text.translate('tfg.tooltip.machine.one_energy_hatch'));
})
event.addAdvanced(['tfg:steam_bloomery'], (item, advanced, text) => {
text.add(1, Text.translate('gtceu.tooltip.machine.steam_bloomery_1'));
text.add(2, Text.translate('gtceu.tooltip.machine.steam_bloomery_2'));
text.add(3, Text.translate('gtceu.tooltip.machine.steam_bloomery_3'));
text.add(4, Text.translate('gtceu.tooltip.machine.steam_parallel'));
})
event.addAdvanced(['tfg:steam_thermal_centrifuge'], (item, advanced, text) => {
text.add(1, Text.translate('gtceu.machine.lv_thermal_centrifuge.tooltip'));
text.add(2, Text.translate('gtceu.tooltip.machine.steam_parallel'));
})
event.addAdvanced(['tfg:steam_fuser'], (item, advanced, text) => {
text.add(1, Text.translate('gtceu.machine.hp_steam_alloy_smelter.tooltip'));
text.add(2, Text.translate('gtceu.tooltip.machine.steam_parallel'));
})
event.addAdvanced(['tfg:steam_squasher'], (item, advanced, text) => {
text.add(1, Text.translate('gtceu.machine.hp_steam_compressor.tooltip'));
text.add(2, Text.translate('gtceu.tooltip.machine.steam_parallel'));
})
event.addAdvanced(['tfg:steam_presser'], (item, advanced, text) => {
text.add(1, Text.translate('gtceu.machine.hp_steam_forge_hammer.tooltip'));
text.add(2, Text.translate('gtceu.tooltip.machine.steam_parallel'));
})
event.addAdvanced(['gtceu:large_chemical_reactor'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.machine.perfect_overclock'));
text.add(2, Text.translate('tfg.tooltip.machine.subtick'));
})
event.addAdvanced(['gtceu:coal_liquefaction_tower'], (item, advanced, text) => {
text.add(1, Text.translate('gtceu.tooltip.machine.coal_liquefaction_tower_1'));
text.add(2, Text.translate('gtceu.tooltip.machine.coal_liquefaction_tower_2'));
text.add(3, Text.translate('tfg.tooltip.machine.coil_speed_discount'));
text.add(4, Text.translate('tfg.tooltip.machine.two_energy_hatches'));
})
event.addAdvanced(['tfg:hydroponics_facility'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.machine.hydroponics_facility_1'));
text.add(2, Text.translate('tfg.tooltip.machine.hydroponics_facility_2'));
text.add(3, Text.translate('tfg.tooltip.machine.parallel'));
text.add(4, Text.translate('tfg.tooltip.machine.two_energy_hatches'));
})
event.addAdvanced(['tfg:pisciculture_fishery'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.machine.pisciculture_fishery_1'));
text.add(2, Text.translate('tfg.tooltip.machine.pisciculture_fishery_2'));
text.add(3, Text.translate('tfg.tooltip.machine.parallel'));
text.add(4, Text.translate('tfg.tooltip.machine.two_energy_hatches'));
})
event.addAdvanced(['tfg:smr_generator'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.machine.smt_1'));
text.add(2, Text.translate('tfg.tooltip.machine.smt_2'));
text.add(3, Text.translate('tfg.tooltip.machine.smt_3'));
})
event.addAdvanced(['tfg:high_temp_precision_fabricator'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.machine.high_temp_precision_fabricator_1'));
text.add(2, Text.translate('tfg.tooltip.machine.high_temp_precision_fabricator_2'));
text.add(3, Text.translate('gtceu.machine.electric_blast_furnace.tooltip.0'));
text.add(4, Text.translate('gtceu.machine.electric_blast_furnace.tooltip.1'));
text.add(5, Text.translate('gtceu.machine.electric_blast_furnace.tooltip.2'));
text.add(6, Text.translate('tfg.tooltip.machine.two_energy_hatches'));
})
event.addAdvanced(['deafission:fission_reactor_mk1'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.machine.fission_reactor_mk1_1'));
text.add(2, Text.translate('tfg.tooltip.machine.fission_reactor_mk1_2'));
})
event.addAdvanced(['deafission:fission_reactor_smr1'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.machine.small_fission_reactor_mk1_1'));
text.add(2, Text.translate('tfg.tooltip.machine.small_fission_reactor_mk1_2'));
})
event.addAdvanced(['tfg:nuclear_turbine'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.component.nuclear_turbine_1"));
text.add(2, Text.translate("tfg.tooltip.component.nuclear_turbine_2"));
})
event.addAdvanced(['tfg:heat_battery_mk1'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.machine.heat_battery_1'));
text.add(2, Text.translate('tfg.tooltip.machine.heat_battery_2'));
text.add(3, Text.translate('tfg.tooltip.machine.heat_battery_3'));
})
//#endregion
event.addAdvanced(['tfg:grow_light'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.grow_light_disapointment'));
})
event.addAdvanced(['tfg:rotten_voiding_cover'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.rotten_voiding_cover'));
})
event.addAdvanced(['firmalife:climate_station'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.firmalife_greenhouse.oxygen_required.block'));
})
event.addAdvanced(['firmalife:large_planter'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.firmalife_greenhouse.oxygen_required.block'));
})
event.addAdvanced(['firmalife:quad_planter'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.firmalife_greenhouse.oxygen_required.block'));
})
event.addAdvanced(['firmalife:hydroponic_planter'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.firmalife_greenhouse.oxygen_required.block'));
})
event.addAdvanced(['firmalife:bonsai_planter'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.firmalife_greenhouse.oxygen_required.block'));
})
event.addAdvanced(['firmalife:hanging_planter'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.firmalife_greenhouse.oxygen_required.block'));
})
event.addAdvanced(['firmalife:trellis_planter'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.firmalife_greenhouse.oxygen_required.block'));
})
// Hot or not containers
event.addAdvanced(['#tfg:insulating_container'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.hotornot_container"))
})
// Do these in reverse order so the hot one appears on top
event.addAdvanced(['#tfg:floating_protection_equipment'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.hotornot_floating_equipment"))
})
event.addAdvanced(['#tfg:cold_protection_equipment'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.hotornot_cold_equipment"))
})
event.addAdvanced(['#tfg:hot_protection_equipment'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.hotornot_hot_equipment"))
})
// Insulation
event.addAdvanced(['create:copper_diving_helmet', 'create:copper_backtank', 'create:copper_diving_boots'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.armor.copper_diving_suit_warmth'));
text.add(2, Text.translate('tfg.tooltip.armor.copper_diving_suit_insulation'));
})
event.addAdvanced(['create:netherite_diving_helmet', 'create:netherite_backtank', 'create:netherite_diving_boots', 'minecraft:netherite_leggings', 'minecraft:netherite_boots'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.armor.netherite_diving_suit_warmth'));
text.add(2, Text.translate('tfg.tooltip.armor.netherite_diving_suit_insulation'));
text.add(3, Text.translate('tfg.tooltip.armor.netherite_diving_suit_set'));
})
event.addAdvanced(['gtceu:nanomuscle_helmet', 'gtceu:nanomuscle_chestplate', 'gtceu:nanomuscle_leggings', 'gtceu:nanomuscle_boots', 'gtceu:advanced_nanomuscle_chestplate'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.armor.nanomuscle_warmth'));
text.add(2, Text.translate('tfg.tooltip.armor.nanomuscle_insulation'));
text.add(3, Text.translate('tfg.tooltip.armor.nanomuscle_set'));
if (item === 'gtceu:nanomuscle_leggings') {
text.add(4, Text.translate('tfg.tooltip.armor.nanomuscle_legs_buff'));
}
})
event.addAdvanced(['gtceu:quarktech_helmet', 'gtceu:quarktech_chestplate', 'gtceu:quarktech_leggings', 'gtceu:quarktech_boots', 'gtceu:advanced_quarktech_chestplate'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.armor.quarktech_warmth'));
text.add(2, Text.translate('tfg.tooltip.armor.quarktech_insulation'));
text.add(3, Text.translate('tfg.tooltip.armor.quarktech_set'));
})
event.addAdvanced([
'ad_astra:space_helmet', 'ad_astra:space_suit', 'ad_astra:space_pants', 'ad_astra:space_boots',
'ad_astra:netherite_space_helmet', 'ad_astra:netherite_space_suit', 'ad_astra:netherite_space_pants', 'ad_astra:netherite_space_boots',
'ad_astra:jet_suit_helmet', 'ad_astra:jet_suit', 'ad_astra:jet_suit_pants', 'ad_astra:jet_suit_boots'
], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.armor.space_suit_warmth'));
text.add(2, Text.translate('tfg.tooltip.armor.space_suit_insulation'));
text.add(3, Text.translate('tfg.tooltip.armor.space_suit_set'));
})
// Supports
global.TFC_WOOD_TYPES.forEach(wood => {
event.addAdvanced([`tfc:wood/support/${wood}`], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.support.tier1'))
})
})
global.AFC_WOOD_TYPES.forEach(wood => {
event.addAdvanced([`afc:wood/support/${wood}`], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.support.tier1'))
})
})
global.AD_ASTRA_WOOD.forEach(wood => {
event.addAdvanced([`tfg:${wood.name}_support`], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.support.tier1'))
})
})
event.addAdvanced(['tfg:light_concrete_support', 'tfg:dark_concrete_support', 'tfg:rebar_support'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.support.tier2'))
})
event.addAdvanced(['tfg:reinforced_light_concrete_support', 'tfg:reinforced_dark_concrete_support', 'tfg:steel_support'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.support.tier3'))
})
const other_stone = ['migmatite', 'pyroxenite', 'travertine', 'keratophyre', 'anorthosite', 'norite', 'argillite', 'trachyte', 'komatiite', 'phonolite', 'permafrost', 'red_granite', 'stone']
const stone_types = global.TFC_STONE_TYPES.concat(other_stone)
stone_types.forEach(stone => {
event.addAdvanced([`tfg:${stone}_support`], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.support.tier1'))
})
})
// Solar Panel
event.addAdvanced(['ad_astra:solar_panel'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.solar_panel.single'))
})
event.addAdvanced(['gtceu:large_solar_panel'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.solar_panel.large_tier1'))
})
event.addAdvanced(['gtceu:large_solar_panel_tier2'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.solar_panel.large_tier2'))
})
event.addAdvanced(['gtceu:large_solar_panel_tier3'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.solar_panel.large_tier3'));
text.add(2, Text.translate('tfg.tooltip.machine.parallel'))
})
// Mars Animals
event.addAdvanced(['species:petrified_egg'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.petrified_egg'))
})
event.addAdvanced(['tfg:sniffer_egg'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.attribution.sniffer'));
text.add(2, Text.translate('tfg.tooltip.large_egg'))
})
event.addAdvanced(['tfg:wraptor_egg'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.attribution.wraptor'));
text.add(2, Text.translate('tfg.tooltip.large_egg'))
})
event.addAdvanced(['tfg:sniffer_wool'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.sniffer_wool'))
})
event.addAdvanced(['tfg:wraptor_wool'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.wraptor_wool'))
})
event.addAdvanced(['tfg:wraptor_sugar'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.wraptor_sugar'))
})
// Temperature changing foods
event.addAdvanced(['#tfg:cooling_foods'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.cooling_foods'))
})
event.addAdvanced(['#tfg:cooling_foods_strong'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.cooling_foods_strong'))
})
event.addAdvanced(['#tfg:warming_foods'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.warming_foods'))
})
// Greate tooltips on Create things
event.addAdvanced(['create:water_wheel'], (item, advanced, text) => {
text.add(1, Text.translate("greate.tooltip.max_capacity").append(Text.translate("tfg.greate.uls_limit")))
})
event.addAdvanced(['create:large_water_wheel', 'create:windmill_bearing'], (item, advanced, text) => {
text.add(1, Text.translate("greate.tooltip.max_capacity").append(Text.translate("tfg.greate.ls_limit")))
})
// Fluid + item containers
global.LAB_EQUIPMENT_CONTAINERS.forEach(container => {
event.addAdvanced([`tfg:${container.type}`], (item, advanced, text) => {
text.add(1, Text.translate('gtceu.universal.tooltip.fluid_storage_capacity', `${container.capacity}`))
})
})
event.addAdvanced(['#firmalife:big_barrels'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.item_storage_capacity", "36"))
text.add(2, Text.translate("gtceu.universal.tooltip.fluid_storage_capacity", "80,000"))
})
event.addAdvanced(['create:fluid_tank', 'create_connected:fluid_vessel'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.fluid_storage_capacity", "16,000"))
})
event.addAdvanced(['#tfc:barrels'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.fluid_storage_capacity", "10,000"))
})
event.addAdvanced(['tfc:crucible'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.fluid_storage_capacity", "4,608"))
})
event.addAdvanced(['#tfc:fired_vessels'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.fluid_storage_capacity", "3,024"))
text.add(2, Text.translate("tfg.tooltip.vessel_warning"))
})
event.addAdvanced(['waterflasks:iron_flask', 'waterflasks:red_steel_flask'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.fluid_storage_capacity", "2,000"))
})
event.addAdvanced(['tfc:wooden_bucket', 'firmalife:mixing_bowl'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.fluid_storage_capacity", "1,000"))
})
event.addAdvanced(['waterflasks:leather_flask','tfc:silica_glass_bottle'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.fluid_storage_capacity", "500"))
})
event.addAdvanced(['tfc:hematitic_glass_bottle', 'tfc:volcanic_glass_bottle', 'tfc:olivine_glass_bottle'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.fluid_storage_capacity", "400"))
})
event.addAdvanced(['#tfc:lamps'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.fluid_storage_capacity", "250"))
})
event.addAdvanced(['tfc:ceramic/jug', 'firmalife:hollow_shell'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.fluid_storage_capacity", "100"))
})
event.addAdvanced(['#tfcastikorcarts:supply_cart'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.item_storage_capacity", "54"))
})
event.addAdvanced(['framedblocks:framed_chest'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.item_storage_capacity", "27"))
})
event.addAdvanced(['create:item_vault', 'create_connected:item_silo'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.item_storage_capacity", "20"))
})
event.addAdvanced(['#forge:chests/wooden'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.item_storage_capacity", "18"))
})
event.addAdvanced(['#tfc:fired_large_vessels'], (item, advanced, text) => {
text.add(1, Text.translate("gtceu.universal.tooltip.item_storage_capacity", "9"))
})
//#region Nuclear Fission Tooltips
event.addAdvanced(['minecraft:blue_ice'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.component.blue_ice"))
})
event.addAdvanced(['tfg:glacian_wool_frame'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.component.glacian_fur"))
})
event.addAdvanced(['tfg:aes_insulation_frame'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.component.aes_insulation_frame"))
})
event.addAdvanced(['tfg:moderate_core_frame'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.component.moderate_core_frame"))
})
event.addAdvanced(['tfg:impure_moderate_core_frame'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.component.impure_moderate_core_frame"))
})
event.addAdvanced(['tfg:dry_ice'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.component.dry_ice"))
})
event.addAdvanced(['tfg:refrigerant_pellet'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.component.refrigerant_pellet"))
})
event.addAdvanced(['tfg:terrafirmaguard_pa6'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.component.refrigerant_pellet"))
})
event.addAdvanced(['tfg:copper_sandy_frame'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.component.sandy_copper_frame"))
})
event.addAdvanced(['tfg:beryllium_sandy_frame'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.component.sandy_beryllium_frame"))
})
event.addAdvanced(['tfg:uv_smr_fluid_import_hatch'], (item, advanced, text) => {
text.add(1, Text.translate("tfg.tooltip.machine.smr_fluid_import_hatch"))
})
//#endregion
event.addAdvanced(['tfg:food/slice_of_cheese'], (item, advanced, text) => {
if (!event.isShift()) {
text.add(1, Text.translate("tfg.tooltip.fake_nutrition_info_listener"))
} else {
text.add(1, Text.translate("tfg.tooltip.fake_nutrition_info"));
text.add(2, Text.translate("tfg.tooltip.cheese_slice_microplastics"))
};
});
//#endregion
// AE2
event.addAdvanced(['tfg:wireless_card'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.wireless_card_1'));
text.add(2, Text.translate('tfg.tooltip.wireless_card_2'));
text.add(3, Text.translate('tfg.tooltip.wireless_card_3'));
})
// Deprecated Items
event.addAdvanced(['vintageimprovements:lathe', 'ae2:fe_p2p_tunnel'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.obsolete.depreciated'))
})
// Drink effects
event.addAdvanced(['tfc_gourmet:kvass_bucket'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.cooling_foods'));
})
event.addAdvanced(['tfc_gourmet:lemonade_bucket'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.cooling_foods'));
})
event.addAdvanced(['tfc_gourmet:coffee_bucket'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.warming_foods'));
})
event.addAdvanced(['tfc_gourmet:cocoa_bucket'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.warming_foods'));
})
event.addAdvanced(['tfc_gourmet:tea_mint_bucket'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.warming_foods'));
})
event.addAdvanced(['tfc_gourmet:tea_chamomile_bucket'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.warming_foods'));
})
event.addAdvanced(['tfc_gourmet:tea_nettle_bucket'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.warming_foods'));
})
event.addAdvanced(['tfc_gourmet:tea_rosehip_bucket'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.warming_foods'));
})
event.addAdvanced(['tfc_gourmet:nalivka_bucket'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.cooling_foods'));
})
event.addAdvanced(['tfc:bucket/spring_water'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.warming_foods'));
})
event.addAdvanced(['firmalife:bucket/red_wine'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.strength").append(Text.of(" (05:20)")).blue());
text.add(2, Text.translate("effect.minecraft.haste").append(Text.of(" (05:20)")).blue());
})
event.addAdvanced(['firmalife:bucket/rose_wine'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.strength").append(Text.of(" (05:20)")).blue());
text.add(2, Text.translate("effect.minecraft.dolphins_grace").append(Text.of(" (05:20)")).blue());
})
event.addAdvanced(['firmalife:bucket/white_wine'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.strength").append(Text.of(" (05:20)")).blue());
text.add(2, Text.translate("effect.species.wither_resistance").append(Text.of(" (05:20)")).blue());
})
event.addAdvanced(['firmalife:bucket/dessert_wine'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.strength").append(Text.of(" (05:20)")).blue());
text.add(2, Text.translate("effect.species.iron_will").append(Text.of(" (05:20)")).blue());
})
event.addAdvanced(['firmalife:bucket/sparkling_wine'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.strength").append(Text.of(" (05:20)")).blue());
text.add(2, Text.translate("effect.minecraft.jump_boost").append(Text.of(" II (05:20)")).blue());
})
event.addAdvanced(['gtceu:ice_bucket'], (item, advanced, text) => {
text.add(1, Text.translate('tfg.tooltip.cooling_foods'));
})
event.addAdvanced(['tfg:vintage_beer_bucket'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.absorption").append(Text.of(" III (08:00)")).blue());
})
event.addAdvanced(['tfg:vintage_cider_bucket'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.speed").append(Text.of(" II (08:00)")).blue());
})
event.addAdvanced(['tfg:vintage_rum_bucket'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.speed").append(Text.of(" III (04:00)")).blue());
})
event.addAdvanced(['tfg:vintage_mead_bucket'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.regeneration").append(Text.of(" II (08:00)")).blue());
})
event.addAdvanced(['tfg:vintage_sake_bucket'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.resistance").append(Text.of(" II (08:00)")).blue());
})
event.addAdvanced(['tfg:vintage_vodka_bucket'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.resistance").append(Text.of(" III (04:00)")).blue());
})
event.addAdvanced(['tfg:vintage_whiskey_bucket'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.haste").append(Text.of(" III (04:00)")).blue());
})
event.addAdvanced(['tfg:vintage_corn_whiskey_bucket'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.haste").append(Text.of(" II (08:00)")).blue());
})
event.addAdvanced(['tfg:vintage_rye_whiskey_bucket'], (item, advanced, text) => {
text.add(1, Text.translate("effect.minecraft.haste").append(Text.of(" II (08:00)")).blue());
})
// Saw can silk harvest ice
//This kinda sucks, but it works. We're basically getting the default "silk_ice" harvesting tooltip, getting the index, then removing it.
//Then, we insert on that index our custom tooltip that tells the player it harvests ALL ice blocks
event.addAdvanced(['#tfg:silk_harvest_ice'], (item, advanced, text) => {
const sculptorKey = "item.gtceu.tool.behavior.silk_ice";
let keyToRemove = text.find(tip => tip.toString().indexOf(sculptorKey) != -1);
let indexOf = text.findIndex(tip => tip.toString().indexOf(sculptorKey) != -1);
if(indexOf != -1)
{
text.remove(keyToRemove);
text.add(indexOf, Text.translate("tfg.tooltip.tool_behaviour.silk_ice"));
}
})
}