To register custom bait for the Anglers Almanac mod, you will use the Hytale Asset Editor to create a new FishBaitData asset. This allows the mod to recognize specific items as bait and apply catch modifiers. The bait file uses the Bait File Structure

1. Create the Bait Asset

  • Open the Hytale Asset Editor.
  • In the Asset Browser, right-click FishBaitData.
  • Select Create FishBaitData.
  • Unique Asset ID: Give it a unique internal name (e.g., Tool_Trap_Bait).
    • Note: This is the internal ID for the mod’s registry and does not need to match the Hytale Item ID.

2. Define Bait Properties

Once the asset is created, configure the fields in the inspector:

  • ItemId: Enter the actual Hytale ID of the item you want to function as bait (e.g., Tool_Trap_Bait).
  • Modifiers: This section defines how this bait affects your fishing success.
    • TargetId: The ID of the fish or loot you want this bait to attract.
    • ChanceMultiplier: The multiplier applied to the spawn weight of the target (e.g., 2.0 to double the chance).

3. How Bait Works In-Game

The mod automatically detects items in your hotbar that have a corresponding FishBaitData asset.

  • Detection: The mod searches your Hotbar and Utility slots for valid bait.
  • Consumption: When a fish is hooked, the mod consumes 1 unit of the detected bait.
  • Notifications:
    • A Green notification appears if bait is successfully used.
    • A Red notification appears if you have run out of bait or have no valid bait equipped.

4. Example JSON Structure

If you are editing the .json files directly, your bait file should look like this:

{
  "ItemId": "Tool_Trap_Bait",
  "Modifiers": {
    "targetId": "Fish_Rare_Bass",
    "chanceMultiplier": 2.5
  }
}