Detect grass/flower blocks grown with bonemeal?

Discussion in 'Plugin Development' started by darkhelmet, Jan 8, 2013.

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

    darkhelmet

    I've had to manually write code to detect the use of bonemeal, but is there any code that detects the growing grass/flowers as a result?
     
  2. Offline

    skipperguy12

    Well, if you have already written something to detect use of bonemeal ( which I guess is a player interact event with action being right click block and item in hand is bonemeal ) then you could check if the block clicked is a grass block (afaik, right clocking grass with bonemeal always grows flowers and grass)
     
  3. Offline

    darkhelmet

    I do already but that doesn't actually provide any information about what blocks are created after the bonemeal is used.
     
  4. Offline

    fireblast709

    Sadly enough there are no events fired around that (as far as I could find)
     
  5. Offline

    wuiyang

    get the block's coordinate when a player right click on a grass with a bonemeal, then, make a detector in 10x10 square at northwest corner of the block's coordinate (as said in the minecraftwiki), and then find grasses, flower etc, get their coordinate, save in config (or custom config)
     
Thread Status:
Not open for further replies.

Share This Page