// kubejs/server_scripts/essence_empowering.js
ServerEvents.recipes(event => {
  const ENERGY = 2000
  const TIME = 100
  const COLOR = 0xFFFFFF

  function empowerEssence(outputEssence, centerInput, modifierItem) {
    event.recipes.actuallyadditions
      .empowering(
        Item.of(outputEssence),
        centerInput,
        [modifierItem, modifierItem, modifierItem, modifierItem]
      )
      .energy(ENERGY)
      .time(TIME)
      .color(COLOR)
  }

  // 1x block (center) + 4x item (stands) -> essence
  empowerEssence("mysticalagriculture:coal_essence",    "minecraft:coal_block",    "minecraft:coal")
  empowerEssence("mysticalagriculture:copper_essence",  "minecraft:copper_block",  "minecraft:copper_ingot")
  empowerEssence("mysticalagriculture:iron_essence",    "minecraft:iron_block",    "minecraft:iron_ingot")
  empowerEssence("mysticalagriculture:gold_essence",    "minecraft:gold_block",    "minecraft:gold_ingot")
  empowerEssence("mysticalagriculture:diamond_essence", "minecraft:diamond_block", "minecraft:diamond")

  // Added
  empowerEssence("mysticalagriculture:nether_quartz_essence", "minecraft:quartz_block",   "minecraft:quartz")
  empowerEssence("mysticalagriculture:lapis_lazuli_essence",  "minecraft:lapis_block",    "minecraft:lapis_lazuli")
  empowerEssence("mysticalagriculture:redstone_essence",      "minecraft:redstone_block", "minecraft:redstone")
  empowerEssence("mysticalagriculture:emerald_essence",       "minecraft:emerald_block",  "minecraft:emerald")

  // Nickel (Oritech)
  empowerEssence("mysticalagriculture:nickel_essence", "oritech:nickel_block", "oritech:nickel_ingot")
})

