Adding Plants
Default Values
Example: defaults
defaultsplants.defaults = {
image = "plant_icon.png",
should_outline = true,
outline_colour = { r = 100, g = 200, b = 100 },
preferred_altitude = { min = 0, max = 2000 },
stages = {
{ stage = 1, model = "prop_veg_crop_03_cab", threshold = 0 },
{ stage = 2, model = "prop_veg_crop_03_cab", threshold = 25 },
{ stage = 3, model = "prop_veg_crop_03_cab", threshold = 50 },
{ stage = 4, model = "prop_veg_crop_03_cab", threshold = 75 },
{ stage = 5, model = "prop_veg_crop_03_cab", threshold = 100 }
},
resistances = {
altitude = 1,
disease = 1,
pest = 1,
soil = 1,
weather = 1
},
yield = {
min = 2,
max = 6,
seed_chance = 0.2,
seed_factor = 0.2
},
xp = {
water = { min = 2, max = 6 },
fertilize = { min = 2, max = 6 },
harvest = { min = 3, max = 9 },
plant = { min = 1, max = 4 },
cure = { min = 1, max = 4 }
},
water_item = { id = "watering_can_full", label = "Watering Can (Full)", min = 10, max = 20 },
fertilizer_item = { id = "fertilizer", label = "Basic Fertilizer", min = 5, max = 10 },
harvest_item = { id = "trimming_shears", label = "Trimming Shears" }
}Adding a New Plant
Example: Cabbage
Example: Tomato with Custom Stages
Automatic Rewards
Plant Definition Reference
Field
Description
Last updated