hytale-events-api

hytale-events-api is a skill for Claude Code, Codex from MnkyArts/hytale-skills. It costs 55 tokens per session (3,728 once invoked), scanned A, original, MIT.

A guide to reacting to events on a Hytale server, such as player actions, world changes, entity activity, and custom events.

In plain words
What is it for?
Use it to respond to connections, chat, interactions, block changes, damage, deaths, spawns, and other server activity.
Why use it?
It shows how to register listeners and control whether events are handled, cancelled, or processed in a particular order.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to respond to connections, chat, interactions, block changes, damage, deaths, spawns, and other server activity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mnkyarts/hytale-skills/hytale-events-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MnkyArts/hytale-skills --skill hytale-events-api
Clone the repo
git clone --depth 1 https://github.com/MnkyArts/hytale-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hytale-events-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/mnkyarts/hytale-skills/hytale-events-api/github.svg)](https://agentmods.dev/skills/mnkyarts/hytale-skills/hytale-events-api)
Your own site
<a href="https://agentmods.dev/skills/mnkyarts/hytale-skills/hytale-events-api"><img src="https://agentmods.dev/badge/skills/mnkyarts/hytale-skills/hytale-events-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hytale-events-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/mnkyarts/hytale-skills/hytale-events-api"><img src="https://agentmods.dev/badge/skills/mnkyarts/hytale-skills/hytale-events-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,728 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.03728
Opus 5 $0.00028 $0.01864
Sonnet 5 $0.00011 $0.00746
Haiku 4.5 $0.00006 $0.00373

Measured 11d ago against content hash 406208786c33, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

hytale-events-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hytale-events-api/SKILL.md · 709 lines

How it starts

The opening of the file, as written. The whole thing — 709 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hytale Events API

Complete guide for handling server events and creating custom event systems.

When to use this skill

Use this skill when:

  • Listening for player actions (connect, chat, interact)
  • Reacting to world changes (blocks, chunks)
  • Handling entity events (damage, death, spawn)
  • Creating custom events
  • Managing event priorities and cancellation
  • Implementing async event handlers

Event System Architecture

Hytale has two event systems:

  1. General Event Bus - Server-wide events (players, worlds, assets)
  2. ECS Event System - Entity-specific events (damage, interactions)

General Event Bus

Event Registration

Register in plugin setup():

@Override
protected void setup() {
    // Global listener - receives ALL events of this type
    getEventRegistry().registerGlobal(
        PlayerConnectEvent.class, 
        this::onPlayerConnect
    );
    
    // Keyed listener - receives events with specific key
    getEventRegistry().register(
        AddPlayerToWorldEvent.class, 
        "world_name", 
        this::onPlayerAddToWorld
    );
    
    // Priority listener
    getEventRegistry().registerGlobal(
        EventPriority.FIRST, 
        SomeEvent.class, 
        this::onSomeEvent
    );
    
    // Unhandled listener - only if no keyed handler processed
    getEventRegistry().registerUnhandled(
        SomeEvent.class, 
        this::onUnhandledEvent
    );
}

Event Priorities

public enum EventPriority {
    FIRST((short)-21844),   // Runs first
    EARLY((short)-10922),
    NORMAL((short)0),       // Default
    LATE((short)10922),
    LAST((short)21844);     // Runs last
}

Handlers execute in priority order. Use custom short values for fine-grained control.

Event Cancellation

For cancellable events:

private void onPlayerInteract(PlayerInteractEvent event) {
    if (shouldBlock(event)) {
        event.setCancelled(true);
    }
}

Check cancellation:

private void onEvent(SomeEvent event) {
    if (event instanceof ICancellable cancellable && cancellable.isCancelled()) {
        return; // Already cancelled by earlier handler
    }
    // Process event
}

Read the full file on GitHub · 709 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 709 lines · 55 tokens per session scan A 406208786c33

Subscribe to this mod's changes

hytale-events-api is a skill published in the GitHub repository MnkyArts/hytale-skills (5 stars, last pushed 7mo ago), licensed MIT. It adds 55 tokens to every session and 3,728 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

league-akari-sgp-data-source

Use when implementing or reviewing League Akari SGP/LCU data-source selection, SGP API clients, League Servers remote config, Tencent cross-region queries, token handling, or per-feature SGP interoperability.

LeagueAkari/LeagueAkari · 50 tokens

csharp-godot

Use when working with C# in Godot — conventions, GodotSharp API differences from GDScript, project setup, and interop.

jame581/GodotPrompter · 34 tokens

cloudflare-durable-objects

Cloudflare Durable Objects for stateful coordination and real-time apps. Use for chat, multiplayer games, WebSocket hibernation, or encountering class export, migration, alarm errors.

secondsky/claude-skills · 43 tokens

gamedev-multiplayer

Use when adding multiplayer or netcode to a game — client-server vs P2P, server authority and anti-cheat, state replication vs RPCs, prediction and reconciliation, lag compensation, plus Godot 4 / Unity NGO / Unreal wiring. NOT single-player gameplay (that is godot, unity, unreal), NOT matchmaking or server hosting…

ericrisco/rsc-harness · 86 tokens

cloudflare-do-turn-based-multiplayer

Design, implement, debug, or verify a remote turn-based multiplayer game whose rooms run on Cloudflare Durable Objects. Use for room and invite identity, reconnectable seats, WebSocket hibernation, concurrent turns, action idempotency, revision conflicts, or cross-browser game-state agreement. Do not trigger for…

swyxio/skills · 80 tokens

roblox-open-cloud

Roblox Open Cloud REST API for accessing data stores, assets, universes, places, users, groups, subscriptions, and Luau execution from outside the engine or via HttpService. Covers authentication (API keys, OAuth 2.0, avoiding legacy cookie auth), scopes and least-privilege, IP allowlists, key rotation and the 60-day…

nonlooped/roblox-suite · 128 tokens