const loreMap = {
  "hf_mzs:ice_crystal": ["§r§7Hold Interact to channel an icy whirlwind", "§r§7Recharges while in inventory"],
  "hf_mzs:wroughtnaut_axe": ["§r§7Never breaks", "§r§7Interact to attack in a large arc", "§r§7Sneak and interact to slam the ground and", "§r§7create a shockwave"],
  "hf_mzs:wroughtnaut_helmet": ["§r§7Never breaks"],
  "hf_mzs:suns_blessing": [
    "§r§7Interact while pointing at a block to call",
    "§r§7Sunstrike",
    "§r§7Interact to use Solar Flare",
    "§r§7Sneak and interact to use Solar Beam",
    "§r§7Sneak quickly multiple times and interact",
    "§r§7to use Supernova",
  ],
  "hf_mzs:sol_visage": [
    "§r§7Never breaks",
    "§r§7Equip, then interact while holding",
    "§r§7another mask to summon minions",
    "§r§7Interact with a minion to return it to its",
    "§r§7mask",
  ],
  "hf_mzs:mask_bliss": ["§r§7Grants jump boost", "§r§7I wonder if...?"],
  "hf_mzs:mask_faith": ["§r§7Grants health boost", "§r§7I wonder if...?"],
  "hf_mzs:mask_fear": ["§r§7Grants speed", "§r§7I wonder if...?"],
  "hf_mzs:mask_fury": ["§r§7Grants strength", "§r§7I wonder if...?"],
  "hf_mzs:mask_misery": ["§r§7Grants resistance", "§r§7I wonder if...?"],
  "hf_mzs:mask_rage": ["§r§7Grants haste", "§r§7I wonder if...?"],
  "hf_mzs:foliaath_seed": [
    "§r§7Plant in grass",
    "§r§7Every half-day, the baby foliaath will get",
    "§r§7hungry, feed it with any meat",
    "§r§7After 2 days, the foliaath will be fully grown",
  ],
  //"hf_mzs:dart": ["§r§7Can only be used with blowgun", "§r§7Poisons targets"],
  "hf_mzs:spear": ["§r§71/3 chance to instantly kill animals with", "§r§7less than 30 health"],
  "hf_mzs:blowgun": ["§r§7Charges quickly", "§r§7Short range", "§r§7Only shoot darts"],
  "hf_mzs:luminous_jelly": ["§r§7Eat to briefly gain night vision"],
  "hf_mzs:naga_fang": ["§r§7Used to craft a Naga Fang Dagger or darts"],
  "hf_mzs:naga_fang_dagger": ["§r§7Poisons targets", "§r§7Double damage from behind"],
  "hf_mzs:earthrend_gauntlet": [
    "§r§7Interact to tunnel through the ground",
    "§r§7Look in the direction you'd like to dig",
    "§r§7Release to surface and stop tunneling",
    "§r§7Sneak and interact to spawn a boulder",
    "§r§7Recharges while in inventory",
  ],
  "hf_mzs:sculptor_staff": ["§r§7Use to spawn 3 boulders, that get pushed", "§r§7forward"],
  "hf_mzs:geomancer_beads": ["§r§7Gives +3 damage in unarmed combat", "§r§7Buff also applies to the Earthrend Gauntlet"],
  "hf_mzs:geomancer_belt": [
    "§r§7Makes you more resilient when under the",
    "§r§7effect of slowness",
    "§r§7This includes the slowness you recieve while",
    "§r§7casting a geomancy attack",
  ],
  "hf_mzs:geomancer_belt_boost": [
    "§r§7Makes you more resilient when under the",
    "§r§7effect of slowness",
    "§r§7This includes the slowness you recieve while",
    "§r§7casting a geomancy attack",
  ],
  "hf_mzs:geomancer_robe": ["§r§7Upon dealing damage or being damaged, there", "§r§7is a chance to spawn a boulder somewhere near", "§r§7you"],
  "hf_mzs:geomancer_sandals": ["§r§7Upon falling, gain a quick speed boost"],
  "hf_mzs:sand_rake": ["§r§7Use on sand to rake it", "§r§7Sneak and use on raked sand to cycle through", "§r§7orientations"],
  "hf_mzs:potion_poison_resistance": ["§r§7Poison Resistance (1:00)"],
  "hf_mzs:mob_remover": ["§r§7Punch to remove a Mowzie's Mobs mob"],
};

export function addLore(container, slot, item) {
  if (loreMap[item.typeId] === undefined) return;
  if (item.getLore()[0] !== undefined) return;
  const newItem = item.clone();
  newItem.setLore(loreMap[item.typeId]);
  container.setItem(slot, newItem);
}
