Defines the seeds_base base item, whose use plants a cw_plant entity on the dirt or grass the player is looking at.

Seed items derive from it and set PlantModel, PlantName, GrowTime (a range in seconds) and Harvest (the seed and crop item IDs). Planting must be within 192 units and away from other plants, takes a random grow time shortened by the Farming attribute, and progresses that attribute.

Summary

Methods

Lets the item be dropped, with no extra effect.
Plants the seeds on the dirt or grass the player looks at, within 192 units.

Methods

Lets the item be dropped, with no extra effect.

Parameters

  • player
  • position

Plants the seeds on the dirt or grass the player looks at, within 192 units.

Spawns a cw_plant that ripens after a random time from GrowTime, shortened by up to a quarter by the farming attribute, and progresses that attribute. Returns false, keeping the seeds, when the spot is too far, not soil, or already has a plant.

Parameters

  • player
  • itemEntity

Defined in