An Anti-Leaf decay plugin.

Discussion in 'Plugin Development' started by Daniel Heppner, Jul 23, 2011.

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

    Daniel Heppner

    I've been trying to think of plugin ideas, and I haven't been able to think of any. Then I started to think of various events that could be canceled to make extremely simple plugins. Then I thought of leaf decay. Anyway, would anyone here be interested in an anti-leaf decay plugin?
     
  2. Offline

    loganwm

    A full-fledged plugin for leaf-decay would likely be unnecessary. The only thing actually needed to prevent decay is cancellation of a single event if memory serves. If you wanted to create something a bit more fully featured, you could look into working on a full-scale foliage configuration plugin.
     
  3. Offline

    Daniel Heppner

    I'm thinking about creating a creative plugin which would do this, stop block drops, make all items infinite, etc. Do you think this would be good?
     
  4. Offline

    loganwm

    A creative plugin would be interesting. I'm not particularly sure how long it would be useful though if notch follows through with adding creative mode as a feature in 1.8.
     
    Daniel Heppner likes this.
  5. There's a leaf decay event.
     
  6. Offline

    Jaker232

    Register LEAVES_DECAY then in world listener add

    Code:
    public void onLeavesDecay(LeavesDecayEvent event) {
    event.setCancelled(true);
    }
    
    Remember to import LeavesDecayEvent.
     
  7. Offline

    Daniel Heppner

    I know how to do it, I was just wondering if there'd be interest in it.
     
  8. Offline

    Jaker232

    It would be used for creative-based server w/o decaying stuff.
     
  9. Offline

    Daniel Heppner

    What? I know. On creative, I've always wanted to place leaves without problems.
     
Thread Status:
Not open for further replies.

Share This Page