if event block 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 comminuty!

    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.

titustitus98

Member
Feb 19, 2018
47
0
6
25
Code:
on block break:

    if world is "spawn":

        if event-block is andesite:

            if {skills::efficiency::%player%} is 0:

                set {randomcoin::%player%} to a random integer between 1 and 10

                add {randomcoin::%player%} to {drakecoins::%player%}

                if {coinsmsg::%player%} is "true":

                    send "&7+ &e%{randomcoin::%player%}% &7coin(s)"

                cancel the event

                set event-block to air

                cancel the event

how do I make it be only andesite and not all types of stone?
 
Status
Not open for further replies.