Animal config

Located in server/plugins/MochiFarm/animals_config

example_cow.json

{
  "default_entity": true,
  "config_name": "example_cow",
  "type": "COW",
  "display_name": "{#C4741E}Basic Cow",
  "time_growth": 600,
  "breeding_items": [...],
  "egg": {...},
  "drop_items": [...],
  "passive_drop_items": [...],
  "tools": [...]
}

default_entity - all entities of the COW type will be replaced with this config config_name - It's better to use the file name without spaces type - type of entity in minecraft display_name - animal name time_growth - how many seconds will the animal grow egg - LiteItem drop_items - items that drop when harvest/killing an animal. LiteDrop passive_drop_items - items that drop within a certain time interval. LiteDrop tools - tools that are activated by animals

breeding_items

Items that allow you to breed animals. You feed them with these items, then after a while a new small animal appears.

"breeding_items": [
    {
      "item": {
        "amount": 1,
        "material": "WHEAT",
        "display_name": "{#FFE067}Basic Wheat"
      },
      "time": 600,
      "chance": 50.0,
      "need_partner": true
    }
  ]

item - LiteItem time - time in seconds after which the animal will give birth chance - time for a successful birth need_partner - If enabled, a partner is required for a successful pregnancy. Otherwise, after the pregnancy, you will immediately become pregnant

tools

 "tools": [
    {
      "id": 58151528431300,
      "item": {
        "amount": "1",
        "material": "SHEARS",
        "display_name": "{#ADADAD}Shears"
      },
      "time": 600,
      "baby": false,
      "drops": [LiteDrop]
    }
  ]

item - LiteItem time - tool reload time for a one entity baby - if enabled then the entity becomes small after use

Last updated