Croparia IF Docs

|

General

Section
Modpack Authors
6 TOP-LEVEL ITEMS
    Modpack Authors
    Runtime Data Generation System

      Create a Data Generator

Configuration and Commands

Croparia IF stores its configuration file at [game directory]/config/croparia.json. Many of these settings directly affect crop loading, generated output directories, and runtime data generation behavior, so this page is best read together with the Runtime Data Generation System.

The mod reads its configuration when the game starts and when you enter a world, then shuts down the related runtime resources when you leave that world.

Configuration Entries

The entries below come from the Config implementation in the current 1.1.0a source code.

NameDefault ValueDescription
autoReload20Delay before scheduling one extra datapack reload after entering a world; values below 0 disable it
overridetrueWhether generated temporary data should be cleared automatically
filePath"croparia"Root directory for mod data files, including temporary data, crop definitions, generator directories, and more
recipeWizard"croparia\recipe_wizard\dump"Export directory used by the Recipe Wizard
fruitUsetrueWhether fruit crops can be right-clicked on the ground to convert them into materials
infusortrueWhether elemental infusion is enabled
ritualtrueWhether elemental rituals are enabled
soakAttempts1Number of soak attempts performed when Elemental Soak is triggered; set to 0 to disable it
cropYield2Material output count of built-in fruit crops
melonYield2Material output count of built-in melon crops
blacklist[]Crop blacklist; plain values mean crop IDs, while values starting with @ are treated as regex rules for mod namespaces

Commands

Commands are split into the client command /croparia and the server command /cropariaServer.

  • /croparia: only provides crop, melon, and generator commands, and only affects local client data.
  • /cropariaServer: provides server-side crop, melon, and generator commands, plus commands for editing configuration entries.

Crop and Melon Commands

  • /croparia|cropariaServer crop|melon query [crop ID]: query crop information. If no crop ID is given, it shows the crop information for the item in hand or the block you are pointing at.
  • /croparia|cropariaServer crop|melon dump [crop ID]: export crop definitions into crops/ or melons/ under the mod data root.
  • /croparia|cropariaServer crop|melon create [...arguments]: create a new crop definition in crops/ or melons/ under the mod data root.

Data Generator Commands

  • /croparia|cropariaServer generator query [pack handler ID] [generator name]: query the current state of a data generator.
  • /croparia|cropariaServer generator dumpBuiltin [pack handler ID] [generator name]: export built-in generators into the generator/ folder of the corresponding cache directory. If no name is given, all built-in generators are exported.
  • /croparia|cropariaServer generator clearBuiltin [pack handler ID] [generator name]: delete exported generator files that share the same names as built-in generators. If no name is given, all matching files are removed.

If you plan to keep editing those files by hand after exporting them, continue with:

Server Configuration Commands

  • /cropariaServer <entry>: query the current value of one configuration entry.
  • /cropariaServer <entry> [value]: change the value of one configuration entry.
  • /cropariaServer reset: show a reset confirmation prompt.
  • /cropariaServer reset confirm: reset the configuration file to its default values.

The following entries currently have matching server commands:

  • filePath
  • recipeWizard
  • infusor
  • ritual
  • fruitUse
  • autoReload
  • override
  • soakAttempts

cropYield, melonYield, and blacklist currently have no matching server commands and can only be edited through the configuration file.

Recommendations

  • If you are debugging missing generators, unloaded crops, or unexpected export directories, check filePath, override, and autoReload first.
  • If you want to modify built-in generators, it is usually best to export them with generator dumpBuiltin first, then continue with the Runtime Data Generation System and Create a Data Generator.
  • In blacklist, entries starting with @ are treated as regex rules against mod namespaces, so a careless pattern may hide more content than you expected.
In This Page
Configuration and Commands
NO EXTRACTED HEADINGS