Crop

Crop configuration

Crop types

crop-types: # List of crops can be found on spigotmc https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
  - WHEAT
  - POTATOES
  - CARROTS
  - BEETROOTS
  - SWEET_BERRY_BUSH
  - CACTUS
  - SUGAR_CANE
  - BAMBOO
  - BAMBOO_SAPLING
  - KELP
  - NETHER_WART
  - COCOA
  - COCOA_BEANS

Seed format

seed-format:
  name: <TEXT>  #{0} represents seed name Default: "&7{0} &7seed"
  material: <TEXT>  #{0} represents seed material (WHEAT, POTATO, CARROT) Default: "{0}
  lore: # Lore of seed item.
    - "&7Strength: {strength}" # Line 1
    - "&7Gain: {gain}" # Line 2
# You can add as many lines as you want.
# And you can use {strength} and {gain} placeholders.

Seed example

seeds:
  example:
    name: "&bExample" # Name of seed that is given also item name. Goes thru seed-format.
    seed-type: aXRlbToKICA9PTogb3JnLmJ1a2tpdC5pbnZlbnRvcnkuSXRlbVN0YWNrCiAgdjogMjIzMAogIHR5cGU6IFdIRUFUX1NFRURTCiAgbWV0YToKICAgID09OiBJdGVtTWV0YQogICAgbWV0YS10eXBlOiBVTlNQRUNJRklDCiAgICBsb3JlOgogICAgLSAnpzdTdHJlbmd0aDogp2J7c3RyZW5ndGh9JwogICAgLSAnpzdHYWluOiCnYntnYWlufScK
    bonemeal:
      useCustom: <BOOLEAN> # Default: true
      number: <INT> # Default: 5
    strength:
      max: <INT> # Default: 10
      min: <INT> # Default: 1
    gain:
      max: <INT> # Default: 10
      min: <INT> # Default: 1
    harvest:
      messages:
        - '[player]&7You broke &c%cropname&7!'
        - '[console]&7Simple console command. Crop: %cropname&7!'
        - '[broadcast]&7Someone has broken some &c%cropname &7with id of &c%cropid&7.'
      items:
        - 'BREAD:1:4'
        - 'DIAMOND:1:2'
      commands:
        - "say %p is here!"
      customitems: # Made for custom item meta stuff. Add those with in-game GUI
        - aXRlbToKICA9PTogb3JnLmJ1a2tpdC5pbnZlbnRvcnkuSXRlbVN0YWNrCiAgdjogMTk3NgogIHR5cGU6IERJUlQK:1:10


      # Items returned when harvesting (crop drops) First number is min dropped items second one is max. Gain will be added to number afterwards.
      # So if user has seed with gain of 5 it will give you as example bread (1 to 4) + 5 (gain).
      # Can have multiple items just add extra line.
      # Item names can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
      # Commands:
      # Placeholder %p is replaced with player.
      # Put any command you want that can be executed in console.
      # Messages:
      # %cropname is replaced with crop name.
      # %cropid is repalced with cropid.
      # Put [player] in front of message to send message to player,
      # put [console] in front to send to console
      # put [broadcast] in front to broadcast the message.
      # keep in mind broadcast also sends to console!

Last updated