ModsJava
Advancement Command
Java mod listed for Minecraft 1.12. Download on the author's site.
⬇ Download on SpigotRuns a command, optionally as console or permission elevated when receiving advancements
Documentation
See examples below for format
Each entry must define:
If no other configuration is provided, it will be ran as the player without op or any elevated permissions.
Alias will alias one advancement to run the same commands as another, so you don't have to duplicate it.
Keys
Inside of a command, you may use the following variables
on_advancement:
# example of running command temporarily as op - be careful, any sub commands of this command will have op too!
- advancement: minecraft:example
run_as: player
command: ranks add %player rank1
op: true
# run a standard command with no permissions
- advancement: minecraft:example
run_as: player
commands:
- say Hey I just got an advancement!
- me Dances!
op: false
# run a command as the console (command feedback to console instead of the player, ideal for rank changes)
- advancement: myplugin:gainrank1
run_as: console
command: ranks add %player rank1
op: false
# run a command temporarily given a specific permission node, but not op
- advancement: myplugin:teleport_to_secret
run_as: player
command: teleport %player some secret coords
permission: minecraft.command.teleport
- advancement: minecraft:husbandry/tame_an_animal
alias: myplugin:teleport_to_secret
- advancement: minecraft:husbandry/plant_seed
alias: myplugin:teleport_to_secret
Documentation
See examples below for format
Each entry must define:
- advancement
- command OR commands OR alias
If no other configuration is provided, it will be ran as the player without op or any elevated permissions.
Alias will alias one advancement to run the same commands as another, so you don't have to duplicate it.
Keys
- advancement: the advancement key such as minecraft:husbandry/root to trigger on
- command: what command to run, see variables below for template variables
- commands: Alternatively, a list of what command to run, see variables below for template variables
- run_as: player or console - who receives the command feedback
- op: Should player be given temporary op for this command. Unnecessary for run_as: console
- permission: Permission node to give temporarily for this command. Example:
permission: minecraft.command.teleport - permissions: Same as above, but a list of permission nodes. Example:
permissions:
- minecraft.command.teleport
- some.other.perm - alias: Alias this advancement to run the same command information as another advancement defined here. You may still define permissions, run_as and op on the aliased entry, which will be added onto the permissions granted by the alias target.
In other words, you can alias foo to bar, where bar is defined to have permission b, and foo (the alias) is defined to have permission a, the command defined in bar will have both a and b permissions.
Inside of a command, you may use the following variables
- %PLAYER: The name of the player earning the advancement.
- %UUID: The UUID of the player earning the advancement.
- %PLAYERDISPLAYNAME: The display name of the player earning the advancement. (might be the same as player)
- %ADVANCEMENT: The advancement key (eg minecraft:adventure/root) being earned.
Code (Text):
on_advancement:
# example of running command temporarily as op - be careful, any sub commands of this command will have op too!
- advancement: minecraft:example
run_as: player
command: ranks add %player rank1
op: true
# run a standard command with no permissions
- advancement: minecraft:example
run_as: player
commands:
- say Hey I just got an advancement!
- me Dances!
op: false
# run a command as the console (command feedback to console instead of the player, ideal for rank changes)
- advancement: myplugin:gainrank1
run_as: console
command: ranks add %player rank1
op: false
# run a command temporarily given a specific permission node, but not op
- advancement: myplugin:teleport_to_secret
run_as: player
command: teleport %player some secret coords
permission: minecraft.command.teleport
- advancement: minecraft:husbandry/tame_an_animal
alias: myplugin:teleport_to_secret
- advancement: minecraft:husbandry/plant_seed
alias: myplugin:teleport_to_secret
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.12
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Advancement Command is a free Minecraft Java mod. Compatible with Minecraft 1.12. Downloaded 245 times (via Spigot). Download it and open it directly in the game.