Crops

From Pandorabox
Revision as of 10:23, 9 April 2024 by Birdlover32767 (talk | contribs) (Created page with "== Overview == Crops are special nodes that can grow and that will give a special item once harvested when fully grown. They are usually defined in the farming mod. Fil...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

Crops are special nodes that can grow and that will give a special item once harvested when fully grown. They are usually defined in the farming mod.

A farm in A Town.

Details

The growth time of a crop is about the farming_stage_length (Farming Stage Length) option, with a default of 160 seconds. The germination time of a seed is from farming_stage_length÷6 to farming_stage_length.

The exact growth time of a crop is complicated. Here are the steps you take to calculate it. See this link for the code.

  1. β = farming_stage_length and Δ = farming_stage_length / 6
  2. α = normal(β, Δ) β is the mean and Δ is the standard deviation.
  3. α = max(min(α, 3 × β), 0.5 × β)
  4. α = α - (-0.5 × β × random(0, 1)) random(0, 1) is a random real number from 0 to 1.

The resulting growth time is α.

Crop List

TODO: do this

Crops
Crop Name Base Itemstring Stages Drops Drop Texture Crop Texture
Artichoke farming:artichoke_ 5 Stage 5:
farming:artichoke 2 (%50)
farming:artichoke