Configurations - MUYUTwilighter/Croparia GitHub Wiki
Configurations
The config file is located at .../{GameDir}/config/croparia.json
.
The properties are as follows:
cropPath
: Where the crop definition file is located, defaultcrops
packPath
: Where the auto-generation folder is located, defaultconfig/croparia
dumpPath
: The path to export files, including crop definition, recipes, etc.autoReload
: Auto-reload datapack on every world loaded, . Default:true
override
: If true, Croparia IF will try to delete all the files underpackPath
before generating files. Default:true
fruitUse
: Enable fruit items to generate the material by use them on the block. Default:true
infusor
: Enable infusor functionality. Default:true
ritual
: Enable ritual stand functionality. Default:true
blacklist
: Blacklist for crop names, if a crop with name in the list, it will not be registered. You can use@modid
to disable all crops derived from a specified mod. Default:[]
(empty)
Q&A
@modid
in blacklist for crops isn't working
Mod selector First, check if the entries are correctly set. It should start with @
followed by the mod ID, not the mod name.
Then, you need to add every mods that deriving a crop you want to disable, as multiple mods might provide one material with different items, while Croparia IF will try to add the compat-crop if only 1 mod is declared with the compatibility.
For example, from the code given in CompatCrops, crop aluminum
is defined by Tech Reborn, Modern Industrialization and GregTech Modern. Then, Croparia IF will try add this crop as long as ANY mod mentioned above is present and not in blacklist.
@Nullable
public static final Crop ALUMINIUM = Crops.compat("aluminum", "#c:aluminum_ingots", 0xD9DCDC, 3, CropType.CROP, Map.of(
"techreborn", "item.techreborn.aluminum_ingot",
"modern_industrialization", "item.modern_industrialization.aluminum_ingot",
"gtceu", "material.gtceu.aluminum"
));
In this case, to fully disable a crop, you may consider use the crop name directly, or use mod selector for all the mods defined.
See also Compatible Materials.
Limit the ability of Horn O' Plenty and Mida's Hand
If you want to configure blacklist for croparia:horn_plenty
and croparia:midas_hand
, use datapack to update the corresponding tags:
- (item)
#croparia:horn_plenty_blacklist
: food thatcroparia:horn_plenty
cannot summon - (block)
#croparia:midas_hand_immune
: blocks thatcroparia:midas_hand
cannot be make an effect - (entity type)
#croparia:midas_hand_immune
: entity types thatcroparia:midas_hand
cannot be make an effect