Pyre
A library for the Diamondfire Minecraft server that allows you to create and compile code templates.
Install / Use
/learn @Amp63/PyreREADME
pyre
A tool for creating and modifying code templates for the DiamondFire Minecraft server.
PyPi Link: https://pypi.org/project/dfpyre/
Features
- All codeblock types and actions
- All code items
- Direct sending to DF via CodeClient
- Fully documented and typed actions
- Automatic type conversion (
inttoNumber,strtoString) - Shorthand format for variables
- Convert existing templates into equivalent Python code
Quick Start
To get started with pyre, install the module with pip:
pip install dfpyre
I also highly recommend you install CodeClient and enable CodeClient API in its General config tab. This will allow you to quickly send your templates to DiamondFire. You can download it here on Modrinth.
Basic Template Example:
from dfpyre import *
PlayerEvent.Join(codeblocks=[
PlayerAction.SendMessage(Text('%default has joined!'), target=Target.ALL_PLAYERS),
PlayerAction.GiveItems([Item('diamond_sword'), Item('steak', 10)])
]).build_and_send()
For more information and examples, check out the Wiki on Github.
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
104.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
345.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
