Solved Crops value problem

  • 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.
Dec 19, 2019
31
2
8
Hello,
My problem is when I break the cocoa I it doesn't grow back with the data that I added can anyone fix this for me?
Thanks.

I don't got an error after loading.

Code:
                else if event-block is cocoa:
                    if data value of event-block is between 0 and 1000:
                        if player's gamemode is survival:
                            set event-block to cocoa
                            wait 1 tick
                            set {_item} to random integer between 1 and 100
                            if {_item} is between 1 and 100:
                                give player 1 of cocoa beans
                            set {_block} to event-block
                            set data of event-block to 0
                            wait 1 seconds
                            set data of event-block to 1
                            wait 1 seconds
                            set data of event-block to 2
                        else:
                            if player is not op:
                                cancel event
                            else:
                                if gamemode of player is survival:
                                    cancel event
                    else:
                        if player is not op:
                            cancel event
                        else:
                            if gamemode of player is survival:
                                cancel event
                            broadcast "%data value of event-block%"
                else:
                    if player is not op:
                        cancel event
                    else:
                        if gamemode of player is survival:
                            cancel event
            else:
                if player is not op:
                    cancel event
                else:
                    if gamemode of player is survival:
                        cancel event
[doublepost=1591906550,1591813489][/doublepost]It got fixed don't need a awnser anymore
 
Please mark your post as solved instead of editing it and if you want, explain how you fixed it for anyone who looks at this post in the future. Thanks!
 
Please mark your post as solved instead of editing it and if you want, explain how you fixed it for anyone who looks at this post in the future. Thanks!
Can't set the first post in a topic as solved. But will add the fixed code tomorrow when I'm back on my computer.
 
Status
Not open for further replies.