TetraJS

Allows you to use KubeJS to add Tetra content.

Allows you to use KubeJS to register your own ModularItem and StatBar.

//in startup
StartupEvents.registry("item", event => {
    event.create("tetra:test", "TetraJS:BaseModularItem")
        .tjs$setHoneBase(200)
        .tjs$setHoneIntegrityMultiplier(100)
        .tjs$isCanHone(true)
        .tjs$addMajorSlot("sword/hilt", 15, 15, true)
        .tjs$setSynergiesPath("double/")

    event.create("tetra:dynamic_test", "TetraJS:DynamicModularItem")
        .tjs$setSynergiesPath("test/", "double/")

    event.create("tetra:head", "TetraJS:EquipModularItem")
        .tjs$setSlot("head")
        .tjs$addMajorSlot("sword/hilt", 15, 15, true)

    event.create("tetra:ring", "TetraJS:CuriosModularItem")
        .tjs$addMajorSlot("sword/hilt", 15, 15, true)
        .tjs$isUnbreakable()
        .tjs$addCuriosSlot("ring")

    event.create("tetra:back", "TetraJS:CuriosModularItem")
        .tjs$addMajorSlot("sword/hilt", 15, 15, true)
        .tjs$addCuriosSlot("back")

    event.create("tetra:bow", "TetraJS:BowModularItem")
        .tjs$addMajorSlot("sword/hilt", 15, 15, true)

})

TetraJSEvents.registerEnchantAspect(event => {
    event.register("enchant", "armor", "bow")
})
//in client
TetraJSEvents.registerStatBar(event => {
  event.registerAttributeBar("minecraft:generic.movement_speed")
    .setMultiplier(100)
    .setOffset(-1)
    .setAttributeGetterType("multiply")
    .setLabelGetter("singledecimallabel")

    event.registerEffectBar("abilityCombo")

    event.registerEffectBar("ammoCapacity")
    .setMax(5)
    .setSegmented(true)
})

The TetraJS Team

profile avatar
  • 14
    Followers
  • 35
    Projects
  • 5.2M
    Downloads

More from yiran1457View all

  • RS Tetra project image

    RS Tetra

    • 14
    • Mods

    An addon mod bridging RS and Tetra, adding modular storage disk with customizable components.

    • 14
    • June 4, 2026
    • Mods
  • TetraModify Core project image

    TetraModify Core

    • 1.0K
    • Mods

    A lib to modify Tetra.

    • 1.0K
    • June 3, 2026
    • Mods
  • TetraOverHoning project image

    TetraOverHoning

    • 123.7K
    • Mods

    Allows you to continue accumulating honing progress after completing honing.

    • 123.7K
    • June 3, 2026
    • Mods
  • GeoTetraArmor project image

    GeoTetraArmor

    • 291.0K
    • Mods

    Add Tetra modular armor using GeckoLib models.

    • 291.0K
    • June 3, 2026
    • Mods
  • RS Tetra project image

    RS Tetra

    • 14
    • Mods

    An addon mod bridging RS and Tetra, adding modular storage disk with customizable components.

    • 14
    • June 4, 2026
    • Mods
  • TetraModify Core project image

    TetraModify Core

    • 1.0K
    • Mods

    A lib to modify Tetra.

    • 1.0K
    • June 3, 2026
    • Mods
  • TetraOverHoning project image

    TetraOverHoning

    • 123.7K
    • Mods

    Allows you to continue accumulating honing progress after completing honing.

    • 123.7K
    • June 3, 2026
    • Mods
  • GeoTetraArmor project image

    GeoTetraArmor

    • 291.0K
    • Mods

    Add Tetra modular armor using GeckoLib models.

    • 291.0K
    • June 3, 2026
    • Mods