跳到正文

IC2C Json Crops

作者:trinsdar

IC2 Classic addon adding json system for adding crops

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

IC2C Json Crops is an addon for ic2 classic on 1.19 making it possible to add custom crops, soils, farmlands, and seeds using json files. each json files is placed in config/ic2c/<subdir>, where subdir is crops for crops, seeds for seeds, farmalnds for farmlands, and subsoils for subsoils
Here’s the example crop json that gets generated:

{
"id": "examplemod:example",
"name": "ic2.crop.example", //Translation key for crop
"discoveredBy": "Example",
"displayItem": "minecraft:diamond", // can be either a string or an object
"properties": { //all these fields are required
"tier": 1,
"chemistry": 2,
"consumable": 3,
"defensive": 3,
"colorful": 4,
"weed": 5
},
"attributes": [
"Yellow",
"Light"
],
"textures": [ //must be as many textures as there are growth stages, as defined in growthSteps
"ic2:block/crops/reed/growing_0",
"ic2:block/crops/reed/growing_1",
"ic2:block/crops/reed/growing_reed_2"
],
"growthSteps": 3,
"drops": [
{
"item": "minecraft:diamond",
"count": 1
}
],
//optional
"cropType" : "AIR", //valid options are AIR, WATER, BOTH
"optimalHarvestStep": 3, //if omitted defaults to growthSteps
"stages": [ //if omitted or left empty, uses the defaults defined below. Also the last one in this list is used for it's stage and all stages after. stage number is determined by position in list
{ //all fields in this object are optional
"growth": 600, //if omitted, defaults to tier in properties object * 200
"minLightLevel": 1, //defaults to 0
"maxLightLevel": 14, //defaults to 15
"minHumidity": 0, //defaults to -1, which means it gets ignored
"maxHumidity": 9, //defaults to -1, which means it gets ignored
"blocksBelow": [ //list of valid blocks/block tags
"minecraft:dirt"
]
}
],
"droppingSeeds": true, //whether this crop can drop seeds if seed mode is enabled
"seedDrops": [
{
"item": "minecraft:dirt",
"count": 1
}
]
}

 

Note: This mod was writen in kotlin, so it requires Kotlin for forge

常见问题

IC2C Json Crops 支持哪些 Minecraft 版本?

IC2C Json Crops 支持 Minecraft Java 版 1.19.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

IC2C Json Crops 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

trinsdar 的其他作品

查看全部 →