HyTrinkets-Core

HyTrinkets is a flexible Hytale plugin providing a customizable trinket slot system that allows developers to register custom equipment slots, items, and unique gameplay effects.

HyTrinkets

Into

HyTrinkets is a plugin that introduces a Trinket Slot system into Hytale.
This plugin does not add any new items into the game. Instead, it focuses purely on providing a flexible slot-based system that allows developers to define and manage their own trinket items.

image

Usage

Opening the Trinket Menu

You can open the Trinket interface using the following commands:

/tk  
/trinkets

Both commands will open the Trinket Menu, allowing players to view and manage their equipped trinkets.

Dev Guide

1. Creating a Trinket

Creating a Trinket Slot allows you to define custom equipment slots where trinket items can be placed.
Each slot can have its own limit, determining how many items a player can equip in that slot.

For example:

TrinketRegistry.RegisterSlot("Ring", 2);  
TrinketRegistry.RegisterSlot("Necklace", 1);  

This will create:

  • A Ring slot with 2 available spaces
  • A Necklace slot with 1 available space

2. Registering a Trinket

Registering a Trinket defines which items can be equipped in specific trinket slots.
This step links your custom item to a slot type so the system knows where it can be used.

For example:

TrinketRegistry.RegisterItem("Necklace", "ResurrectionCollar");

Or with a class reference:

TrinketRegistry.registerItem("ring", "UndeadRing", UndeadRing.class);

These examples register items so they can be equipped in their respective slots:

  • ResurrectionCollar → Necklace slot
  • UndeadRing → Ring slot

3. Creating a Trinket Effect

To define custom behavior for a trinket, you need to create a class that extends TrinketItem.
This allows you to control what happens when a player equips or unequips the item. For example:

class UndeadRing extends TrinketCallback {
    @Override
    protected boolean onEquip(Player player) {
        return true; // Allow the item to be equipped
    }

    @Override
    protected boolean onUnequip(Player player) {
        return true; // Allow the item to be unequipped
    }
}
  • onEquip is called when the player tries to equip the item
  • onUnequip is called when the player tries to remove the item
  • Returning false will prevent the action

Example Plugin

https://github.com/Novitnit/HyTrinkets-Item

The HyTrinkets-Core Team

profile avatar
  • 2
    Projects
  • 332
    Downloads

More from Novitnit

  • HyTrinkets-Item project image

    HyTrinkets-Item

    • 124
    • Mods

    HyTrinkets-Item is an example plugin that demonstrates the HyTrinkets-Core

    • 124
    • April 1, 2026
    • Mods
    • +3
  • HyTrinkets-Item project image

    HyTrinkets-Item

    • 124
    • Mods

    HyTrinkets-Item is an example plugin that demonstrates the HyTrinkets-Core

    • 124
    • April 1, 2026
    • Mods
    • +3