I want to make dia double

Discussion in 'Plugin Development' started by qkr, Jul 3, 2021.

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

    qkr

    I want to make plugin like this: players who have a diamond click right clicking, It becomes 2
     
  2. Online

    timtower Administrator Administrator Moderator

    @qkr And the question is?
     
  3. Offline

    qkr

    so how can I make it?
     
  4. Online

    timtower Administrator Administrator Moderator

    What have you tried?
     
  5. Offline

    pixelrider2000

    If you want to make it so that when you click a diamond it doubles you need to make a "PlayerInteractEvent".
    Then you check if the clicked item is Material.DIAMOND and if so set the amount two 2/double the previous amount.
     
    Shqep likes this.
  6. Offline

    qkr

    Ok I understood almost but how to set the amount 2/double the previous amount?

    Hi you're on online do you know how to set the amount 2/double the previous amount?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 15, 2021
  7. Offline

    KarimAKL

    This is a forum; he will answer when he has the time. Also, he has no obligation to help you.

    Note: You might want to max the amount by the material's maximum (usually 64, but it is 16 for ender pearls, for example).
     
    davidclue likes this.
  8. Offline

    qkr

    Thank you so much. I dont know how to express my feeling!!!
     
    Last edited by a moderator: Jul 16, 2021
  9. Offline

    Tim_M

    You could express that feeling by setting the forum to "solved" ;)

    Edit: Thread, not forum
     
Thread Status:
Not open for further replies.

Share This Page