Vine Spread Help...pls?

Discussion in 'Plugin Development' started by DeadlyScone, Sep 30, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    DeadlyScone

    does the vine use BlockSpread? i have tried BlockSpread,BlockForm, and BlockFromTo and still i don't get any results when the vine spreads.
    does anyone know what event or how to find when it spreads?

    i'am very stumped.
     
  2. Offline

    emericask8ur

    I would like to know this to!
     
  3. Offline

    moschops

    Errm have not yet tested?

    in the main file

    Code:
    private final CustomBlockListener blockListener = new CustomBlockListener();
    
    pm.registerEvent( Event.Type.BLOCK_SPREAD, blockListener, Event.Priority.Normal, this);
    Then in the Listener file?

    Code:
    import org.bukkit.Material;
    import org.bukkit.block.Block;
    import org.bukkit.event.block.BlockListener;
    import org.bukkit.event.block.BlockSpreadEvent;
    
    public class CustomBlockListener extends BlockListener {
    
        public void onBlockSpread(BlockSpreadEvent event){
            Block block = event.getBlock();
    
            if (block.getType() == Material.VINE){
                event.setCancelled(true);
            }
        }
    
    }
    
     
  4. Offline

    DeadlyScone

    i have already done this. Bukkit just didn't include the vine spread event in the build yet.
     
  5. Offline

    firesofhades

  6. Offline

    Tanite

    Did they ever add the vine spread event? I'm worried about my 1.2 jungle builds becoming overrun :/
     
Thread Status:
Not open for further replies.

Share This Page