AgriCraft & Mystical Agriculture
Drakma opened this issue ยท 9 comments
So I know that the entire configuration system has been changed up, so I was looking at getting Mystical Ag working with AgriCraft. Can you supply an example of what should be done? Can I just create a new plants.json and it'll work?
Where is that manifest that it must be registered into that would explain the problems I was having getting it to load.
Oh wait... I removed the need for a manifest... now I remember.
You should just have to place the JSON files in the config/agricraft/JSON/defaults
directory and they should load.
Here is a small reference guide to the plant format.
https://github.com/InfinityRaider/AgriCraft/wiki/AgriPlant-JSON
I was not able to get it to work. I probably screwed something up now that I know that I'm putting the files in the right place that should help me. I'm trying to integrate mystical agriculture myself in fact.
So would this be a proper layout for the files.
http://imgur.com/daoJ5rW
Yes. They are probably being found. I would need the log files to tell you what is going on exactly.
I am trying to do the same thing. But because I don't need to autogenerate any crops since they already exist, I don't think I need "seed_name" in the structure provided above; so I wanted to use "seed_items" but not entirely sure what I am supposed to put in there.
Sorry I don't know how to insert spoilers (if they exist here)
Please tell me for future reference how should I link this kind of stuff on github.
{
"enabled": true, # Determines if the plant should be loaded or not.
"path": "defaults/resource/plants/inferium_0_plant.json", # An internal field used for the transmission of JSON definitions.
"id": "inferium_0_plant", # The unique string id for the plant.
"plant_name": "Inferior Inferium Crop", # The name of the plant. This does not need to be unique.
"seed_name": "", # The name of the autogenerated seed for the plant. This will not be used if a valid seed item is defined.
"seed_items": [mysticalagriculture:tier1_inferium_seeds], # An array containing the string representations of predefined seed items.
"description": {
"translations": {}, # An array containing locale:translation entries.
"default": "Inferior Inferium Seeds" # The default description of the plant.
},
"growth_chance": 1.0, # The chance the plant has of growing on a random tick [range: 0.0-1.0].
"bonemeal": false, # Determines if the plant accepts fertilizer to accelerate its growth.
"tier": 1, # The tier of the plant. A legacy value.
"weedable": false, # Determines if the plant acts like a weed and cannot be harvested normally.
"aggressive": false, # Determines if the plant should try to overtake neighboring crops.
"spread_chance": 0.4, # Determines the chance the plant has of attempting to move to a neighboring crop [range: 0.0-1.0].
"spawn_chance": 0.0, # Determines the chance the plant has of randomly spawning in an unoccupied crop [range: 0.0-1.0].
"products": {
"products": [ # A list containing the possible products of the plant.
{
"min": 1,
"max": 10,
"chance": 0.95,
"required": true,
"item": "mysticalagriculture:inferium_essence",
"meta": 0,
"tags": "",
"ignoreMeta": false,
"ignoreTags": [],
"useOreDict": false
}
]
},
"requirement": {
"min_light": 10, # The min integer light value that the plant can grow in [min: 0].
"max_light": 16, # The max integer light value that the plant can grow in [max: 16].
"soils": [inferium_soil], # Array containing string ids for AgriSoils that are considered valid for this plant.
"bases": [], # Array containing string representations of the blocks that must be below the soil block.
"nearby": {} # Array containing string representations of the blocks that must be near the plant.
},
"texture": {
"render_type": "cross", # Can be either "cross", "hash", or "stem". This determines the method used to render the plant.
"seed_texture": "mysticalagriculture:items/inferium_seeds", # A string representing the seed texure. This is used for the autogenerated seed items.
"plant_textures": [
"mysticalagriculture:blocks/crop0",
"mysticalagriculture:blocks/crop1",
"mysticalagriculture:blocks/crop2",
"mysticalagriculture:blocks/crop2",
"mysticalagriculture:blocks/crop3",
"mysticalagriculture:blocks/crop4",
"mysticalagriculture:blocks/crop4",
"mysticalagriculture:blocks/inferium_crop"
] # An array of strings representing the plant textures.
}
}
and then this is part of the fml log that included it
[18:03:33] [Client thread/INFO] [railcraft/]: Unstitching texture sheet: railcraft:manipulator_dispenser_train 3x1
[18:03:33] [Client thread/WARN] [AgriCore/]: Unable to load Element: "Q:\Documents\Curse\Minecraft\Instances\MadFirePack\config\agricraft\json\defaults\resource\plants\inferium_0_plant.json"!
[18:03:33] [Client thread/INFO] [AgriCore/]: [AGRI-DEBUG]: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 7 column 19
[18:03:33] [Client thread/INFO] [FML/]: Max texture size: 16384
[18:03:33] [Client thread/DEBUG] [FML/]: Bar Finished: Texture stitching - missingno took 0.002s
[18:03:33] [Client thread/DEBUG] [FML/]: Bar Finished: Texture creation took 0.004s
[18:03:33] [Client thread/DEBUG] [BloodMagic/]: Suppressed required texture errors in 548.0 ?s
[18:03:33] [Client thread/WARN] [AgriCore/]: Unable to load Element: "Q:\Documents\Curse\Minecraft\Instances\MadFirePack\config\agricraft\json\defaults\resource\plants\inferium_0_plant.json"!
[18:03:33] [Client thread/INFO] [AgriCore/]: [AGRI-DEBUG]: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 7 column 19
[18:03:33] [Client thread/DEBUG] [FML/]: Bar Finished: Texture mipmap and upload - missingno took 0.068s
[18:03:33] [Client thread/ERROR] [FML/]: MultiModel minecraft:builtin/missing is empty (no base model or parts were provided/resolved)