SlashBlade JS
ModAn mod that facilitates developers in editing and creating recipes for Slashblade: Resharped using KubeJS scripts, along with utilizing its events.
Type
Mod
Modrinth Downloads
19,449
Modrinth ID
dA2TGGJp
Last Updated
Jul 28, 2026
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.
Compatibility
Mod Loaders
Game Versions
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
标识符翻译(Identifier Translation)
将命令反馈与命令建议中的生物群系、地物和结构显示为对应翻译而非标识符。Show the biomes, features and structures in the co...
Heaven Paradise Plant Mod
Mod that add essences to the game like "Mystical Agriculture".
project-560696
This is a library mod that adds a critical flag to living entity, and this crit flag can be shared other mods.
Timber Mod by MYCF [FABRIC|QUILT] (1.20.1)
A simple TimberMod with 1 log and full tree switch
Mage Hand
A Magical Take on Item Automation
Immersive Portal Gun
Portal Gun using Immersive Portals functionaltiy