Adding Crops

Mystical Customization allows you easily add your own crops. Here's how you do it.

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 yellow 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 name. Learn more about types and how to add your own here.

{
  "type": "resource"
}

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 of 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"
  }
}

Built In Crop 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.

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"
  ]
}

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"
}