Skip to content

Commit

Permalink
Merge pull request EnigmaticaModpacks#5423 from ZZZank/more_localization
Browse files Browse the repository at this point in the history
makes tooltips/descriptions localizable
  • Loading branch information
NielsPilgaard authored Nov 14, 2023
2 parents 684ef50 + ff1f030 commit dfc1391
Show file tree
Hide file tree
Showing 5 changed files with 274 additions and 307 deletions.
117 changes: 116 additions & 1 deletion kubejs/assets/enigmatica/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,120 @@
"bountiful.decree.witch.name": "Witch",
"bountiful.decree.druid.name": "Druid",

"tooltips.enigmatica.expert.disabled": "Disabled in Expert Mode.",
"tooltips.enigmatica.expert.soulpickaxe": "Capable of mining Iesnium.",
"tooltips.enigmatica.expert.seared_melter": "Use the Smeltery Controller instead.",
"tooltips.enigmatica.expert.apiary": "Crafting this will not return any bees contained in the ingredients.\nMake sure to remove them before crafting!",
"tooltips.enigmatica.expert.liquid_meat": "Liquid Meat can be obtained by \"processing\" cows.",
"tooltips.enigmatica.expert.pink_slime": "Pink Slime can be harvested from a Pink Wither using a Fluid Laser.",
"tooltips.enigmatica.expert.machinery_schematics": "Unlocks the ability to form the following structures:\n",
"tooltips.enigmatica.expert.medium_machinery_schematics": "- Automated Engineer's Workbench\n- Diesel Generator\n- Excavator\n- Fermenter\n- Metal Press\n- Mixer\n- Pumpjack\n- Refinery\n- Sawmill\n- Squeezer",
"tooltips.enigmatica.expert.heavy_machinery_schematics": "- Arc Furnace\n- Assembler\n- Coker Unit\n- Crusher\n- Distillation Tower\n- Lightning Rod\n- Sulfur Recovery Unit",
"tooltips.enigmatica.expert.some_assembly_required": "Some Assembly Required.",
"tooltips.enigmatica.expert.batteries_not_included": "Batteries Not Included.",
"tooltips.enigmatica.expert.": "",

"descriptions.enigmatica.expert.soulpickaxe": "Capable of mining Iesnium.",
"descriptions.enigmatica.expert.nebu_hammer": "Capable of breaking down Godblocks into Atum Artifacts.",
"descriptions.enigmatica.expert.apiary": "Crafting this will not return any bees contained in the ingredients - make sure to remove them before crafting!",
"descriptions.enigmatica.expert.small_storage_part": "Crafting is disabled in Expert, begin with the 16k Storage Part.",
"descriptions.enigmatica.expert.small_fluid_storage_part": "Crafting is disabled in Expert, begin with the 1024k Fluid Storage Part.",
"descriptions.enigmatica.expert.stage_unlock": "Obtaining this item for the first time automatically unlocks a Game Stage.\nIf the stage does not unlock or gets revoked, simply Right-Click this item in the air to re-gain it.",
"descriptions.enigmatica.expert.": "",

