Event for Cactus and Sugarcane despawning

Discussion in 'Plugin Development' started by Terra-Network.org, Jan 3, 2012.

Thread Status:
Not open for further replies.
  1. Hi together (and a happy new year) !

    I hope there's someone out there with a good idea.
    I'm looking for a way to check if a sugarcane oder cactus block are broken by a player (onBlockBreak) or if they broke, because the block below was removed. (You know both plants or plants in general disappear when the block below is removed and they will drop whatever they drop when you break them)
    All i need is the correct event to handle with.
    Short version: I need the event to check if a plant-block is removed, because the block below is removed

    onBlockFade
    onBlockPhysisc
    onLeavesDecay

    don't work. (As far as i tested it)

    Thanks for your help!

    Moah i forgot to register these events -_-
    onBlockPhysics technically works, but i have to do alot workaround to manage the correct handling.

    Is there another event that will work better?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 22, 2016
Thread Status:
Not open for further replies.

Share This Page