Skript isues

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

Meatball

New Member
Mar 22, 2020
8
0
0
19
Code:
on place of dried kelp block:
    set {owner::%location of event-block%} to player
    if {maxgen::%uuid of player%} is not set:
        set {maxgen::%uuid of player%} to 15
    if {gen::%uuid of player%} >= 15:
        cancel event
        send "&cYou already placed max generators"
    if {gen::%uuid of player%} < 15:
        add 1 to {gen::%uuid of player%}
        send "&7You have placed &c%{gen::%uuid of player%}%&7/&c15 &7generators"
    every 100 ticks:
        if {owner::%location of event-block%} is online:
            while event-block is dried kelp block:
                drop 1 kelp above location of event-block

The part that does not work is the every 100 ticks it detecting if the owner of the generator is online, even when I leave it continues to produce, anyone have any idea why?
 
Last edited:
Using the code function helps a lot xD
upload_2020-4-25_22-13-9.png
 
Also, could you maybe elaborate a bit more?

And, I checked the code using skunitys parser https://parser.skunity.com/ , and It detected an error even at line 1, do you get any errors when reloading the code?
upload_2020-4-25_22-31-15.png
 
Status
Not open for further replies.