Adding Crops

Mystical Customization allows you easily add your own crops.

Adding A Crop

Crops are added via JSON files placed in /config/mysticalcustomization/crops/. Each file represents a new crop to be added.

Important

The name of the file is used as the crops ID. The ID must be all lowercase with underscores '_' in place of spaces.

The Crop File

This section will go over the values available to use in crop file. Syntax can be inferred from the example json below.

Note

Any field below marked with a purple badge is required. Any field marked with a green badge requires at least the version specified.

Name

You can manually define the display name for this crop.

{
  "name": "Test"
}

Omitting this field will auto generate a translation key with the format crop.mysticalcustomization.{id}.

Type

Required

You must assign this crop to a type, using that type's ID. Learn more about types and how to add your own here.

{
  "type": "mysticalagriculture:resource"
}
Note

In versions prior to 3.0.0, the crop type IDs did not contain mod IDs. So the above example would use resource instead.

Tip

You can see all the registered types in-game with the /mysticalcustomization types command.

Tier

Required

You must assign this crop to a tier, using the tier's ID. Learn more about tiers and how to add your own here.

{
  "tier": "mysticalagriculture:1"
}
Tip

You can see all the registered tiers in-game with the /mysticalcustomization tiers command.

Ingredient

Required

You must assign the crafting ingredient used to craft this crop's seed. This can be either an item or a tag, and uses the same syntax as a crafting recipe.

Note: As of version 2.1.3, this field is no longer required.

{
  "ingredient": {
    "item": "minecraft:iron_ingot"
  }
}

Colors

You should set a color for the crop, essence and seeds. Colors are set using HEX values.

{
  "colors": {
    "flower": "aaaaaa",
    "essence": "bbbbbb",
    "seeds": "cccccc"
  }
}

If you want to use the same color for all 3 (which you probably should), you can use this syntax instead.

{
  "color": "aaaaaa"
}

Textures

You should set the textures you want to use for your crop, essence and seeds.

{
  "textures": {
    "flower": "mysticalagriculture:block/flower_dust",
    "essence": "mysticalagriculture:block/essence_dust",
    "seeds": "mysticalagriculture:item/mystical_seeds"
  }
}
Note

In versions 4.1.0 and later, due to changes in Minecraft, this option now uses Model Locations instead of textures. Mystical Agriculture comes with models for each of the default textures listed below. If you would like to use your own, see Custom Models.

Built In Flower Textures

  • mysticalagriculture:block/flower_ingot
  • mysticalagriculture:block/flower_rock
  • mysticalagriculture:block/flower_dust
  • mysticalagriculture:block/flower_face

Built In Essence Textures

  • mysticalagriculture:item/essence_ingot
  • mysticalagriculture:item/essence_rock
  • mysticalagriculture:item/essence_dust
  • mysticalagriculture:item/essence_gem
  • mysticalagriculture:item/essence_tall_gem
  • mysticalagriculture:item/essence_diamond
  • mysticalagriculture:item/essence_quartz
  • mysticalagriculture:item/essence_flame

Built In Seed Textures

  • mysticalagriculture:item/mystical_seeds

Omitting this field (or any sub-field) will automatically assign to the Ingot textures. For the seed it will just be the regular seed texture.

Custom Models

You can use your own custom models by using a Resource Pack. Learn more about creating Resource Packs here.

To use a custom crop model, you will need to add both a BlockState and Model JSON to your resource pack at /mysticalagriculture/blockstates/<crop_id>_crop.json and /mysticalagriculture/models/item/<crop_id>_essence.json respectively.

Example BlockState File
diamond_crop.json
{
  "variants": {
    "age=0": {
      "model": "mysticalagriculture:block/mystical_resource_crop_0"
    },
    "age=1": {
      "model": "mysticalagriculture:block/mystical_resource_crop_1"
    },
    "age=2": {
      "model": "mysticalagriculture:block/mystical_resource_crop_2"
    },
    "age=3": {
      "model": "mysticalagriculture:block/mystical_resource_crop_3"
    },
    "age=4": {
      "model": "mysticalagriculture:block/mystical_resource_crop_4"
    },
    "age=5": {
      "model": "mysticalagriculture:block/mystical_resource_crop_5"
    },
    "age=6": {
      "model": "mysticalagriculture:block/mystical_resource_crop_6"
    },
    "age=7": {
      "model": "mysticalagriculture:block/diamond_crop"
    }
  }
}
Example Model File
diamond_crop.json
{
  "parent": "mysticalagriculture:block/mystical_resource_crop_7",
  "textures": {
    "flower": "mysticalagriculture:block/flower/diamond_flower"
  }
}

To use a custom essence model, you will need to add a Model JSON to your resource pack at /mysticalagriculture/models/item/<crop_id>_essence.json.

Example Model File
diamond_seeds.json
{
  "parent": "minecraft:item/generated",
  "textures": {
    "layer0": "mysticalagriculture:item/seeds/diamond_essence"
  }
}

To use a custom seed model, you will need to add a Model JSON to your resource pack at /mysticalagriculture/models/item/<crop_id>_seeds.json.

Example Model File
diamond_seeds.json
{
  "parent": "minecraft:item/generated",
  "textures": {
    "layer0": "mysticalagriculture:item/seeds/diamond_seeds"
  }
}

Crux

You can add a required crux block to this crop. A crux is a block that must be placed underneath the farmland for this crop to grow.

{
  "crux": "minecraft:cobblestone"
}

Enabled

You can disable this crop during the creation process if you really want to I guess.

{
  "enabled": false
}

Glint

2.0.0+

You can enable the enchantment glint effect for this crop's items.

{
  "glint": true
}

Required Biomes

2.1.2+

You can specify required biomes for this crop to be able to grow in.

{
  "biomes": [
    "minecraft:plains",
    "minecraft:desert"
  ]
}

Base Secondary Drop Chance

3.0.1+

You can modify the base chance of a second seed/essence dropping from the crop when planted on a valid farmland. Can be any value from 0.0 to 1.0.

{
  "baseSecondaryChance": 0.4
}

Respects Effective Farmland

5.0.1+

You can disable the +10% additional secondary seed drop chance applied when planted on the farmland block set in the Crop Tier.

{
  "respectsEffectiveFarmland": false
}

Essence Item

3.1.1+

You can specify your own essence item. This is the item that will drop from the crop when harvested.

{
  "essence": "minecraft:apple"
}
Note

Setting this value will prevent the default essence item from being registered. If you still want that item to be registered, you can set this value in the configure-crops.json file instead.

Recipe Config

3.1.2+

You can optionally disable the auto-generated recipes for your crops if you plan on adding your own instead.

{
  "recipes": {
    "crafting": false, // the vanilla 3x3 recipe (if enabled in the config)
    "infusion": false, // the infusion altar recipe for the seed
    "reprocessor": false // the default seed reprocessor recipe for the seed
  }
}

Example File

{
  "name": "Test",
  "type": "resource",
  "tier": "mysticalagriculture:1",
  "ingredient": {
    "item": "minecraft:iron_ingot"
  },
  "color": "eb7a34",
  "textures": {
    "flower": "mysticalagriculture:block/flower_dust",
    "essence": "mysticalagriculture:item/essence_dust"
  },
  "crux": "minecraft:cobblestone"
}