1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Variable {%event-block%} doesn't seem to work properly

Discussion in 'Skript' started by Scan, Feb 20, 2021.

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

    Scan Member

    Joined:
    Feb 20, 2021
    Messages:
    10
    Likes Received:
    1
    on break:
    add 1 to {%event-block%}
    add 1 to {%event-block%.%player%}
    message "%event-block% : %{%event-block%}%"


    I wrote the above syntax and broke the grass block once.

    The returned value was "grass block : 1".

    It seemed to be successful.

    But when I broke the same block again, the returned value was still "grass block : 1"

    I think "grass block : 2" is correct because i used "add".


    What's wrong with this syntax??


    (I'm not good at English. So, even if I wrote it wrong, I would appreciate it if you understand.)
     
  2. Nikd0

    Nikd0 Active Member

    Joined:
    May 30, 2020
    Messages:
    204
    Likes Received:
    19
    I think event-block is different every time (not sure though). Try to use "name of event-block" or sth like that
     
  3. Time4Games

    Time4Games Active Member

    Joined:
    Jul 25, 2020
    Messages:
    196
    Likes Received:
    4
    event-block should work
    check the other skripts maybe there is something that resets the variable
     
    • Informative Informative x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...