
Custom Commands
This modification provides the ability to create custom command aliases for servers aiming to maintain a vanilla atmosphere. All configuration is implemented using the KDL language.
Server owners can create a static_data/commands.kdl
file that defines abbreviations and alternative names for various commands and triggers.
Supported Configuration Elements
literal "name" - creates a keyword for a command
requires [requirements] - sets conditions for executing the parent command:
permissionLevel
- minimum permission level for using the command
executes "command" - defines which specific command is executed when the parent element is called
Configuration Example
literal "afk" { //shorthand for AFK datapack https://www.planetminecraft.com/data-pack/afk-pack/
executes "trigger afk"
}
literal "giveall" { //give standard items to all players on the server
requires permissionLevel=4
literal "diamonds" { //escaped quotes
executes "give @a diamond{display:{Name:'[{"text":"happy diamond","italic":false}]'}} 64"
}
literal "magicsword" { //raw KDL 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"#
}
}