Create a new fertilizer

Fertilizers are stored in /CustomCrops/contents/fertilizers folder. There're 5 types of fertilizers which provides different effects.

# Speed grow: accelerate crop growth

speed_grow_1:
  type: SPEED_GROW
  # Fertilizer Hologram display icon
  # 肥料在悬浮字中显示的图标
  icon: '뀌'
  # How many days can this fertilizer stay in pot
  # 肥料有效时间(游戏日)
  times: 14
  # item id
  # 物品ID
  item: customcrops:speed_grow_1
  # Should this fertilizer be used before planting
  # 肥料是否只能在种植前使用
  before-plant: true
  # The particle to be displayed when using fertilizer
  # 使用肥料的粒子效果
  # https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html
  particle: SPELL_WITCH
  # The sound to play when using
  # 使用肥料的声音
  sound: minecraft:item.hoe.till
  # Pot whitelist
  # 种植盆白名单
  pot-whitelist:
    - default
  # 50% chance to gain another 1 points
  chance:
    1: 0.5
  requirements:
    req_1:
      type: permission
      value: speed_grow_1.use
      message: "You don't have permission to use the fertilizer"
# Quality:change the probability of star rated crops dropping

quality_1:
  type: QUALITY
  icon: '뀆'
  chance: 1
  times: 28
  # 70%/20%/10%
  ratio: 7/2/1
  item: customcrops:quality_1
  before-plant: true
  particle: SCRAPE
  sound: minecraft:item.hoe.till
  pot-whitelist:
    - default
# Soil retain: reduce the speed of water consumption

soil_retain_1:
  type: SOIL_RETAIN
  icon: '뀉'
  chance: 0.1
  times: 28
  item: customcrops:soil_retain_1
  before-plant: false
  particle: SPELL
  sound: minecraft:item.hoe.till
  pot-whitelist:
    - default
# Variation: crops have a higher probability of variation

variation_1:
  type: VARIATION
  icon: '뀒'
  times: 14
  # If a crop's default variation chance is 0.01, now it's 0.03
  # 如果农作物的变异概率是0.01,那么使用肥料后变成了0.03
  chance: 0.02
  item: customcrops:variation_1
  before-plant: true
  particle: SOUL
  sound: minecraft:item.hoe.till
  pot-whitelist:
    - default
# Yield increase: increase crop yield

yield_increase_1:
  type: YIELD_INCREASE
  icon: '뀏'
  times: 14
  item: customcrops:yield_increase_1
  before-plant: true
  particle: TOTEM
  sound: minecraft:item.hoe.till
  pot-whitelist:
    - default
  # 10% chance to gain another 3 crops
  # (100% - 10%) * 40% = 36% chance to gain another 2 crops
  # (100% - (10% + 36%)) * 80% = 43.2% chance to gain another 1 crop
  chance:
    3: 0.1
    2: 0.4
    1: 0.8

Last updated