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

  • 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.

Scan

Member
Feb 20, 2021
10
1
3
17
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.)
 
event-block should work
check the other skripts maybe there is something that resets the variable
 
Status
Not open for further replies.