Agent skill

Minecraft Commands Scripting

by Jahrome907 in Jahrome907/minecraft-agent-skills

Write and debug Minecraft Java 26.x and 1.21.x commands, selectors, execute chains, scoreboards, NBT, and RCON scripts.

MITAuto-check passed

Install Minecraft Commands Scripting

skills CLI
$ npx skills add Jahrome907/minecraft-agent-skills --skill minecraft-commands-scripting -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Jahrome907/minecraft-agent-skills minecraft-commands-scripting --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Jahrome907/minecraft-agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/minecraft-commands-scripting .claude/skills/minecraft-commands-scripting && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
minecraft-commands-scripting
GitHub stars
169
Token cost
~1.3k tokens
SKILL.md length
284 words
Files
7 (incl. scripts, references)
Skills in repo
13
Repo updated
First seen
Licence
MIT

At a glance

Write and debug Minecraft Java 26.x and 1.21.x commands, selectors, execute chains, scoreboards, NBT, and RCON scripts.

  • Command-only work
  • SKILL.md covers Command Syntax Conventions, Bundled References And Examples, Command reference and RCON Scripting, plus 2 more sections
  • Runs Shell scripts from its folder; calls rsync
  • Use minecraft-datapack for complete datapack structures

What it does

Minecraft Commands Scripting is an agent skill from Jahrome907/minecraft-agent-skills. Write and debug Minecraft Java 26.x and 1.21.x commands, selectors, execute chains, scoreboards, NBT, and RCON scripts. Use for command-only work; use minecraft-datapack for complete datapack structures.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `references/command-reference.md`, `references/execute-cheat-sheet.md` and `references/selector-cheat-sheet.md`).

It works with Java. The repository describes itself as: Minecraft AI agent skills and dual-target plugin bundle for Codex and Claude Code. The licence is MIT.

When your agent uses it

  • Command-only work
  • Use minecraft-datapack for complete datapack structures

Example prompts

  • “/minecraft-commands-scripting”

Requirements

  • Python 3
  • A Bash shell

What it can do on your machine

Read from SKILL.md and the folder at commit dd57c5a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • rsync

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • minecraft.wiki

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Minecraft Commands Scripting loads about 1.3k tokens when it runs, and up to ~5.7k if it reads all its reference files. Until then it costs about 58 tokens; SKILL.md has 284 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from Jahrome907/minecraft-agent-skills at commit dd57c5a, republished under its MIT licence (© Jahrome907). 284 words, ~1,288 tokens.

Download SKILL.mdSave it as .claude/skills/minecraft-commands-scripting/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
minecraft-commands-scripting
description
Write and debug Minecraft Java 26.x and 1.21.x commands, selectors, execute chains, scoreboards, NBT, and RCON scripts. Use for command-only work; use minecraft-datapack for complete datapack structures.

Minecraft Commands & Scripting Skill

Before editing, inspect the exact Minecraft version and execution context (chat, function, command block, or RCON). Keep the requested scope and use only the relevant examples. Check current release notes for version-sensitive syntax.

Command Syntax Conventions

  • <required> — required argument
  • [optional] — optional argument
  • (a|b|c) — choose one
  • ... — repeating / multiple
  • Coordinates: ~ = relative offset, ^ = local (look-direction)
Routing Boundaries
  • Use when: the task is raw command chains, scoreboards, selector logic, or RCON command scripting.
  • Do not use when: creating or editing full datapack structures and registries (minecraft-datapack).
  • Do not use when: behavior depends on Java plugin or mod code (minecraft-plugin-dev/minecraft-modding).

Bundled References And Examples

  • Execute cheat sheet: references/execute-cheat-sheet.md
  • Selector cheat sheet: references/selector-cheat-sheet.md
  • Example scripts: scripts/examples/arena-countdown.mcfunction, scripts/examples/stopwatch-podium.mcfunction, scripts/examples/rcon-backup-warning.sh (one-time setup commands are called out in comments when needed)

Use the cheat sheets when you need fast command recall without scanning this whole skill file. Copy and adapt the example scripts as needed.


Command reference

Use references/command-reference.md for the relevant command family. It includes version boundaries for item components, attributes, text events, gamerules, and 26.x world clocks. Do not run example blocks as a batch; each demonstrates a separate operation.

RCON Scripting

Connect to a Minecraft server remotely using RCON (enable in server.properties):

properties
# server.properties
enable-rcon=true
rcon.password=your_password
rcon.port=25575

RCON is unencrypted. Keep the port bound to a trusted private network, VPN, or localhost, and inject the password through a protected secret rather than a command-line argument.

Bash RCON script (using mcrcon)
bash
#!/usr/bin/env bash
set -euo pipefail

: "${MCRCON_PASS:?inject MCRCON_PASS from a protected secret}"
export MCRCON_HOST="${MCRCON_HOST:-127.0.0.1}"
export MCRCON_PORT="${MCRCON_PORT:-25575}"

