Solved Delete item help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

GiorgixPRO

Member
Jul 29, 2017
44
0
0
How can I do that when the player get the reward, the item disappear?

code_language.skript:
on rightclick:
    if player's held item is 351:1:   
        chance of 50%:
            create a fake explosion at the player
            give player 32 15
            give player 64 cobblestone
            broadcast "&6%player% &aha usato una &cMineBomb &aed ha trovato un premio COMUNE."
            stop
[doublepost=1514235202,1514231447][/doublepost]Only 1 item not the entire stack
 
There you are:
code_language.skript:
on rightclick:
    if player's held item is 351:1:
        chance of 50%:         
            remove 1 of player's tool from player's tool #This is the string that you need to add if you want to remove just 1 or plus numbers of the player's tool
            create a fake explosion at the player         
            give player 32 15         
            give player 64 cobblestone         
            broadcast "&6%player% &aha usato una &cMineBomb &aed ha trovato un premio COMUNE." 
            stop
 
Status
Not open for further replies.