Common Questions

Q1: How to use vanilla farmland as pot

Now you have to make a choose between plugin's watering system and vanilla moisture system.

If you want to use plugin's watering system. It's recommended to disable vanilla moisture in config.yml to prevent conflicts

  # Vanilla farmland settings
  vanilla-farmland:
    # Disable vanilla farmland moisture mechanics
    # This option exists because some users prefer to use the vanilla farmland but the water system conflicts with the vanilla one
    disable-moisture-mechanic: true
    # Prevent entities from trampling the farmland
    prevent-trampling: false

Then edit the default.yml at /contents/pots folder

default:
  # Maximum water storage capacity
  max-water-storage: 7
  # The most basic settings
  base:
    # Pot models
    dry: FARMLAND
    wet: FARMLAND

  # Does the pot absorb raindrop
  absorb-rainwater: true
  # Does nearby water make the pot wet
  absorb-nearby-water: true

If you prefer the vanilla mechanics, you can just disable all the watering mechanics in CustomCrops.

Firstly edit the default.yml at /contents/pots folder. Since you prefer the vanilla moisture, "max-water-storage" would no longer take effect.

default:
  # The most basic settings
  base:
    # Pot models
    dry: FARMLAND
    wet: FARMLAND

  # Disabling these options would not affect vanilla mechanics
  # Disable rainwater
  absorb-rainwater: false
  # Disable nearby water
  absorb-nearby-water: false

Then, you have to make changes on each crop's grow-conditions otherwise they won't grow on vanilla farmlands because "water_more_than" checks the water provided by the plugin while "moisture_more_than" checks the moisture of vanilla farmland block data.

water_condition:
  type: water_more_than
  value: 0
      
----->

moisture_condition:
  type: moisture_more_than
  value: 0

Q2: I can't use any of the plugin's functions

Make sure that your world is not in the blacklist / Make sure that your world is in whitelist

# World settings
worlds:
  # This is designed for servers that using an independent folder for worlds
  # Especially for realm systems
  absolute-world-folder-path: ''
  # A list of worlds that would decide where the plugin mechanisms take effect
  # Mode: whitelist/blacklist
  mode: blacklist
  list:
    - blacklist_world

Q3: How to let watering-cans have durability

Let's take ItemsAdder as example, what you need to do is to set the material to a damageable item for instance "WOODEN_SWORD". CustomCrops would handle the durability system for you so you don't need to do anything else!

items:
  watering_can_1:
    display_name: display-name-watering_can_1
    resource:
      generate: false
      material: WOODEN_SWORD
      model_path: item/wateringcans/watering_can_1
    item_flags:
    - HIDE_ATTRIBUTES

Q4: I want to use items from other plugins for seeds/drops

Firstly, add the plugin's name in config.yml. You can get all the compatible plugins on

pageCompatibility
  item-detection-order:
    - MMOItems

Then you can use MMOItems anywhere for instance

  # Seed of the crop
  seed: MMOItems:MATERIAL:TOMATO_SEEDS
  # Drop items
  quality_crop_action:
    type: quality-crops
    value:
      min: 1
      max: 4
      items:
        1: MMOItems:MATERIAL:TOMATO
        2: MMOItems:MATERIAL:TOMATO_SILVER_STAR
        3: MMOItems:MATERIAL:TOMATO_GOLDEN_STAR

Q5: How to apply leveler's level to the drop amount of crops? / How can I get exp for the leveler from harvesting the crops? / How can I set level requirements for planting a crop?

Firstly check if that plugin is compatible on Supported levelers

Then register that placeholder into CustomCrops

  placeholder-register:
    '{skill-level}': '%levelplugin_farming%'

Now you are able to use the placeholder and expression in the amount of drops

  # Drop items
  quality_crop_action:
    type: quality-crops
    value:
      min: "1 + {skill-level} * 0.1"
      max: "4 + {skill-level} * 0.1"
      ...

To receive exp from harvesting, you have to add an action in break/interact event section

  action_exp:
    type: plugin-exp
    value:
      plugin: AureliumSkills
      target: FARMING  # The target is decided by the leveler you are using
      exp: 100
    chance: 1

To use the level requirements for planting, you can follow this example

  requirements:
    plant:
      requirement_0:
        type: plugin-level
        value:
          plugin: AureliumSkills
          target: FARMING  # The target is decided by the leveler you are using
          level: 10
        not-met-actions:
          message_action:
            type: message
            value: "This seeds require 10+ farming skill levels"
      requirement_1:
        type: season
        value:
          - Spring
          - Autumn
        not-met-actions:
          message_action:
            type: message
            value: "It's not a good season to plant tomato"

Q5: How does "protect-original-lore" work?

You can find this option if you check the config.yml carefully

  # Whether to protect the original lore of the item
  # This uses the scoreboard component to identify the plugin's lore,
  # which may conflict with some plugins that still use SpigotAPI#ItemMeta.
  protect-original-lore: false

Take ItemsAdder as example

items:
  watering_can_1:
    display_name: display-name-watering_can_1
    resource:
      generate: false
      material: WOODEN_SWORD
      model_path: item/wateringcans/watering_can_1
    item_flags:
    - HIDE_ATTRIBUTES
    lore:
      - '1111111111'
      - '2222'
      - '333333'
protect-original-lore: true
protect-original-lore: false

Q6: I can't plant more crops

Situation1: I can hear the sound of planting and seed is consumed

If you are using ItemsAdder, open ItemsAdder's config.yml and set this value higher

entities:
  max-furniture-vehicles-per-chunk: 30

Situation2: Nothing happened

Open CustomCrops' config.yml

# Limit the max amount of crops in one chunk
max-per-chunk: 150

Last updated