SlashBlade JS

Quick rating

SlashBlade JS

No reviews yet

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

No Theme
No Genre
QoL & Tweaks
Mod Addon
API/Library
Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
GNU General Public License v3.0 or later
Latest Version
SlashBladeJS-1.20.1-1.1.5.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

About

Description

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.

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.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~27,000
Total Downloads
CurseForge
~8,000
Modrinth
~19,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works