This script is to unififcient but I don't know how to make it shorter?

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

stingly

New Member
Jul 27, 2020
8
0
1
34
When i load this script it just crashes my server

Code:
command /is [<text>] [<text>]:
    trigger:
        if arg-1 is "create":
            if {lsland.%player%} is not set:
                add 100 to {pb}
                set {lsland.%player%} to location({pb}, 30, 0.5, world "bskyblock_world")
                set block at location({pb}, 30 - 1, 0.5, world "bskyblock_world") to bedrock
                wait 1 second
                set blocks between location({pb} - 1, 30 - 1, 0.5 - 1, world "bskyblock_world") and location({pb} - 1, 30 - 1, 0.5 + 4, world "bskyblock_world") to grass block
                wait 1 second
                set blocks between location({pb} + 1, 30 - 1, 0.5 - 1, world "bskyblock_world") and location({pb} + 1, 30 - 1, 0.5 + 4, world "bskyblock_world") to grass block
                wait 1 second
                set block at location({pb}, 30 - 1, 0.5 - 1, world "bskyblock_world") to grass block
                wait 1 second
                set blocks between location({pb} - 1, 30 - 1, 0.5 + 2, world "bskyblock_world") and location({pb} + 4, 30 - 1, 0.5 + 4, world "bskyblock_world") to grass block
                wait 1 second
                set blocks between location({pb} - 1, 30 - 2, 0.5 - 1, world "bskyblock_world") and location({pb} + 1, 30 - 2, 0.5 + 4, world "bskyblock_world") to dirt
                wait 1 second
                set blocks between location({pb} + 2, 30 - 2, 0.5 + 2, world "bskyblock_world") and location({pb} + 4, 30 - 2, 0.5 + 4, world "bskyblock_world") to dirt
                wait 1 second
                set blocks between location({pb} - 1, 30 - 3, 0.5 - 1, world "bskyblock_world") and location({pb} + 1, 30 - 3, 0.5 + 4, world "bskyblock_world") to dirt
                wait 1 second
                set blocks between location({pb} + 2, 30 - 3, 0.5 + 2, world "bskyblock_world") and location({pb} + 4, 30 - 3, 0.5 + 4, world "bskyblock_world") to dirt
                wait 1 second
                set blocks between location({pb} + 3, 30, 0.5 + 3, world "bskyblock_world") and location({pb} + 3, 30 + 3, 0.5 + 3, world "bskyblock_world") to oak log
                wait 1 second
                set blocks between location({pb} + 2, 30 + 3, 0.5 + 2, world "bskyblock_world") and location({pb} + 2, 30 + 3, 0.5 + 4, world "bskyblock_world")
                wait 1 second
                set blocks between location({pb} + 2, 30 + 3, 0.5 + 4, world "bskyblock_world") and location({pb} + 4, 30 + 3, 0.5 + 4, world "bskyblock_world")
                wait 1 second
                set blocks between location({pb} + 4, 30 + 3, 0.5 + 2, world "bskyblock_world") and location({pb} + 2, 30 + 3, 0.5 + 4, world "bskyblock_world")
                wait 1 second
                set block at location({pb} + 3, 30 + 3, 0.5 + 4, world "bskyblock_world")
                wait 1 second
                set block at location({pb} + 2, 30 + 3, 0.5 + 5, world "bskyblock_world")
                wait 1 second
                set block at location({pb} + 3, 30 + 3, 0.5 + 6, world "bskyblock_world")
                wait 1 second
                set block at location({pb} + 3, 30 + 3, 0.5 + 5, world "bskyblock_world")
                send "&aYou succesfully created your Island"
                teleport player to {lsland.%player%}
        if arg-1 is "home" or "h":
            if {lsland.%player%} is set:
                teleport player to {lsland.%player%}
                send "&aTeleporting to your &eIsland"
            else:
                send "&cYou don't have a island!"
        if arg-1 is "delete":
            send "&cAre you sure you want to remove your island?" to player
            send "&cType &bYes &cin the chat" to player
            set {removecooldown.%player%} to true
 