restore_saves() {
    mcrcon "save-on" >/dev/null || true
}
trap restore_saves EXIT INT TERM

# Send command
mcrcon "say Server backup starting in 5 minutes"
sleep 300
mcrcon "save-off"
mcrcon "save-all flush"

# Backup world
rsync -av /path/to/server/world/ /backups/world_$(date +%Y%m%d_%H%M%S)/

mcrcon "save-on"
trap - EXIT INT TERM
mcrcon "say Backup complete!"
Python RCON
python
import os

from mcrcon import MCRcon

with MCRcon("localhost", os.environ["MCRCON_PASS"], port=25575) as mcr:
    response = mcr.command("list")
    print(response)
    # "There are 3 of a max of 20 players online: Steve, Alex, Notch"
    
    players = response.split(": ")[1].split(", ") if ": " in response else []
    print(f"Online players: {players}")

Common Scripting Patterns

First-join setup (load and tick functions)
mcfunction
# load.mcfunction: create the objective
scoreboard objectives add initialized dummy

# tick.mcfunction: detect players who have not been initialized
execute as @a unless score @s initialized matches 1 run function mypack:on_first_join

# on_first_join.mcfunction
scoreboard players set @s initialized 1
give @s minecraft:stone_sword
give @s minecraft:bread 16
tellraw @s {"text":"Welcome! Here's a starter kit.","color":"green"}
Death counter + respawn
mcfunction
# tick.mcfunction — check deaths
execute as @a[scores={deaths=1..}] run function mypack:on_death

# on_death.mcfunction (separate file)
scoreboard players reset @s deaths
scoreboard players add @s total_deaths 1
Proximity detection
mcfunction
# Check if any player is within 5 blocks of a location
execute if entity @a[x=10,y=64,z=10,distance=..5] run function mypack:player_nearby
Math tricks (no fractions in scoreboards)
mcfunction
# Multiply @s.value by 1.5 using integer math (×3 then /2)
scoreboard players operation @s result = @s value
scoreboard players operation @s result *= #three constants
scoreboard players operation @s result /= #two constants
# Set #two and #three on load:
# scoreboard players set #two constants 2
# scoreboard players set #three constants 3

References

© Jahrome907, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references) in .codex/skills/minecraft-commands-scripting of Jahrome907/minecraft-agent-skills.

  • SKILL.md
  • references/command-reference.md
  • references/execute-cheat-sheet.md
  • references/selector-cheat-sheet.md
  • scripts/examples/arena-countdown.mcfunction
  • scripts/examples/rcon-backup-warning.sh
  • scripts/examples/stopwatch-podium.mcfunction

Open the folder on GitHubat commit dd57c5a

Compare with similar skills

Minecraft Commands Scripting next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Minecraft Commands Scripting compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Minecraft Commands Scripting this skillJahrome907/minecraft-agent-skills169—~1.3kAutomated safety check: PassMIT
Brainstormingxpinjection/test-driven-spring-boot11254 repos~2.6kAutomated safety check: PassMIT
Android API Diffgkd-kit/gkd43k—~796Automated safety check: PassGPL-3.0
Video Cover Imageitwanger/toBeBetterJavaer18k—~3.3kAutomated safety check: PassNone
Lancedb Update Lance Dependencylancedb/lancedb12k—~1.1kAutomated safety check: PassApache-2.0
Java SDK E2E Test with Replay Snapshotgithub/copilot-sdk11k—~1.8kAutomated safety check: PassMIT

Similar skills

  • Brainstorming

    xpinjection/test-driven-spring-boot

    You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior.

    112 GitHub starsUsed in 54 repos~2.6k tokens
    Agent WorkflowsAuto-check passed
  • Android API Diff

    gkd-kit/gkd

    Looks up Android framework Java and AIDL APIs across versions with the android-api-diff CLI: signatures, availability, source files and hidden-API access code.

    43k GitHub stars~796 tokensUpdated yesterday
    MobileAuto-check passed
  • Video Cover Image

    itwanger/toBeBetterJavaer

    Generate matched 3:4, 16:9, and 4:3 short-video cover images from toBeBetterJavaer video scripts or AI/Java technical topics.

    18k GitHub stars~3.3k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Update LanceDB to a specific Lance release or tag. An agent skill from lancedb/lancedb.

    12k GitHub stars~1.1k tokensUpdated today
    DatabasesAuto-check passed
  • Official

    Creates a Java SDK end-to-end test for the Copilot SDK that runs against a recorded YAML snapshot through a replay proxy, so CI needs no real authentication.

    11k GitHub stars~1.8k tokensUpdated today
    Testing & QAAuto-check passed
  • Fory Release

    apache/fory

    Prepare an Apache Fory release candidate from a clean release branch, including the version bump, RC tag, JVM staging, ASF source artifacts, SVN upload, and vote email.

    4.6k GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed

