Back to mods
Shield System project artwork

CurseForge · Minecraft mod

Shield System

a minecraft mod that provide a simple shield system

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Shield System release matches 1.21.1 NeoForge?

Updated 4 months ago
Best match for your filters shield_system-2101.1.4.jar
Game version 1.21.1
Loader NeoForge

Shield System shield_system-2101.1.4.jar targets 1.21.1 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is Shield System required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Shield System shield_system-2101.1.4.jar need?

shield_system-2101.1.4.jar on 1.21.1 NeoForge. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Shield System without breaking your instance.

Built for Shield System shield_system-2101.1.4.jar on 1.21.1 NeoForge. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use shield_system-2101.1.4.jar. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside shield_system-2101.1.4.jar. It opens that exact file at the source.

About this project

What does Shield System add?

This is an independent shield system from SimpleRPG Core.

It provides a shield system similar to that of League of Legends and it has complete kubejs support.

Currently adapted to Overflow Bars

for kubejs:

StartupEvents.registry("shield_system:shield_type", event => {
    //Create a simple unit shield that exists permanently
    event.create("kubejs_test_unit")
        .createSimpleUnitShield()

    //Create a simple shield group, where the unit shields of the shield group permanently exist
    event.create("kubejs_test_group")
        .createSimpleGroupShield()

    //Create a shield that lasts for 5 seconds and belongs to the shield group
    event.create("kubejs_test_time")
        .createTimeLimitedShield(20 * 5)

    //Create a shield that continuously decays within 5 seconds and belongs to the shield group
    event.create("kubejs_test_decay")
        .createDecayShield(20 * 5)


    //Next is the advanced section
    event.create("kubejs_custom_1")
        //Add shield provider
        .shieldFactory(
            //Use the unit shield constructor to provide kjs objects for the builder, making it easier to manage
            () => UnitShieldBuilder.of((initAmount) => new TestShield(initAmount))
                //tick
                .tick((kubeUnitShield, living) => {
                    kubeUnitShield.getKubeObject().tick(kubeUnitShield, living)
                })
                //save
                .save((kubeUnitShield, living) => {
                    kubeUnitShield.getKubeObject().save(kubeUnitShield, living)
                })
                //load
                .load((kubeUnitShield, living) => {
                    kubeUnitShield.getKubeObject().load(kubeUnitShield, living)
                })
                //Since it is a unit shield, a unit shield constructor should not be provided, but rather a unit shield should be provided directly. Therefore,. create (0)
                .build().create(0)
        )

    event.create("kubejs_cunstom_2")
        .shieldFactory(
            //Use shield group
            () => new GroupShield(
                   //Use the unit shield constructor to provide kjs objects for the builder, making it easier to manage
                UnitShieldBuilder.of((initAmount) => new TestShield(initAmount))
                    .tick((kubeUnitShield, living) => {
                        kubeUnitShield.getKubeObject().tick(kubeUnitShield, living)
                    })
                    .save((kubeUnitShield, living) => {
                        kubeUnitShield.getKubeObject().save(kubeUnitShield, living)
                    })
                    .load((kubeUnitShield, living) => {
                        kubeUnitShield.getKubeObject().load(kubeUnitShield, living)
                    })
                    //Since it is a shield group, there is no initial shield, so a unit shield constructor is provided here without the need for. create (0)
                    .build()
            )
        )
})


function TestShield(initAmount) {
    this.initAmount = initAmount
}

/**
 * @param {$KubeUnitShield_<TestShield} kubeUnitShield
 * @param {$LivingEntity_} living
 */
TestShield.prototype.tick = function (kubeUnitShield, living) {
    kubeUnitShield.reduceShieldAmount(this.initAmount / 100)

}

/**
 * @param {$KubeUnitShield_<TestShield} kubeUnitShield
 * @param {$LivingEntity_} living
 */
TestShield.prototype.save = function (kubeUnitShield, living) {

}

/**
 * @param {$KubeUnitShield_<TestShield} kubeUnitShield
 * @param {$LivingEntity_} living
 */
TestShield.prototype.load = function (kubeUnitShield, living) {

}
/**
 * @param {$LivingEntity_} living
 */


TestShield.prototype.sendMessage = function (living) {
    living.sendSystemMessage(this.initAmount)
}

ShieldSystemEvents.RegisterShieldPriority(event => {
    //Register shield priority, shields without registered priority will not take effect
    event.addShieldType("kubejs:kubejs_test_group")
    event.addShieldType("kubejs:kubejs_test_time")
    event.addShieldType("kubejs:kubejs_test_decay")
})

for API use

EntityEvents.afterHurt(event => {
//There are two situations to add shield values to a shield://If the target shield is a shield group, a unit shield will be created based on the provided shield value, and then the unit shield will be added to the shield group//If the target shield is a unit shield, the shield value will be directly increased on the basis of the original shield value
    ShieldAPI.addShieldAmount(event.entity, "kubejs:kubejs_test_decay", 80)

    //reduce shield
    ShieldAPI.reduceShieldAmount(event.entity, "kubejs:kubejs_test_decay", 40)
    //get shield instance
    var shieldInstance = ShieldAPI.getShieldInstance(event.entity, "kubejs:kubejs_test_decay")

})

Project description from CurseForge.

Pick your setup

Shield System by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Shield System versions and loaders

4 of 4 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.