"descriptions.enigmatica.base.cheese_slice": "Obtained by right-clicking a Wheel of Cheese.",
"descriptions.enigmatica.base.ham": "Obtained by killing Pigs or Hoglins with a knife.",
"descriptions.enigmatica.base.stardust": "Obtained by left-clicking a Starmetal Ingot in-world with a Starmetal Cutting Tool. See the Astral Tome for more information.",
"descriptions.enigmatica.base.construction_paste": "Obtained by breaking a Dense Construction Block with a Pickaxe.",
"descriptions.enigmatica.base.uraninite": "Uraninite Ore has been removed and does not spawn naturally. To obtain Uraninite, use the Powah Energizing Orb recipe.",
"descriptions.enigmatica.base.blizz": "The Blizz spawns naturally in cold biomes. Mechanical Dirt and Nocturnal Powder work wonders for farming them.",
"descriptions.enigmatica.base.blitz": "The Blitz spawns naturally in warm, dry biomes. Mechanical Dirt and Nocturnal Powder work wonders for farming them.",
"descriptions.enigmatica.base.basalz": "The Basalz spawns naturally in barren biomes, such as Badlands. Mechanical Dirt and Nocturnal Powder work wonders for farming them.",
"descriptions.enigmatica.base.emerald_ice": "Found naturally in Ice Starfields in the End, it can also be created from water placed next to Ancient Emerald Ice.",
"descriptions.enigmatica.base.dense_emerald_ice": "Found naturally in Ice Starfields in the End, it can also be created from Emerald Ice placed next to Ancient Emerald Ice.",
"descriptions.enigmatica.base.ancient_emerald_ice": "Found naturally in Ice Starfields in the End, it can convert adjacent water blocks to Emerald Ice and those to Dense Emerald Ice.",
"descriptions.enigmatica.base.habanero": "A very rare drop from farming Peppers.",
"descriptions.enigmatica.base.fusion_reactor": "The Fusion Reactor has been nerfed quite heavily.\nIt produces 60k-250k rf/t passively, but has potential for far higher output when paired with one or multiple Steam Turbines.",
"descriptions.enigmatica.base.infinity_tools": "Nine Quintillion is big. Really big. You just won't believe how vastly hugely mind-bogglingly big it is.",
"descriptions.enigmatica.base.infinity_tools_2": "Unless you plan on sitting here for a few centuries, filling this tool isn't possible through conventional means. Some say the answer lies in Nucleosynthesis instead.",
"descriptions.enigmatica.base.brown_mushroom": "Plant a Brown Mushroom on Rich Soil in darkness to grow mushroom colonies, which may be broken for a nice yield.",
"descriptions.enigmatica.base.red_mushroom": "Plant a Red Mushroom on Rich Soil in darkness to grow mushroom colonies, which may be broken for a nice yield.",
"descriptions.enigmatica.base.integratedtunnels_energy": "Max Energy Transfer Rate has been limited to 65,536 FE per tick.",
"descriptions.enigmatica.base.integratedtunnels_fluid": "Max Fluid Transfer Rate has been limited to 65,536 mb per tick.",
"descriptions.enigmatica.base.nautilus_shell": "Obtained by killing Nautilus, found in Warm Oceans.\n \nAlso obtained from Embedded Ammonite, found at any Y level under Oceans and Beaches.",
"descriptions.enigmatica.base.twisted_sapling": "Obtained by tossing Saplings through a Nether Portal from the Overworld",
"descriptions.enigmatica.base.warpstone": "Obtained by tossing Clay Blocks through a Nether Portal from the Overworld",
"descriptions.enigmatica.base.warped_cactus": "Obtained by tossing Cactus through a Nether Portal from the Overworld",
"descriptions.enigmatica.base.warped_coral": "Obtained by tossing any coral through a Nether Portal from the Overworld",
"descriptions.enigmatica.base.chiseled_abyssaline_bricks": "May be Charged by Right-Clicking with a Heart of the Sea. Used to power Abyssaline blocks.",
"descriptions.enigmatica.base.abyssaline": "Powered by placing next to a Charged Chiseled Abyssaline Bricks. Power is transmitted through to other Abyssaline blocks.",
"descriptions.enigmatica.base.acacia_totem": "Right-Click with an Axe to change the face.",
"descriptions.enigmatica.base.silk_fiber": "Obtained by killing Silk Moths which are spawned by Silk Moth Nests.",
"descriptions.enigmatica.base.universal_coralstone": "Obtained by placing Coralstone next to living coral and waiting. Requires Silk Touch to harvest.",
"descriptions.enigmatica.base.coralstone": "Place next to living coral and wait for it to infuse.",
"descriptions.enigmatica.base.dead_coralstone": "Obtained by breaking infused Coralstone without Silk Touch.",
"descriptions.enigmatica.base.quark_crystal": "Will grow up to four blocks tall if placed deep underground. Will emit particles while growing.\n \nMay sprout Corundum Clusters as well.",
"descriptions.enigmatica.base.quark_crystal_cluster": "Grows occasionally on Corundum Blocks when grown underground.",
"descriptions.enigmatica.base.bottled_cloud": "Obtained by Right-Clicking a Glass Bottle in the air between Y Levels 126 and 132.",
"descriptions.enigmatica.base.overworld_aura_bottle": "Obtained by Right-Clicking a Bottle and Cork in the air in the Overworld or Atum. This action removes Aura from the area.\n \nCan be automated using a Dispenser.",
"descriptions.enigmatica.base.end_aura_bottle": "Obtained by Right-Clicking a Bottle and Cork in the air in the End or The Undergarden. This action removes Aura from the area.\n \nCan be automated using a Dispenser.",
"descriptions.enigmatica.base.nether_aura_bottle": "Obtained by Right-Clicking a Bottle and Cork in the air in the Nether. This action removes Aura from the area.\n \nCan be automated using a Dispenser.",
"descriptions.enigmatica.base.quark_root_item": "Drops occasionally when breaking Cave Roots.\n \nCave Roots may be crafted and grown just like Vines, though they require low light to grow.",
"descriptions.enigmatica.base.quark_root": "May be crafted and grown just like Vines, though they require low light to grow.",
"descriptions.enigmatica.base.phantoplasm": "Drops from the Bellringer. Craft a Haunted Bell to summon.",
"descriptions.enigmatica.base.mossy_tooth": "Drops from Swampjaw. Craft a Fossil Bait to summon.",
"descriptions.enigmatica.base.fortunes_favor": "Drops from Dame Fortuna. Craft a Devil's Ante to summon.",
"descriptions.enigmatica.base.ectoplasm": "Drops from Wraiths in the sandy wastes of Atum.",
"descriptions.enigmatica.base.firework_rocket": "Shapeless Crafting: One paper and at least one gunpowder.",
"descriptions.enigmatica.base.firework_rocket_2": "Adding more gunpowder increases the duration of the rocket.\nUp to three gunpowder or up to seven firework stars can be added.",
"descriptions.enigmatica.base.firework_star": "Shapeless Crafting: One gunpowder and at least one dye.",
"descriptions.enigmatica.base.firework_star_2": "Up to eight dyes can be added.\nOne head, gold nugget, feather, or fire charge can be added to set a shape.\nA diamond and/or a glowstone dust can be added with any of the other ingredients.",
"descriptions.enigmatica.base.dragon_egg": "More eggs may be obtained by summoning the End Dragon again.\n \nTo summon, place an End Crystal on each of the cardinal directions of the End Portal in the End.",
"descriptions.enigmatica.base.leaf_pile": "Gathered with Shears.",
"descriptions.enigmatica.base.soul_shard": "Obtained by performing a Crystallization Ritual near undead mobs. The ritual can be found in the Ars Ecclesia.\n \nAlternatively obtained by killing undead mobs with a Reaper's Scythe.",
"descriptions.enigmatica.base.anputs_fingers_spores": "Found occasionally growing beneath Deadwood Trees. Requires darkness to grow.",
"descriptions.enigmatica.base.heater": "May be used to provide Heat for PneumaticCraft machines.",
"descriptions.enigmatica.base.logic_circuit": "Used in a Logic Unit to create advanced Redstone Logic.\n \nCrafted in an Engineer's Circuit Table. Requires Circuit Backplanes and Lead or Copper Wire. Vacuum Tubes are required for all operators except SET.",
"descriptions.enigmatica.base.hemolymph_sac": "Obtained by defeating the Warped Mosco.\n \nWarped Mosco are creatures of nightmare created when a Crimson Mosquito sucks the blood of a Mungus covered in Warped Fungus.",
"descriptions.enigmatica.base.hemolymph_sac_2": "Mungus may be summoned through the Altar of Birthing, while Crimson Mosquitos may be created by bringing a Fly into the Nether.",
"descriptions.enigmatica.base.gem_crystal_cluster": "Formed by dropping a Rock Crystal or Celestial Crystal in Liquid Starlight with an Illumination Powder.\n \nDifferent varieties form at different times of the day.",
"descriptions.enigmatica.base.celestial_crystal_cluster": "Formed by dropping a Rock Crystal or Celestial Crystal in Liquid Starlight with a Stardust.",
"descriptions.enigmatica.base.celestial_crystal_cluster_2": "If grown on Starmetal Ore, the growth rate is increased. The ore may revert during this process, so linking a Collector Crystal to it is important to convert it back.",
"descriptions.enigmatica.base.weak_tau": "Found in chests within the Demon Realm.",
"descriptions.enigmatica.base.strong_tau": "Produced by growing Tau near mobs.",
"descriptions.enigmatica.base.unholy_symbol": "Produced by chanting the Touch of Darkness at Pewter Inlay dropped on the ground.",
"descriptions.enigmatica.base.beehive": "Tiered Beehives have been depreciated. Use the Hive Upgrade items on nests found in the world instead. Tiered Beehives can be converted to Hive Upgrades in a crafting grid.",
"descriptions.enigmatica.base.flare": "Splash a Phantom with a Potion of Insomnia to convert it to a Flare.",
"descriptions.enigmatica.base.cloche": "Available Fertilizers:\n \nBone Meal: 1.25x\nFloral Fertilizer: 1.5x\nGreen Fertilizer: 1.5x\nFertilizer: 1.7x\nRed Fertilizer: 2.0x\nPhyto-Gro: 3.0x",
"descriptions.enigmatica.base.dragon_scale": "Only drops from Ender Dragons after the first one has been killed.",
"descriptions.enigmatica.base.dankstorage": "Sneak Right Click to upgrade a Dank installed in a Dock.",
"descriptions.enigmatica.base.dusty_mummbee_bee": "The Dusty Mummbee can be found inside the Pharaoh's Sarcophagus.",
"descriptions.enigmatica.base.slime_in_a_bucket": "Scoop up a small slime in an empty bucket.",
"descriptions.enigmatica.base.mysterious_worm": "Summons a Void Worm when tossed into the void in The End.\n \nPlace a Crimson Mosquito Larva inside a Capsid to obtain.",
"descriptions.enigmatica.base.capsid": "Dropped by Enderiophage.\n \nEnderiophage may be found in the wild in the End Midlands biome. They may also be called forth by consuming Otherworldly Honey.",
"descriptions.enigmatica.base.sanguine_amulet": "For crafting steps, refer to the Sanguine Items section under Rituals in the Ars Ecclesia.",
"descriptions.enigmatica.base.papyrus_plant": "Commonly found growing in Oasis Biomes in Atum. Grows like Sugar Cane on Strange Sand or Fertile Soil.",
"descriptions.enigmatica.base.infused_wood": "Made by dropping any Log into Liquid Starlight.",
"descriptions.enigmatica.base.thief_hood": "May be repaired with Rabbit Hide.",
"descriptions.enigmatica.base.gold_leaf": "Obtained by breaking Golden Leaves.",
"descriptions.enigmatica.base.golden_leaves": "Obtained by using Brilliant Fiber on leaves. Allow to spread for best effect.",
"descriptions.enigmatica.base.masterfulmachinery": "This structure will be difficult to build by hand.",
"descriptions.enigmatica.base.masterfulmachinery_2": "Use the included Building Gadgets patterns found in the \"building_gadgets_patterns\" folder of Enigmatica 6 instance folder.\n \nMay be rotated, but not mirrored.",
"descriptions.enigmatica.base.masterfulmachinery_3": "A note on the values shown in recipes for these machines:\n● Forge Energy is consumed per tick\n● Pneumatic Air is consumed per tick and must be over 10 bar\n● Astral Starlight is consumed per tick\n● Fluids are consumed or created per tick\n● Items are consumed or created at the end of a craft\n● Mana is consumed at the start of a craft or created at the end",
"descriptions.enigmatica.base.break_prevention": "When applied to a tool in an anvil, the tool will just stop working when durability runs out, instead of being destroyed.",
"descriptions.enigmatica.base.belt_of_levitation": "When equipped in the belt slot, hold the sneak key while airborne to float.",
"descriptions.enigmatica.base.refined_radiance": "Chromatic Compound absorbs light when dropped in the world, transforming into Refined Radiance. Charges slowly from ambient light, faster by consuming nearby light emitting blocks, and instantly when dropped onto an active beacon.",
"descriptions.enigmatica.base.shadow_steel": "Chromatic Compound absorbs darkness when dropped into the void, returning as Shadow Steel, floating back up out of the void shortly after falling into the depths.",
"descriptions.enigmatica.base.projectile_generator": "Valid Projectiles:\n● Snowballs\n● Eggs\n● Arrows\n● Fire Charges\n● Spectral Arrows",
"descriptions.enigmatica.base.projectile_generator_2": "● Ender Pearls\n● Llama Spit\n● Bottles o' Enchanting\n● Shulker Bullets\n● Tridents",
"descriptions.enigmatica.base.birth_spirit": "Obtained by manually breeding animals in high Aura areas.",
"descriptions.enigmatica.base.hose_pulley": "May be used to pump the following infinitely:\n \n● Lava\n● Water\n● Crude Oil\n● Virulent Mix\n● Chocolate\n● Liquid Chorus\n● Menril Resin\n● Blood\n● Slime\n● Enderslime\n● Skyslime",
"descriptions.enigmatica.base.honey_glazed_ham": "Obtained by right-clicking a placed Honey Glazed Ham with a Bowl.",
"descriptions.enigmatica.base.stuffed_pumpkin": "Obtained by right-clicking a placed Stuffed Pumpkin with a Bowl.",
"descriptions.enigmatica.base.roast_chicken": "Obtained by right-clicking a placed Roast Chicken with a Bowl.",
"descriptions.enigmatica.base.brewing_barrel": "Used for brewing various alcoholic beverages.\n \n● Beer\n● Cauim\n● Cider\n● Mead",
"descriptions.enigmatica.base.brewing_barrel_2": "● Sake\n● Tiswin\n● Vodka\n● Whiskey\n● Wine",
"descriptions.enigmatica.base.": "",

