Crop Block Appearance
Three types of resource file are involved to define a crop block appearance:
- Block State Definition: Map the block state properties to block model
- Block Model: The model of a block with textures, Croparia IF provides block models presets.
- Textures: The textures for layers, Croparia IF provide texture presets.
Example: Modify croparia:block_crop_netherite
1. Locate block state definition path
The crop name for croparia:block_crop_netherite is netherite, which is the trailing string after ...block_crop_.
Thus, the block state definition path is .../assets/croparia/blockstates/block_crop_netherite.json.
2. Write block state definition (make use of block model)
The default definition for crop block should be like this:
{
"variants": {
"age=0": {
"model": "croparia:block/crop_stage0"
},
"age=1": {
"model": "croparia:block/crop_stage1"
},
"age=2": {
"model": "croparia:block/crop_stage2"
},
"age=3": {
"model": "croparia:block/crop_stage3"
},
"age=4": {
"model": "croparia:block/crop_stage4"
},
"age=5": {
"model": "croparia:block/crop_stage5"
},
"age=6": {
"model": "croparia:block/crop_stage6"
},
"age=7": {
"model": "croparia:block/crop_stage7"
}
}
}
The keys like age=0 represent the age of the crop block.
If you want to use different model for a specific age, modify the value of model, which is croparia:block/... to your desired one.
The available alternative models are as follows:
croparia:block/crop_stage0croparia:block/crop_stage1croparia:block/crop_stage2croparia:block/crop_stage3croparia:block/crop_stage4croparia:block/crop_stage5croparia:block/crop_stage6croparia:block/crop_stage7croparia:block/animal_stage5croparia:block/animal_stage6croparia:block/animal_stage7croparia:block/elemental_stage5croparia:block/elemental_stage6croparia:block/elemental_stage7croparia:block/food_stage5croparia:block/food_stage6croparia:block/food_stage7croparia:block/monster_stage5croparia:block/monster_stage6croparia:block/monster_stage7croparia:block/nature_stage5croparia:block/nature_stage6croparia:block/nature_stage7
3. [Optional] Customize block model
The way to create your own block model is the same way as Minecraft. Here we introduce some textures presets that might be useful.
croparia:crop_stage_0croparia:crop_stage_1croparia:crop_stage_2croparia:crop_stage_3croparia:crop_stage_4croparia:crop_stage_5croparia:crop_stage_6croparia:crop_stage_7croparia:crop_stage_5_overlaycroparia:crop_stage_6_overlaycroparia:crop_stage_7_overlaycroparia:animal_stage_5croparia:animal_stage_6croparia:animal_stage_7croparia:animal_stage_5_overlaycroparia:animal_stage_6_overlaycroparia:animal_stage_7_overlaycroparia:elemental_stage_5croparia:elemental_stage_6croparia:elemental_stage_7croparia:elemental_stage_5_overlaycroparia:elemental_stage_6_overlaycroparia:elemental_stage_7_overlaycroparia:food_stage_5croparia:food_stage_6croparia:food_stage_7croparia:food_stage_5_overlaycroparia:food_stage_6_overlaycroparia:food_stage_7_overlaycroparia:monster_stage_5croparia:monster_stage_6croparia:monster_stage_7croparia:monster_stage_5_overlaycroparia:monster_stage_6_overlaycroparia:monster_stage_7_overlaycroparia:nature_stage_5croparia:nature_stage_6croparia:nature_stage_7croparia:nature_stage_5_overlaycroparia:nature_stage_6_overlaycroparia:nature_stage_7_overlay