KubeJS Figura
No reviews yet
Offers some basic Figura capabilities designed for use with KubeJS by server developers.
Provides a framework or library for other mods to use.
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
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.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
A lightweight bridge that exposes core Figura avatar functionality directly to KubeJS scripts. This is designed to add minimal strain to environments and simply provide a safe way to (up)load avatars from server scripts.
For safety, it can only load avatars that already exist in the players avatar folder. This is primarily designed for automatic character systems scripted on the server-side, and allows developers to integrate Figura.
// Example usage of KubeJS Figura in a server script.
const StringArgumentType = Java.loadClass("com.mojang.brigadier.arguments.StringArgumentType");
const ServerPlayer = Java.loadClass("net.minecraft.server.level.ServerPlayer");
const KJSFigura = Java.loadClass("com.confect1on.kubejs_figura.KubeJSFiguraMod");
ServerEvents.commandRegistry(event => {
const { commands: Commands } = event;
event.register(
Commands.literal("figuraLoad")
.then(
Commands.argument("model", StringArgumentType.greedyString())
.executes(ctx => {
const player = ctx.source.entity;
const model = StringArgumentType.getString(ctx, "model");
if (player instanceof ServerPlayer) {
KJSFigura.load(player, model);
}
return 1;
})
)
);
event.register(
Commands.literal("figuraUpload")
.executes(ctx => {
const player = ctx.source.entity;
if (player instanceof ServerPlayer) {
KJSFigura.upload(player);
}
return 1;
})
);
event.register(
Commands.literal("figuraHandle")
.then(
Commands.argument("charName", StringArgumentType.greedyString())
.executes(ctx => {
const player = ctx.source.entity;
const charName = StringArgumentType.getString(ctx, "charName");
if (player instanceof ServerPlayer) {
KJSFigura.handle(player, charName, false);
}
return 1;
})
)
);
});
Screenshots
Gallery
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
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources