1.12.2 - Block data values

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

Aberforth

Member
Jun 14, 2019
40
2
8
Canada
Hello,

This code doesn't work, doesn't show errors. What's wrong?

Code:
on rightclick:
    if block's data is 0:
        set block's data to 1
        stop
    if block's data is 1:
        set block's data to 2
        stop
    if block's data is 2:
        set block's data to 3
        stop
    if block's data is greater or equal to 3:
        set block's data to 0
        stop

Only thing it does is changes blocks with data 0 to data 1, but refuses to change it further.

Skript 2.4-beta6
 
Status
Not open for further replies.