Mod

Custom Commands

Quick rating

Custom Commands

No reviews yet

custom command aliases for vanillish servers written in kdl

API/Library
Mod Loaders
Fabric
Minecraft
1.18

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 Unsupported
Server Required

About

Project Details

Type
Mod
License
Mozilla Public License 2.0
Latest Version
1.1.0
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

Source Issues Wiki Discord

About

Description

Custom Commands

custom command aliases for vanillish servers written in kdl

custom commands lets server owners write a file at static_data/commands.kdl to add aliases or shorthands for special commands or triggers

current supported nodes: - literal <name> - keyword command node - requires [requirements] - requirements for parent node, properties determine requirements: - opLevel - required op level to run command (permissionLevel will work but is considered deprecated) - permission - fabric permissions api permission key required to run command - executes <command> - sets what command the parent node executes

to do: - [ ] allow arbitrary arguments instead of just keywords - [ ] add more properties for requirements - [x] vanilla op level - [x] fabric permissions api

sample configuration: kdl literal "afk" { //shorthand for afk data pack https://www.planetminecraft.com/data-pack/afk-pack/ executes "trigger afk" } literal "giveall" { //give preset items to everyone on the server requires permissionLevel=4 literal "diamonds" { //escaped quotes executes "give @a diamond{display:{Name:'[{\"text\":\"happy diamond\",\"italic\":false}]'}} 64" } literal "magicsword" { //kdl raw strings executes r#"give @p netherite_sword{Unbreakable:1,display:{Name:'[{"text":"magic sword","italic":false}]',Lore:['[{"text":"a sword passed down","italic":false}]','[{"text":"through the ages","italic":false}]','[{"text":"from hero to hero","italic":false}]']},Enchantments:[{id:fire_aspect,lvl:2},{id:knockback,lvl:2},{id:looting,lvl:3},{id:sharpness,lvl:5}]} 64"# } }

Custom Commands

custom command aliases for vanillish servers written in kdl

custom commands lets server owners write a file at static_data/commands.kdl to add aliases or shorthands for special commands or triggers

current supported nodes:

  • literal <name> - keyword command node
  • requires [requirements] - requirements for parent node, properties determine requirements:
    • permissionLevel - required permission level to run command
    • executes <command> - sets what command the parent node executes

sample configuration:

literal "afk" { //shorthand for afk data pack https://www.planetminecraft.com/data-pack/afk-pack/
    executes "trigger afk"
}
literal "giveall" { //give preset items to everyone on the server
    requires permissionLevel=4
    literal "diamonds" { //escaped quotes
        executes "give @a diamond{display:{Name:'[{\"text\":\"happy diamond\",\"italic\":false}]'}} 64"
    }
    literal "magicsword" { //kdl raw strings
        executes r#"give @p netherite_sword{Unbreakable:1,display:{Name:'[{"text":"magic sword","italic":false}]',Lore:['[{"text":"a sword passed down","italic":false}]','[{"text":"through the ages","italic":false}]','[{"text":"from hero to hero","italic":false}]']},Enchantments:[{id:fire_aspect,lvl:2},{id:knockback,lvl:2},{id:looting,lvl:3},{id:sharpness,lvl:5}]} 64"#
    }
}

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

~1,000
Total Downloads
CurseForge
<1,000
Modrinth
<1,000
Last Updated
CurseForge
Modrinth
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync