Adds an extra inventory which lets mod developpers register extra slots for the player to equip specific items in it
Arcane Rig is an extensible equipment framework for Hytale mods, allowing developers to define new equippable slots with built-in persistence, validation, and window integration.
It also provides to players a GUI to equip and unequip items from it.
In the setup method of your plugin:
ArcaneRigPlugin.onApiReady(api -> {
SlotDescriptor slot = SlotDescriptor.builder("ToolPickaxe")
.displayName("Pickaxe")
.canEquip(stack -> stack.getItemId().contains("Pickaxe"))
.build();
api.registerSlot(slot)
});
0 Comments