Last edited:
When i load this script it just crashes my server



command /is [<text>] [<text>]:
trigger:
if arg-1 is "create":
if {lsland.%player%} is not set:
add 100 to {pb}
set {lsland.%player%} to location({pb}, 30, 0.5, world "bskyblock_world")
set block at location({pb}, 30 - 1, 0.5, world "bskyblock_world") to bedrock
wait 1 second
set blocks between location({pb} - 1, 30 - 1, 0.5 - 1, world "bskyblock_world") and location({pb} - 1, 30 - 1, 0.5 + 4, world "bskyblock_world") to grass block
wait 1 second
set blocks between location({pb} + 1, 30 - 1, 0.5 - 1, world "bskyblock_world") and location({pb} + 1, 30 - 1, 0.5 + 4, world "bskyblock_world") to grass block
wait 1 second
set block at location({pb}, 30 - 1, 0.5 - 1, world "bskyblock_world") to grass block
wait 1 second
set blocks between location({pb} - 1, 30 - 1, 0.5 + 2, world "bskyblock_world") and location({pb} + 4, 30 - 1, 0.5 + 4, world "bskyblock_world") to grass block
wait 1 second
set blocks between location({pb} - 1, 30 - 2, 0.5 - 1, world "bskyblock_world") and location({pb} + 1, 30 - 2, 0.5 + 4, world "bskyblock_world") to dirt
wait 1 second
set blocks between location({pb} + 2, 30 - 2, 0.5 + 2, world "bskyblock_world") and location({pb} + 4, 30 - 2, 0.5 + 4, world "bskyblock_world") to dirt
wait 1 second
set blocks between location({pb} - 1, 30 - 3, 0.5 - 1, world "bskyblock_world") and location({pb} + 1, 30 - 3, 0.5 + 4, world "bskyblock_world") to dirt
wait 1 second
set blocks between location({pb} + 2, 30 - 3, 0.5 + 2, world "bskyblock_world") and location({pb} + 4, 30 - 3, 0.5 + 4, world "bskyblock_world") to dirt
wait 1 second
set blocks between location({pb} + 3, 30, 0.5 + 3, world "bskyblock_world") and location({pb} + 3, 30 + 3, 0.5 + 3, world "bskyblock_world") to oak log
wait 1 second
set blocks between location({pb} + 2, 30 + 3, 0.5 + 2, world "bskyblock_world") and location({pb} + 2, 30 + 3, 0.5 + 4, world "bskyblock_world")
wait 1 second
set blocks between location({pb} + 2, 30 + 3, 0.5 + 4, world "bskyblock_world") and location({pb} + 4, 30 + 3, 0.5 + 4, world "bskyblock_world")
wait 1 second
set blocks between location({pb} + 4, 30 + 3, 0.5 + 2, world "bskyblock_world") and location({pb} + 2, 30 + 3, 0.5 + 4, world "bskyblock_world")
wait 1 second
set block at location({pb} + 3, 30 + 3, 0.5 + 4, world "bskyblock_world")
wait 1 second
set block at location({pb} + 2, 30 + 3, 0.5 + 5, world "bskyblock_world")
wait 1 second
set block at location({pb} + 3, 30 + 3, 0.5 + 6, world "bskyblock_world")
wait 1 second
set block at location({pb} + 3, 30 + 3, 0.5 + 5, world "bskyblock_world")
send "&aYou succesfully created your Island"
teleport player to {lsland.%player%}
if arg-1 is "home" or "h":
if {lsland.%player%} is set:
teleport player to {lsland.%player%}
send "&aTeleporting to your &eIsland"
else:
send "&cYou don't have a island!"
if arg-1 is "delete":
send "&cAre you sure you want to remove your island?" to player
send "&cType &bYes &cin the chat" to player
set {removecooldown.%player%} to true
Hey could you please click the "+" button above your text box and then click the code option and insert your code there with tabs so that its easier to understand..? Also can you send the logs of the server when it crashes?
 
Status
Not open for further replies.