"": ""
}
}
30 changes: 14 additions & 16 deletions kubejs/client_scripts/expert/item_modifiers/jei_descriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,36 @@ onEvent('jei.information', (event) => {
if (global.isExpertMode == false) {
return;
}
const id_prefix = `descriptions.enigmatica.expert.`;

const recipes = [
{
items: ['bloodmagic:soulpickaxe'],
text: ['Capable of mining Iesnium.']
text: ['tooltips.enigmatica.expert.soulpickaxe']
},
{
items: ['atum:nebu_hammer', 'mythicbotany:alfsteel_pick', 'aiotbotania:alfsteel_aiot'],
text: ['Capable of breaking down Godblocks into Atum Artifacts.']
text: [`${id_prefix}nebu_hammer`]
},
{
items: ['resourcefulbees:t2_apiary', 'resourcefulbees:t3_apiary', 'resourcefulbees:t4_apiary'],
text: [
'Crafting this will not return any bees contained in the ingredients - make sure to remove them before crafting!'
]
text: [`${id_prefix}apiary`]
},
{
items: ['industrialforegoing:mob_slaughter_factory'],
text: [
// This works but doesn't provide color in JEI text.
// I just made it like this to be easily copied from tooltips script
Text.of('Disabled in Expert Mode.').red(),
Text.of('Liquid Meat can be obtained by "processing" cows.').color('#6e2a2a'),
Text.of('Pink Slime can be harvested from a Pink Wither using a Fluid Laser.').color('#da07e6')
'tooltips.enigmatica.expert.disabled',
'tooltips.enigmatica.expert.liquid_meat',
'tooltips.enigmatica.expert.pink_slime'
]
},
{
items: ['refinedstorage:4k_storage_part', 'refinedstorage:1k_storage_part'],
text: ['Crafting is disabled in Expert, begin with the 16k Storage Part.']
text: [`${id_prefix}small_storage_part`]
},
{
items: ['refinedstorage:256k_fluid_storage_part', 'refinedstorage:64k_fluid_storage_part'],
text: ['Crafting is disabled in Expert, begin with the 1024k Fluid Storage Part.']
text: [`${id_prefix}small_fluid_storage_part`]
},
{
items: [
Expand All @@ -44,14 +41,14 @@ onEvent('jei.information', (event) => {
'bloodmagic:masterbloodorb',
'bloodmagic:soulgemlesser'
],
text: [
'Obtaining this item for the first time automatically unlocks a Game Stage.',
'If the stage does not unlock or gets revoked, simply Right-Click this item in the air to re-gain it.'
]
text: [`${id_prefix}stage_unlock`]
}
];

recipes.forEach((recipe) => {
for (let i = 0; i < recipe.text.length; i++) {
recipe.text[i] = Text.translate(recipe.text[i]);
}
recipe.items.forEach((item) => {
event.add(item, recipe.text);
});
Expand All @@ -60,6 +57,7 @@ onEvent('jei.information', (event) => {
const disabledItems = [
'pneumaticcraft:air_compressor',
'pneumaticcraft:advanced_air_compressor',
'industrialforegoing:mob_slaughter_factory',
'integrateddynamics:energy_battery',
'integrateddynamics:mechanical_squeezer',
'integrateddynamics:mechanical_drying_basin',
Expand Down
Loading

0 comments on commit dfc1391

Please sign in to comment.