promotional bannermobile promotional banner

Loyal Companion

Turn friendly mobs into loyal companions with levels, skills, feeding, recall, HUD, revival hearts, enhanced variants, and configurable server/singleplayer settings.
Back to Files

loyal-companions-1.5.0.jar

File nameloyal-companions-1.5.0.jar
Uploader
MKI96MKI96
Uploaded
May 28, 2026
Downloads
209
Size
413.7 KB
Mod Loaders
Fabric
File ID
8158368
Type
R
Release
Supported game versions
  • 26.1.2

Curse Maven Snippet

Fabric

modImplementation "curse.maven:loyal-companion-1532987:8158368"

Learn more about Curse Maven

What's new

🐾 Loyal Companions Changelog

Modded mob compatibility, API support, config whitelists, food overrides, and persistence fixes.


⭐ New Features

    Added Modded Mob Compatibility API
      Other mods can now register their own mobs as valid companion entities. Other mods can block unsafe or unwanted entities from being captured. Other mods can define custom companion food rules. Added public API class: com.mki.loyalcompanions.api.LoyalCompanionsApi
    Added Config Whitelist and Blacklist
      Modpack creators can now enable specific modded mobs without requiring direct API support from the other mod. Added companion_entity_whitelist Added companion_entity_blacklist Blacklist entries always take priority over whitelist and API registrations.
    Added Config Food Overrides
      Added companion_food_overrides Modded companions can now have custom food items defined through config. Single food item entries now display the actual item name in the companion menu. Multiple food items can be configured with a generic or custom translation label.

🧩 Mod Compatibility Example

Example setup for a mod such as WildCreatures:

companion_entity_whitelist=wildcreatures:crab
companion_entity_blacklist=wildcreatures:shark,wildcreatures:jellyfish,wildcreatures:mussel
companion_food_overrides=wildcreatures:crab=minecraft:wheat
    wildcreatures:crab can now be captured as a companion. wildcreatures:shark, wildcreatures:jellyfish, and wildcreatures:mussel are blocked. The crab accepts Wheat as companion food.

🧪 API Example

LoyalCompanionsApi.allowCompanionEntity("wildcreatures:crab");

LoyalCompanionsApi.setCompanionFood(
    "wildcreatures:crab",
    "food.wildcreatures.crab",
    "minecraft:wheat",
    "minecraft:apple"
);

LoyalCompanionsApi.blockCompanionEntity("wildcreatures:shark");
LoyalCompanionsApi.blockCompanionEntity("wildcreatures:jellyfish");

🍖 Food System Improvements

    Configured modded food rules are now used by the companion feeding system. Configured food now appears correctly in the companion menu. Single-item food configs now show the item name directly, such as Wheat. Custom translation keys are still supported for more advanced food labels. The system falls back to vanilla or modded animal food logic if no override exists.

🖥️ UI Improvements

    Modded entity names are now displayed in a readable format. Instead of showing raw translation keys like Names with underscores are formatted more cleanly, such as Blue Crab for example.

📘 Documentation

    Added documentation for the compatibility API. Added documentation for entity whitelist and blacklist configuration. Added documentation for companion food override configuration. Added WildCreatures-style examples for modpack creators.

🐾 Summary

This update greatly improves compatibility with modded friendly mobs by adding a developer API, config-based whitelists and blacklists, custom food overrides, better UI names, and stronger persistence handling for special vanilla companion data.

This mod has no additional files