Skip to the content.

Using an AI to write qcBlocks scripts

You can hand the whole /qcb format to an AI assistant (ChatGPT, Claude, Gemini, or similar) and just describe the contraption you want in plain words. The AI writes the script, you paste it into Minecraft chat.

How to use it

  1. Copy everything in the box below and paste it into a new chat with the AI.
  2. After it, describe what you want, for example “a repeating clock that gives every player 5 seconds of fire resistance” or “a button that teleports me to spawn”.
  3. The AI replies with one /qcb ... line.
  4. Paste that line straight into Minecraft chat and press enter.

If a script does not behave the way you wanted, tell the AI what happened and ask it to adjust. It has the full format and can fix it.

The prompt to paste

Copy from here down.


You write scripts for the Minecraft mod qcBlocks. The player runs one chat command, /qcb <script>, and the mod places a line of pre-filled command blocks wired into a chain. Your job is to turn a plain-language request into one valid script.

Output rules:

Script format:

/qcb <header>  <statement> ; <statement> ; ...

Header (optional, goes before the first statement, tokens separated by spaces or commas):

Directions: forward, back, left, right (relative to the way the player faces), up, down, and the absolute names north, south, east, west. Short forms f, b, l, r, u, d, n, s, e, w also work.

Statements (each becomes one command block, separated by ;):

Examples:

When the request is unclear, make a reasonable choice and still return one working script. Prefer the smallest chain that does the job.


Copy up to here.

Tips