More from Jahrome907/minecraft-agent-skills

All 13 skills in this repo
  • Minecraft CI Release

    Jahrome907/minecraft-agent-skills

    Set up and review CI, artifact publishing, versioning, and release management for Minecraft 26.x or legacy 1.21.x mods and Paper plugins.

    169 GitHub stars~3.6k tokensUpdated 26 days ago
    Auto-check passed
  • Minecraft Datapack

    Jahrome907/minecraft-agent-skills

    Create, edit, and debug vanilla Minecraft 26.x and 1.21.x datapacks, including functions, advancements, recipes, loot tables, predicates, tags, and pack metadata.

    169 GitHub stars~2.7k tokensUpdated 26 days ago
    Auto-check passed
  • Minecraft Modding

    Jahrome907/minecraft-agent-skills

    Create, modify, debug, or migrate Minecraft mods for current NeoForge or Fabric 26.x, legacy 1.21.x, and Forge 1.20.1.

    169 GitHub stars~4.3k tokensUpdated 26 days ago
    Auto-check passed
  • Minecraft Plugin Dev

    Jahrome907/minecraft-agent-skills

    Create, modify, and debug server plugins for current Paper 26.x on Java 25 or legacy Bukkit-derived 1.21.x servers on Java 21.

    169 GitHub stars~4.3k tokensUpdated 26 days ago
    Auto-check passed
  • Minecraft Resource Pack

    Jahrome907/minecraft-agent-skills

    Create and debug Minecraft 26.x and 1.21.x resource packs, including pack metadata, textures, models, blockstates, item definitions, sounds, fonts, animations, and shaders.

    169 GitHub stars~3.2k tokensUpdated 26 days ago
    Auto-check passed
  • Minecraft Testing

    Jahrome907/minecraft-agent-skills

    Design and implement automated tests for current Minecraft 26.x or legacy 1.21.x mods and plugins using JUnit, MockBukkit, NeoForge Game Tests, or Fabric Game Tests.

    169 GitHub stars~3.8k tokensUpdated 26 days ago
    Auto-check passed

Works with

Questions about Minecraft Commands Scripting

What does Minecraft Commands Scripting do?

Write and debug Minecraft Java 26.x and 1.21.x commands, selectors, execute chains, scoreboards, NBT, and RCON scripts. Minecraft Commands Scripting is an agent skill from Jahrome907/minecraft-agent-skills.x commands, selectors, execute chains, scoreboards, NBT, and RCON scripts.

When should I use Minecraft Commands Scripting?

Minecraft Commands Scripting fits situations like: command-only work; use minecraft-datapack for complete datapack structures.

How do I install Minecraft Commands Scripting in Claude Code?

Run `npx skills add Jahrome907/minecraft-agent-skills --skill minecraft-commands-scripting -a claude-code`. Or copy the skill folder (.codex/skills/minecraft-commands-scripting in Jahrome907/minecraft-agent-skills) into .claude/skills/minecraft-commands-scripting in your project. Claude Code loads it when a task matches its description.

How do I install Minecraft Commands Scripting in Codex?

Run `npx skills add Jahrome907/minecraft-agent-skills --skill minecraft-commands-scripting -a codex`. Or copy the skill folder (.codex/skills/minecraft-commands-scripting in Jahrome907/minecraft-agent-skills) into .agents/skills/minecraft-commands-scripting in your project. Codex loads it when a task matches its description.

Can I use Minecraft Commands Scripting in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Jahrome907/minecraft-agent-skills --skill minecraft-commands-scripting -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/minecraft-commands-scripting, .gemini/skills/minecraft-commands-scripting, .github/skills/minecraft-commands-scripting and .opencode/skills/minecraft-commands-scripting in your project.

What does Minecraft Commands Scripting need to run?

Going by SKILL.md and its folder, Minecraft Commands Scripting needs a shell for the scripts in its folder and the command-line tools its instructions call (rsync). Our summary lists: Python 3; A Bash shell.

Does Minecraft Commands Scripting access the network?

SKILL.md names 1 domain. As links in the text: minecraft.wiki. This is read from the text; nothing was executed.

Is Minecraft Commands Scripting safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Minecraft Commands Scripting use?

Minecraft Commands Scripting is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Minecraft Commands Scripting use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.5k tokens, read only when the agent opens those files.

What are the alternatives to Minecraft Commands Scripting?

Skills that share tags, products or a category with Minecraft Commands Scripting: Brainstorming (xpinjection/test-driven-spring-boot, 112 stars), Android API Diff (gkd-kit/gkd, 43k stars), Video Cover Image (itwanger/toBeBetterJavaer, 18k stars) and Lancedb Update Lance Dependency (lancedb/lancedb, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Minecraft Commands Scripting?

Jahrome907 (a GitHub user) maintains it in Jahrome907/minecraft-agent-skills, which has 169 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on September 13, 2026.

Source: Jahrome907/minecraft-agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.