All Mods Resource Packs Data Packs Shaders Modpacks Plugins
SlashBlade JS

SlashBlade JS

by mrqx0195 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Slashblade JS

An mod that facilitates developers in editing and creating recipes for Slashblade: Resharped using KubeJS scripts, along with utilizing its events.

What Can It Do?

Here's a ready-to-use example:

// priority: 0

/* Server Side */

// When Slashblade checks power state: If not powered, consume 10 ProudSoul to enter charged state
SlashBladeJSEvents.powerBlade(event => {
    let state = BladeState.of(event.blade)
    let proudsoul = state.proudSoulCount
    if (!event.isPowered() && proudsoul >= 10) {
        state.setProudSoulCount(proudsoul - 10)
        event.setPowered(true)
    }
    event.user.tell("ProudSoul: " + proudsoul) // Notify player of current ProudSoul value
})

// A custom Slashblade recipe
ServerEvents.recipes(event => {
    event.recipes.slashblade.slashblade_shaped_recipe("slashblade:slashblade", [
        "ABA",
        "CSC",
        "ABC"
    ], {
        "S": SlashBladeIngredient.of(
            SlashBladeRequestDefinition.name("slashblade:fox_black") // Required base blade
                .killCount(233) // Kill count requirement
                .proudSoul(114514) // ProudSoul requirement
                .refineCount(10) // Refinement count requirement
                .addEnchantment(SBEnchantmentDefinition.of("minecraft:power", 2)) // Enchantment requirement
                .build() // Don't forget to .build()
        ),
        "A": "minecraft:golden_apple", // Other materials (like vanilla recipes)
        "B": "#forge:bones",
        "C": "minecraft:cake",
    }, "slashblade:fox_white"/* Resulting blade ID */)
})

// Create your custom blade
ServerEvents.highPriorityData(event => {
    let customBlade = SBSlashBladeDefinition.of("kubejs:test_blade", // Your blade ID
        SBRenderDefinition.newInstance() // Render properties
            .effectColor(2039347) // Blade effect color (hex RGB to decimal)
            .standbyRenderType(SBCarryType.DEFAULT) // Sheathed position
            .modelName("kubejs:model/named/test_blade.obj") // Path: ./kubejs/assets/kubejs/model/named/test_blade.obj
            .textureName("kubejs:model/named/test_blade.png") // Path: ./kubejs/assets/kubejs/model/named/test_blade.png
            .build(), // Don't forget to .build()
        SBPropertiesDefinition.newInstance()
            .maxDamage(666) // Max durability
            .baseAttackModifier(999) // Base attack damage
            .slashArtsType("slashblade:void_slash") // Set special attack
            .addSpecialEffect("slashblade:wither_edge") // Add special effect
            .defaultSwordType([SBSwordType.FIERCEREDGE, SBSwordType.BEWITCHED]) // Set blade types
            .build(), // Don't forget to .build()
        [ // Default enchantments
            SBEnchantmentDefinition.of("minecraft:power", 5),
            SBEnchantmentDefinition.of("minecraft:unbreaking", 10)
        ]
    )

    // Register to game
    event.addJson("kubejs:slashblade/named_blades/test_blade.json", SBSlashBladeDefinition.toJSON(customBlade))
})

License

This mod is open-source under the GPL v3.0 License.

You may include it in your modpacks/servers as long as you comply with the license terms.

How to Install SlashBlade JS (Mod)

SlashBlade JS by mrqx0195 is verified for Forge across Minecraft versions 1.20.1 (latest release: 1.1.5, file size: 51 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20.1) and platform (Forge).
  2. Make sure you have the compatible loader or environment installed for Forge.
  3. Move the downloaded SlashBlade JS file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.20.1
Forge
5mo ago 1
1.20.1
Forge
6mo ago 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
[1.1.5] SlashBlade JS 1.1.5 by mrqx0195 on May 22, 2026
Download
Fix a bug.
[1.1.4] SlashBlade JS 1.1.4 by mrqx0195 on May 01, 2026
Download
Support SlashBlade:Resharped 1.9.63.
[1.1.3] SlashBlade JS 1.1.3 by mrqx0195 on Jul 20, 2025
Download
Additions:
  • New bingdings: SBUserPoseOverrider, SBAdvancementHelper, SBAttackManager, SBTargetSelector, SBStunManager, SBUntouchable, SBInputStream, SBSlayerStyleArts, SBSummonedSwordArts.

Fixes:
  • Fix some bugs.
[1.1.2] SlashBlade JS 1.1.2 by mrqx0195 on Jul 08, 2025
Download
Compatible with SlashBlade: Resharped version 1.3.x
[1.1.1] SlashBlade JS 1.1.1 by mrqx0195 on Jun 16, 2025
Download
Changes:
  • Use mrqx`s Slashblade Core 1.2.0.
[1.1.0] SlashBlade JS 1.1.0 by mrqx0195 on May 31, 2025
Download
Additions:
  • New startup events: SlashBladeJSEvents.comboStateRegistry, SlashBladeJSEvents.playerAnimationRegistryEvent.
  • New registry: slashblade:combo_state, slashblade:special_effect, slashblade:slash_arts.

Fixes:
  • Fixed some bugs.
[1.0.0] SlashBlade JS 1.0.0 by mrqx0195 on May 01, 2025
Download
First version.
SlashBlade JS Icon
Download SlashBlade JS
Select game version
Select platform