How to register an event after a certain number of block breaks

Discussion in 'Plugin Development' started by GizmoRay, Oct 1, 2012.

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

    GizmoRay

    Hello,
    I'm attempting to determine how to register if a block is placed and broken a specific number of times, and in a certain location within the world. I'm also attempting to find a way to create a sudo durability for an item such as a cauldron.

    Thank you in advance,
     
  2. Offline

    calebbfmv

    Your welcome in advance
     
    Tirelessly likes this.
  3. Offline

    Sabersamus

    int i = 0;

    blockbreakevent -> Check the block type

    if matches i++;


    blockplaceevent -> check block type

    if matches i++;

    YourEvent -> check value of i

    if >= your number
    //more stuff
     
  4. Offline

    calebbfmv

Thread Status:
Not open for further replies.

Share This Page