Help with blockchangedelegate

Discussion in 'Plugin Development' started by keenerb, Jul 9, 2012.

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

    keenerb

    Total and complete Java (and programming) newbie.

    Trying to alter an existing world gen to create a tree with no leaves.

    I was told the best way to do it was to implement a delegate for the event and filter out leaves in the delegate.

    The only problem is I have no idea how to do that. I've looked over the javadocs and api docs but it's really just not helping.

    Any pointers?
     
  2. Offline

    r0306

    keenerb
    I think it's a structuregrowevent. You could listen in to that, get the location where the tree is growing, cancel the event, and then add in the stumps manually.
     
  3. You can get a map or list of the blocks that will be placed in the generated structure, there you can remove all materials matching leaves and that way will look better than manually placing logs because not all trees are the same type and shape.
     
Thread Status:
Not open for further replies.

Share This Page