Ic2c Crop Overrides is a mod that adds a system for overriding ic2c crops by using the same system as it's custom crops system. Overridden crops are put in the overrideCrops.json file. Currently it supports crops from ic2c extras and ic2 classic.Here's an example with comments:
{
"crops": [
{
"name": "Ferru", //The Unlocalized Crop Name for the Item or any display Option
"owner": "ic2", //Somewhat like a resourceLocation the "key"/"owner" of the object
"id": "ferru", //the Unique ID of the Crop related to the owner. (ResourceLocation like)
"discovered": "Alblaka", //Who created the Crop. Just a way to a display thing. Can be omitted and uses original crop's if so.
"dropchance": 0.3675459325313568, //A modifier to the existing drop chance, double number. Can be omitted and uses original crop's if so.
"optimalstage": 4, //What the Optimal Harvest stage is for harvesters to know when to perfectly harvest.
"totalstages": 4, //How many crop stages the parser has to expect. If the result does not match what you provide then it throws errors.
"attributes": [ //The Attributes that are used for CropBreeding. Look into the IC2C wiki what that does. (Visible to player and keep it below 5). Can be omitted and uses original crop's if so.
"Gray",
"Leaves",
"Metal"
],
"props": { //The Properties of a Crop this is mostly for breeding. Read Crop Documentation what each these values mean. Can be omitted and uses original crop's if so.
"tier": 6,
"chemistry": 2,
"consumable": 0,
"defensive": 0,
"colorful": 1,
"weed": 0
},
"display": { //The Display Item that is used for the SeedBags. [Optional]
"name": "thermalfoundation:material", //Minecraft Item registry name of the item use.
"meta": 0 //Metadata of the Item
},
"defaultStage": { //Default stage that you can create to dump values into that will be reused. Textures won't be loaded here. [Optiona]
"points": 800, //How many points it takes to grow. This can be either a lot or very little because the amount of points per growth tick can be dynamic based on the crops state. [Optional, Default: 0]
"redstoneStrength": 0, //If the crop should emit a redstone signal and which level. [Optional, Default: 0]
"resetStage": 2, //The Stage that the crop should default to when harvested. 1 is the first growth stage. Its between 1-maxGrowth stage. [Optional, Default: 1]
"lightLevel": "0" //If the crop should emit light and which strenght [Optional, Default: 0]
},
"stages": [ //The stages that the crop has.
{
"index": 1, //Index of the stage. Starts at 1 and ends at the number of "totalstages". so 1-4 in this case.
"parentIndex": -1, //Index of the parent definition to reduce text to write. Will only grab values that are not defined in this stage. Textures will be never grabbed, if stage is not present wont load anything. [Optional, Defaults to -1 (or DefaultStage)]
"textures": [ //Texture of the crop, you can add as many as you want. Each texture will be added as a seperate layer. Seethrough textures are supported, each texture goes more and more behind. Textures will be auto loaded.
"ic2c_crop_overrides:crop_metal_stage_1"
]
},
{
"index": 2,
"textures": [
"ic2c_crop_overrides:crop_metal_stage_2"
]
},
{
"index": 3,
"textures": [
"ic2c_crop_overrides:crop_metal_stage_3"
],
"points": 2000, //Any variable that was described in the DefaultStage can be also put into here same conditions apply.
"requirements": { //Requirements that the crop must fulfill before it can grow. [Optional]
"block": [ //If the Block is below the crop, up to 3 blocks below [Optional]
{
"ore": true, //If it is a oredict entry
"name": "blockCrystalEmpoweredEnori" //The BlockRegisry name or the Oredictionary entryname.
}
]
}
},
{
"index": 4,
"textures": [
"ic2c_crop_overrides:crop_ferru"
],
"drop": { //The Drop of the crop at the stage. Like the "Display" but with the amount of items being controlled. [Optional]
"name": "thermalfoundation:material",
"count": 1,
"meta": 0
}
}
]
}
]
}