promotional bannermobile promotional banner
premium banner
You can use it to create set effects

Description

SetCraftJS is a powerful KubeJS addon that enables modpack developers to create custom equipment set effects with minimal effort. Designed with flexibility in mind, it allows you to define special bonuses when players wear specific combinations of items, from simple armor sets to complex custom configurations including Curios slots.

 

Key Features:

Multiple Set Modes: Support for standard equipment, Curios slots, or fully custom configurations

Diverse Effects: Apply potion effects, attribute modifiers, or custom event handlers

Custom Tooltips: Add informative tooltips to items indicating set bonuses

Event-Driven: Execute custom logic through event handlers when set conditions are met

KubeJS Integration: Seamless integration with KubeJS scripting

 

Example

SetCraftEvent.registry(event => {

    event.create([

        'minecraft:diamond_helmet',

        'minecraft:diamond_chestplate',

        'minecraft:diamond_leggings',

        'minecraft:diamond_boots',

        'minecraft:diamond_sword'

    ], 'diamond_set')

        .setName('Diamond Warrior Set')

        .mode('equipment'

        .addPotionEffect('minecraft:strength', 1, false, true

        .addPotionEffect('minecraft:resistance', 0, false, true)

        .addAttribute('minecraft:generic.max_health', 'diamond_set_health', 4.0, 'addition'

        .tooltip(true) 

        .customTooltip(tooltip => {

            tooltip.add('§6Diamond Set Bonus:', 0)

            tooltip.add('§7• Strength II', 1)

            tooltip.add('§7• Resistance I', 2)

            tooltip.add('§7• +2 Hearts Max Health', 3)

        })

        .build();

});