tome
ModLibrary for creating server-side skills
Description
tome
A barebone library for creating server-side skills. Provides basic frameworks for skill casting, cooldowns, and containers. Does not include functional features like entity targeting.
Note: Until version 1.0.0, the API may change without prior notice.
Gradle Setup
Kotlin
repositories {
mavenCentral()
}
dependencies {
modImplementation("io.github.kouvali:tome:YOUR_VERSION")
}
Groovy
repositories {
mavenCentral()
}
dependencies {
modImplementation "io.github.kouvali:tome:YOUR_VERSION"
}
Usage
Here's a quick example of skill creation:
Java
Skill<Vec3> exampleSkill = Skill.<Vec3>builder()
.setStateFactory(
SkillStateFactory.alwaysOk(context ->
context.getSource().getForward()
)
)
.setTickBehavior(instance -> {
instance.getSource().setDeltaMovement(instance.getState());
instance.getSource().hurtMarked = true;
})
.setCompleteBehavior(instance -> {
instance.getSource().setDeltaMovement(Vec3.ZERO);
instance.getSource().hurtMarked = true;
})
.setInterruptPredicate(instance ->
!instance.getSource().isInvulnerable()
)
.setDurationProvider(
SkillDurationProvider.constant(20)
)
.build();
Kotlin
val exampleSkill: Skill<Vec3> = Skill {
alwaysOkStateFactory {
source.forward
}
tickBehavior {
source.deltaMovement = state
source.hurtMarked = true
}
completeBehavior {
source.deltaMovement = Vec3.ZERO
source.hurtMarked = true
}
interruptPredicate {
!source.isInvulnerable
}
constantDurationProvider(20)
}
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
Core Companion
An owner-bound AI companion that chats, remembers, builds a relationship, and runs survival tasks with Baritone path fin...
Gadget Lab
This mod adds in various gadgets and gizmos
Chainable Pickaxes
Upgraded pickaxes with chains! Created using MCreator.
Smooth Particles Reborn
Adds the functionality to spawn particles when you place a block (reborn)
PhLib
Library for my (and your; idc) Hex Casting addons.
Mixpnlb
A library organizer for Mixins that organizes and enhances the performance of mixins and textures.