Growth Speed

Discussion in 'Spigot Plugin Help' started by Serializator, Nov 13, 2014.

  1. Serializator

    Supporter

    The title says it already, someone knows how you can adjust the growth speed from Wheat or something? Because I want it to grow every 4 seconds.
     
  2. MiniDigger

    Supporter

    http://www.spigotmc.org/wiki/spigot-configuration-spigot-yml/:
    "growth:
    x-modifier
    where x = cactus, melon, pumpkin, sapling, cane, mushroom, wheat

    Default: 100
    Type: Integer
    Description: Controls the speed of growth for each crop/resource as listed above. When at the default value (100), they will grow at 'vanilla' speed, but may appear slower due to other settings (chunks-per-tick)."

    If you want to do that with code you need to look at how spigot done it ;D
     
  3. Serializator

    Supporter

    So I need to override the current Spigot system that is used for the growth speed
     
  4. Serializator

    Supporter

    I want to place crops back when they are harvested, I try to use a repeating scheduler to change the crop state.
     
  5. MiniDigger

    Supporter

  6. Serializator

    Supporter

    But how do I check if the block has the CropState as data-value?