promotional bannermobile promotional banner

TamableAPI

A Utility API that set ups alot of the generic code used for Taming, Breeding or Aging, which can be applied to any Entity that extends the `Mob` class with nothing more than an interface!

This is an API meant to be used by other mods and is not a standalone mod, its the thirdAPI I've ever made which actually also uses the other two API's are dependencies, its intented to provide a base setup for making any mob in the game Tamable, Collarable, Ageable & Breedable.

By doing nothing more than making a mob implement a few interfaces the mob will support player taming with food, sitting and standing modes (without animation), feeding to heal a tamed pet, aging, forced aging, breeding, following / teleport behaviour, defend behaviour, colored collar that can be dyed (collar does not render).. basically anything a tamed wolf or cat does.

Any mob specific behaviour such as sitting animation / mode or rendering of a collar is left up to the mods using this API to implements, additionally there is methods that can be overriden to change the settings of the automatically setup goals that are added to mobs based on their interfaces.

Any API I make is mainly meant for usage in something else I'm working on or in general for my mods, however they are available for public use if a user desires

All infomation required to use this API can be found here;

Additonal Notes: if you do not override the Tamable.isTamableFood(ItemStack) method then it will either default to any items tagged under the namespace of `tamable:{mob class name}_food` or to the result of Animal.isFood(ItemStack) if the mob is an instance of Animal and also some mobs override interaction behaviour in a way that prevents the taming, breeding & collar interactions from triggering, you will need to call them manually with a mixin to fix that.

TamableAPI Team

Forgeborn tier frameprofile avatar
  • 16
    Followers
  • 28
    Projects
  • 112.0K
    Downloads

Hard at work on my Mob Selector mod port to 26.1.2 with more features and multiplayer support! Development is taking awhile due to starting from scratch and having a lovely girlfriend now who desires my attention ever so much

More from Spiderman31807View all

  • Goal Injector project image

    Goal Injector

    A simple mod that adds a custom event `DefineGoalsEvent` that allows the modification and query of a mobs goals during the registration (for modders)

    • 24
    • October 2, 2026
  • AttachmentsAPI project image

    AttachmentsAPI

    Allows registration of saved, synched custom data on any entity using a simple event, attachments can also be setup to allow changing from only serverside or only clientside but by default can be set by client or server

    • 20
    • September 30, 2026
  • Chunks by Chunk project image

    Chunks by Chunk

    Restricts Players to their Chunk bounds, which can be extended by earning XP (1 Chunk per point, not Linked to XP it just increases when it does)

    • 1.1K
    • September 21, 2026
  • Chillax project image

    Chillax

    Provides a toggle keybind for sitting, laying and crawling

    • 24
    • September 21, 2026
  • Goal Injector project image

    Goal Injector

    A simple mod that adds a custom event `DefineGoalsEvent` that allows the modification and query of a mobs goals during the registration (for modders)

    • 24
    • October 2, 2026
  • AttachmentsAPI project image

    AttachmentsAPI

    Allows registration of saved, synched custom data on any entity using a simple event, attachments can also be setup to allow changing from only serverside or only clientside but by default can be set by client or server

    • 20
    • September 30, 2026
  • Chunks by Chunk project image

    Chunks by Chunk

    Restricts Players to their Chunk bounds, which can be extended by earning XP (1 Chunk per point, not Linked to XP it just increases when it does)

    • 1.1K
    • September 21, 2026
  • Chillax project image

    Chillax

    Provides a toggle keybind for sitting, laying and crawling

    • 24
    • September 21, 2026