StartupEvents.registry("item", event => {
  event.create("chemlib:deuterium", "chemlib:element")
    .elementColor("1e90ff")
    .groupName("Isotopes")
    .abbreviation("²H")
    .atomicNumber(1)
    .chemicalGroup(1)
    .period(1)
    .matterState("gas")
    .metalType("nonmetal")
    .hasItems(false)
    .artificial(false)
    .withEffect("minecraft:levitation", 5, 2);

  event.create("chemlib:cryogenic_oxygen", "chemlib:element")
    .elementColor("d8d8d8")
    .groupName("Cryogenic Elements")
    .abbreviation("O⁻")
    .atomicNumber(8)
    .chemicalGroup(16)
    .period(2)
    .matterState("liquid")
    .metalType("nonmetal")
    .hasItems(false)
    .artificial(false)
    .withEffect("minecraft:slowness", 5, 2);

  event.create("chemlib:cryogenic_nitrogen", "chemlib:element")
    .elementColor("eeeeee")
    .groupName("Cryogenic Elements")
    .abbreviation("N⁻")
    .atomicNumber(8)
    .chemicalGroup(15)
    .period(2)
    .matterState("liquid")
    .metalType("nonmetal")
    .hasItems(false)
    .artificial(false)
    .withEffect("minecraft:slowness", 5, 2); 
    
event.create("chemlib:origen", "chemlib:element")
  .elementColor("b06cff")            // soft purple
  .groupName("Synthetic Proto-Matter")
  .abbreviation("Oi")
  .atomicNumber(119)
  .chemicalGroup(1)                  
  .period(1)                         
  .matterState("solid")            
  .metalType("nonmetal")             
  .hasPlate(true)
  .hasDust(true)
  .hasIngot(true)
  .artificial(true)
  .withEffect("minecraft:glowing", 6, 0); 

  event.create("chemlib:selunium", "chemlib:element")
    .elementColor("7fb7ff")            // pale moonlight blue
    .groupName("Lunar Alloys")
    .abbreviation("LuN")
    .atomicNumber(120)
    .chemicalGroup(13)
    .period(4)
    .matterState("solid")
    .metalType("metal")
    .hasPlate(true)
    .hasDust(true)
    .hasIngot(true)
    .artificial(true)
    .withEffect("minecraft:slow_falling", 8, 0); // "low gravity" vibe

  event.create("chemlib:photyl", "chemlib:element")
    .elementColor("ffd34d")            // bright photon yellow
    .groupName("Energetic Elements")
    .abbreviation("Ph")
    .atomicNumber(121)
    .chemicalGroup(17)
    .period(3)
    .matterState("gas")
    .metalType("nonmetal")
    .hasPlate(false)
    .hasDust(true)
    .hasIngot(false)
    .artificial(true)
    .withEffect("minecraft:haste", 8, 1); // "energizing"

  // Tier 2 – Calorite elements (Mars / Venus)
  event.create("chemlib:magnalite", "chemlib:element")
    .elementColor("ff914d")            // rusty orange / Martian
    .groupName("Magnetostructural Metals")
    .abbreviation("MgA")
    .atomicNumber(122)
    .chemicalGroup(8)
    .period(5)
    .matterState("solid")
    .metalType("metal")
    .hasPlate(true)
    .hasDust(true)
    .hasIngot(true)
    .artificial(true)
    .withEffect("minecraft:strength", 8, 0);

  event.create("chemlib:pyrion", "chemlib:element")
    .elementColor("ff4b3a")            // molten red
    .groupName("Thermal Reagents")
    .abbreviation("Py")
    .atomicNumber(123)
    .chemicalGroup(16)
    .period(4)
    .matterState("liquid")
    .metalType("metal")
    .hasPlate(false)
    .hasDust(true)
    .hasIngot(false)
    .artificial(true)
    .withEffect("minecraft:fire_resistance", 10, 0);

  // Tier 3 – Ostrum elements (Glacio / deep space)
  event.create("chemlib:caelyth", "chemlib:element")
    .elementColor("5cf4ff")            // bright cyan / void sky
    .groupName("Anti-Gravity Exotic Matter")
    .abbreviation("Cy")
    .atomicNumber(124)
    .chemicalGroup(2)
    .period(6)
    .matterState("solid")
    .metalType("metal")
    .hasPlate(true)
    .hasDust(true)
    .hasIngot(true)
    .artificial(true)
    .withEffect("minecraft:jump_boost", 8, 1);

  event.create("chemlib:veskor", "chemlib:element")
    .elementColor("505050")            // dark dense grey
    .groupName("Exotic Heavy Metals")
    .abbreviation("Vk")
    .atomicNumber(125)
    .chemicalGroup(12)
    .period(7)
    .matterState("solid")
    .metalType("metal")
    .hasPlate(true)
    .hasDust(true)
    .hasIngot(true)
    .artificial(true)
    .withEffect("minecraft:resistance", 10, 1);

  event.create("chemlib:noctyde", "chemlib:element")
    .elementColor("1a0f3b")
    .groupName("Penumbral Matter")
    .abbreviation("Nd")
    .atomicNumber(126)
    .chemicalGroup(15)
    .period(5)
    .matterState("solid")
    .metalType("nonmetal")
    .hasPlate(true)
    .hasDust(true)
    .hasIngot(true)                  
    .artificial(true)
    .withEffect("minecraft:night_vision", 12, 0); // sculk cave vibes

  event.create("chemlib:anthralite", "chemlib:element")
    .elementColor(0x3F3128)
    .groupName("Transbiometal")
    .abbreviation("An")
    .atomicNumber(127)
    .chemicalGroup(3)
    .period(8)
    .matterState("solid")
    .metalType("metal") 
    .hasPlate(false)
    .hasDust(false)
    .hasIngot(false)
    .artificial(false);

  event.create("chemlib:calchos", "chemlib:element")
    .elementColor(0x3F3128)
    .groupName("Primordial Pseudo-Alloy")
    .abbreviation("Cc")
    .atomicNumber(128)
    .chemicalGroup(11)
    .period(8)
    .matterState("solid")
    .metalType("metal") 
    .hasPlate(false)
    .hasDust(false)
    .hasIngot(false)
    .artificial(false);
});