# First Install

#### Basic Setup & Installation

1. **Download** the `InfiniteCrops.zip`  bundled together with the InfiniteCrops.jar and InfiniteCropsRegion.jar and place them in your `plugins/` folder.
2. **Restart** your server; config files will generate in `plugins/InfiniteCrops/`.
3. If using **ItemsAdder,** **Nexo**, the textures will be hosted by ItemsAdder or Nexo, make sure to do `/iazip` (if using ItemsAdder) for the texture pack to be updated.
4. **IF NOT USING ITEMSADDER OR NEXO**, upon server restart the plugin **will not enable itself**. It will ask you to input your server's IP address to host the texture pack yourself. This can be done very easily. Just open your config.yml and go to line 127 called 'url'. There swap the localhost message to your server IP and set line 128 'enabled' to **true**. Optionally, you can also use hosting service, such as mediafire.com or dropbox, upload your texture pack there, then get the link to download the texture pack and paste it in the infinitecrops config.yml file at lines 132 and 133 called below\_1\_21\_4 or after\_1\_21\_4. Then set 'enabled' to **true** on line 131. Save and restart your server.  **NOTE: if hosting on dropbox, make sure to change the end of your link from 0 to 1, otherwise it will not apply the texture pack for the players!**

<figure><img src="https://43358839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ifdxZDjYYdaFezGOVfx%2Fuploads%2FSEHwdOkGdqV8NW7NyMTf%2Fimage.png?alt=media&#x26;token=c58f1ecc-ea1c-423d-b4ef-b00078a46ec2" alt=""><figcaption></figcaption></figure>

Here are picture examples:

## Option 1 (server hosting):

1. Launch server to generate configuration files\ <br>

   <figure><img src="https://43358839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ifdxZDjYYdaFezGOVfx%2Fuploads%2F9HAM2AuZGqWRzftVKsMW%2Fimage.png?alt=media&#x26;token=596a385b-4950-475a-9b6d-a29a604ad839" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://43358839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ifdxZDjYYdaFezGOVfx%2Fuploads%2FBLOX6J2NqYU4VEB6DDYG%2Fimage.png?alt=media&#x26;token=abb4cf7f-7d38-42a2-9464-32dd26e5ecfc" alt=""><figcaption></figcaption></figure>
2. Open config.yml and paste your server ip to line 127 "url", set line 128 'enabled' to true<br>

   <figure><img src="https://43358839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ifdxZDjYYdaFezGOVfx%2Fuploads%2Fr4QYiz8c6CmxdMdA7UHd%2Fimage.png?alt=media&#x26;token=aba4ee55-e8a4-4daf-a5ee-e29d8a69080c" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://43358839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ifdxZDjYYdaFezGOVfx%2Fuploads%2FN6RJ1YKIAbJpnTci0gxL%2Fimage.png?alt=media&#x26;token=affeadcd-5cf3-44d3-b311-cf11b62d4d2d" alt=""><figcaption></figcaption></figure>
3. Save the config.yml and restart your server :)<br>

## Option 2 (external hosting):

1. Launch server to generate configuration files\ <br>

   <figure><img src="https://43358839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ifdxZDjYYdaFezGOVfx%2Fuploads%2F9HAM2AuZGqWRzftVKsMW%2Fimage.png?alt=media&#x26;token=596a385b-4950-475a-9b6d-a29a604ad839" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://43358839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ifdxZDjYYdaFezGOVfx%2Fuploads%2FBLOX6J2NqYU4VEB6DDYG%2Fimage.png?alt=media&#x26;token=abb4cf7f-7d38-42a2-9464-32dd26e5ecfc" alt=""><figcaption></figcaption></figure>
2. Open the webhost folder in your InfiniteCrops folder (/plugins/InfiniteCrops/webhost)<br>

   <figure><img src="https://43358839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ifdxZDjYYdaFezGOVfx%2Fuploads%2F1fGyu6nuBqeqtvYjAaQW%2Fimage.png?alt=media&#x26;token=e43c50f7-3e20-4f2d-9262-8d18e34fe53c" alt=""><figcaption></figcaption></figure>
3. Choose the appropriate texture pack for your server<br>

   <figure><img src="https://43358839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ifdxZDjYYdaFezGOVfx%2Fuploads%2FeGN28zp0ZGAma9OPwAIQ%2Fimage.png?alt=media&#x26;token=de8028ad-114f-4ace-a859-67d6504ef46e" alt=""><figcaption></figcaption></figure>
4. Upload your Resource Pack to Dropbox and copy its download link<br>

   <figure><img src="https://43358839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ifdxZDjYYdaFezGOVfx%2Fuploads%2FGwXMwMfPJ0X11coxRuHl%2Fimage.png?alt=media&#x26;token=01ddc352-7012-4223-a1d0-9738bdf021f8" alt=""><figcaption></figcaption></figure>
5. Open config.yml and paste the copied dropbox link to line 132 or 133 (depending on the server version, if you are using a plugin that allows for users from different versions to connect, please upload both texture packs and add links to both configurations), set line 131 'enabled' to true
6. Changed the end of the links to 1<br>

   <figure><img src="https://43358839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ifdxZDjYYdaFezGOVfx%2Fuploads%2FomPWplA5VS42nefNGnUQ%2Fimage.png?alt=media&#x26;token=2fd65381-9834-4af3-8750-246af6584c67" alt=""><figcaption></figcaption></figure>
7. Save and restart&#x20;

**(Optional)** For electricity/money trees, install a Vault-compatible economy plugin if you want currency payouts.

### Configuration Files Overview

All configurations live inside the `plugins/InfiniteCrops/` folder. Notable files:

* **`config.yml`**: Main plugin toggles, debug levels, storage options (SQL, SQLite, YAML), distance settings, etc.
* **`crops.yml`**: Defines each custom crop’s growth stages, water-loss, day/night multipliers, loot, etc.
* **`bush.yml`**: Similar to `crops.yml`, but specifically for **Bush** items (like berry bushes or ore bushes).
* **`money_tree.yml`**: Config for “money trees,” including multi-stage growth, currency yields, and synergy with Vault.
* **`features/fertilizers.yml`**: Defines fertilizers (e.g., `SPEED_GROWTH`, `RETAIN_WATER`) with chance, min/max effect, and more.
* **`features/pots.yml`**: Config for “potted” growing. Each pot can store water levels, track moisture, etc.
* **`features/sprinklers.yml`**: Sprinkler models, intervals, radius, water usage, possibly requiring generator power.
* **`features/generators.yml`** and **`batteries_config.yml`**: Manage custom electricity generation for sprinklers or other mechanics.
* **`greenhouse.yml`**: Schematic-based structures that override biome or temperature rules for custom in-game “greenhouses.”
* **`seasons.yml`**: Full season-based logic: durations, temperature modifies, water-loss rates.
* **`effects.yml`**: Particles, sounds for events like crop growth transitions, sprinklers, or greenhouse placements.
* **`chances.yml`**: Additional block-based chance system if used.
* **`hologram.yml`**: Hologram lines for real-time displays above crops, bushes, or money trees.

You can edit these YAML files directly or rely on some in-game commands.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pm2plugins.gitbook.io/infinitecrops/first-install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
