Velt is a plugin in its alpha stages that allows you to create simple scripts to customize your server.
With Velt's builtin utilities, it's extremely easy to get started and add in what you want, even for people who don't are just starting Javascript, and even for people migrating from Skript, Velt isn't too hard to learn..
Examples
Simple feed command with Velt
commands.create('feed', {
permission: 'velt.feed',
playerOnly: c`&cOnly players can run the feed command`
}, sender => {
sender.setFoodLevel(20);
sender.sendMessage(c`&6You have been saturated!`);
});A more complex teleport command
//Works with /teleport coords and /teleport player
commands.create('mytp', {
subs: {
'player (player)'(sender, player) {
sender.teleport(player);
},
'coords (number) (number) (number)'(sender, x, y, z) {
sender.teleport(cast.asLocation({ x, y, z, world: sender.getWorld() }));
}
}
});Simple GUI with Velt
new Gui('My GUI', 6)
.format(0, 'diamond sword')
.format(1, 'iron sword')
.format(2, 'stone sword', () => server.broadcast('I got clicked!'))
.show(player);Schedule a task every second
server.schedule({ seconds: 1 }, () => {
console.log('This is called every second');
});Getting Started
To start using Velt, you'll need to download the jar, add it into your plugins folder, and then restart your server.
Once you've restarted, there should be a new folder in your plugins folder called Velt. Then, in the Velt folder, there is a node_modules folder (generally you shouldn't touch this unless you know what you're doing) and a scripts folder.
In the scripts folder, you can add in your script (for example, "Script.js"), add in your code, and restart the server to run your script.
If you want to find out more about how to use Velt, go to https://velt.js.org.
Note if you want to help contribute, we need an implementation of the node http module in Java (or the JS XMLHttpRequest so we can use http-browserify to add compatibility that way). If you would be willing to help, we'd greatly appreciate it.
Features
- Import Java classes, and use them in your Javascript code
- Use a set of simple helpers to write simple, concise code
- Write your code in TypeScript (Experimental - Don't Use In Production)
- Use the same modules you normally use in node to write your code much easier (Partial Support Only)
- Install npm modules (Not yet added)
Experimental Builds
You can use the latest development builds of Velt before the releases themselves by downloading the artifacts from our Github Actions page.
Support
If you'd like to ask for help, have a question about Velt, or have suggestions and ideas for additions to Velt, you can let us know on our Guilded Server.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta