1.15.2 Make Crops grow faster?

Discussion in 'Spigot Plugin Development' started by hidden1nin, Feb 24, 2020.

Thread Status:
Not open for further replies.
  1. I was trying to make crops grow faster using the crop grow event but i cant cast crops to block
    anyone got any ideas or snippets to help me?
     
  2. Im pretty sure you need to cast Ageable before being able to set age
    https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/data/Ageable.html
    You use a runnable and can get a timer to grow them..

    Want it more unpredictable add a chance to it as well

    Pseudo:

    Generate number,check if number higher than something,grow the crop with 1 stage,all inside a runnable who runs every X sec
     
    • Like Like x 1
  3. You should also use the block's BlockData.
     
  4. Unless you super need a plugin you could always use the growth multipliers in spigot.yml
     
Thread Status:
Not open for further replies.