Right Click a block with an item do bone meal event

Discussion in 'Plugin Development' started by LordManegane, Aug 17, 2013.

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

    LordManegane

    Well i try with doing a

    new StructureGrowEvent((Location) e.getClickedBlock(), TreeType.BIG_TREE, true, e.getPlayer(), null);

    But it only grows trees (and this code doesnt seems to work).
    So how i can do if the player do right click with an item do the same stuff like bonemeal?
     
  2. LordManegane Use the PlayerInteractEvent maybe, And then just get the clicked block's relative 0,1,0 and then put the block you want there?
     
  3. Offline

    LordManegane

    CaptainBern Yup, i use the PlayerInteractEvent, and i have it working and stuff.
    But i want the randomness that have the bonemeal(flowers or not, amount of grass, flower colors and other stuff)
     
  4. LordManegane Like the random spread or just random stuff or just a random chance it will work?
     
  5. Offline

    fireblast709

    you cannot get the randomness of the flowers and grass as it is... well... random. That is calculated at the time it places it
     
  6. Offline

    LordManegane

  7. Offline

    xTrollxDudex

Thread Status:
Not open for further replies.

Share This Page