Sueta
CR

CropPlus - Custom Crops and its growth rate, season and so o

0.0.6

Custom Crops and its growth rate, season and so on.

·Plugin

|| Overview:
CropPlus is a plugin can let you custom crops and its growth rate, season, drop item and so on.

It need depend plugin: RealSurvival

For Developer: Javadoc

|| Introduction

Custom Seed and drop item of crop

  • You can select crop growth animation: Potato, Wheat, Carrot and Beetroot.
  • You can set growth rate
  • You can set drop item and its drop chance.
  • You can set bone meal promote growth
  • You can set the light level crop suitable.

Custom Season Crop

  • Set crop suitable season.
  • Set crop death chance when it growing in other season.
  • Set crop's growth rate when it growing in other season.

Other

  • Crop will die if no water
  • Crop will drop seed when it be broken, you can set the chance of drop seed

|| Commands & Permissions

/crop reload - Reload crop data.| Only OP can use.

|| Custom Crop

Custom Crop

1. Open the "/plugins/CropPlus/crops" directory
2. Open the plugin with Compression tool (such as WinRaR,7z) and copy the "eg.yml" file to the "/plugins/CropPlus/crops" directory.

3. Rename the "eg.yml" and open it. You will see this. Modify it.

#How long ripen
time: 10
#crop growth rate
growth-rate: 1
#crop growth animation
#Wheat
#Potato
#Carrot
#Beetroot
crop-type: Wheat
#ItemStack
seed: ItemStack
#A number in 0~n, means can harvest n times, -1 means can harvest crop unlimited
multiple: 10
#每次收获后作物恢复到成熟状态的0.几
#Set crop maturity after harvest.
reback: 0.5
#Set light level crop suitable.
#Light level: 1~15
light: 10
#bone meal promote growth
bone-meal-promote: 0.2-0.3
#How many chance drop seed when crop be broken
break-drop-seed: 100
#Season
#  Spring,
#  Summer,
#  Autumn,
#  Winter,
season:
  #What season the crop suitable
  season:
    - "Spring"
  #How many chance crop will death when it growing in other season.
  death-chance: 30
  #growth rate in other season
  growth-rate: 0.5

#Drop item when harvesting
drops:
  #Drop seed
  drop-seed:
    #How many chance drop seed
    chance: 30
    #amount of drop seed.
    amount: 1-3
  #Drop Item 1
  drop1:
    #ItemStack
    item: ItemStack
    #drop chance
    chance: 100
    #amount of drop item
    amount: 1-3
  drop2:
    item: ItemStack2
    chance: 0.1
    amount: 2
  #DropItemN:
    #item: ItemStack
    #chance: 100
    #amount: 2

About the ItemStack simple format:

==: org.bukkit.inventory.ItemStack
  type: [The Name of Minecraft's Item]
  meta:
    ==: ItemMeta
    meta-type: UNSPECIFIC
    display-name: [Display-Name]
    lore:
    - '[The Lores]'
    - ''
    - '§a? §7Seed §b> §f§lCoffeeBean'

The is a exmple:
I create a file named "CoffeeBean"


time: 36
crop-type: Beetroot
growth-rate: 1
multiple: 3
reback: 0.5
light: 8
break-drop-seed: 50
season:
  season:
    - "Spring"
    - "Summer"
  death-chance: 50
  growth-rate: 15

seed:
  ==: org.bukkit.inventory.ItemStack
  type: INK_SACK
  damage: 3
  meta:
    ==: ItemMeta
    meta-type: UNSPECIFIC
    display-name: §7§lCoffee Bean
    lore:
    - ''
    - 'Seed > CoffeeBean'
bone-meal-promote: 1
drops:
  drop-seed:
    chance: 100
    amount: 2-16
  drop1:
    item:
      ==: org.bukkit.inventory.ItemStack
      type: WORKBENCH
      meta:
        ==: ItemMeta
        meta-type: UNSPECIFIC
        display-name: §7§lDropItem 1
        lore:
        - ''
        - 'Hahahaha'
    chance: 100
    amount: 1-3
  drop2:
    item:
      ==: org.bukkit.inventory.ItemStack
      type: BOOKSHELF
      meta:
        ==: ItemMeta
        meta-type: UNSPECIFIC
        display-name: §7§lDropItem 2
        lore:
        - 'emm'
        - 'Hahahaha'
    chance: 50
    amount: 3

And Seed:


Config.yml
#How long the crop growth once. (Unit: second)
period: 300
#How many growth times no water the crop will die.
no-water: 2
lore:
  #split text
  split: ">"
  #key word
  label: "Seed"

The Seed should be like this:

if you modify to this:

period: 300
no-water: 2
lore:
  split: ":"
  label: "TestSeed"

The Seed should be like this:

I am sorry about my poor English.
Please Enjoy It!

Similar projects

Plugin →