1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[#3] Winners of Skript Challenge - Area Fill

Discussion in 'Skript Challenge' started by Gatt, Mar 12, 2017.

  1. Gatt

    Gatt Mitsuha Miyamizu
    Moderator Addon Developer Supporter

    Joined:
    Dec 8, 2016
    Messages:
    129
    Likes Received:
    21
    It's time to announce the Winners of the 3rd Skript Challenge! Finally...
    @BaeFell has given me the honour of deciding the winners (probably because he forgot again...). As such, it is my honour to announce the following 3 winners.

    The selection process was quite simple, as most of the submissions a) didn't work properly, or achieve the needed result and b) were mostly based off of @LimeGlass's submission.

    In no particular order, the winners are.

    @LimeGlass - First Submission, Lowest amount of lines, Small and Simple and easily repeatable.
    @Mr_Simba - Much like LimeGlass, but with extra detail in the included failsafe.
    @Blueyescat - With added detail in the form of his arguments, added cancellation ability and more.

    Congratulations to all the winners, and thank you to everyone else who submitted!
    Just some helpful advice for future events;
    1. Try to be original, there are always more than one way of achieving a goal. If you make the most longest and craziest response, then so be it. It's awesome in its own right.
    2. While we're not against building off of others', at least add something new to it (ie; a stop feature)
    3. Make sure it actually does what is required... There's one submission here that didn't even get close to the wanted result.

    Thats all! Thanks a lot!

    (Winners: Your badges will be given in due time, make sure to annoy @BaeFell if you haven't gotten it by next week)

    (This was posted here, since @BaeFell forgot to give me permission to post in the proper place...)
     
  2. FUZIK

    FUZIK Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    51
    Likes Received:
    5
    And what about my script? It allows you to keep a tps server for a long time.
    Code (Skript):
    1. options:
    2.     filter: air
    3.     block: sponge
    4.     wait: wait a tick
    5.  
    6. function text2Loc(location:string,world:world = "world") :: location:
    7.     set {_location::*} to {_location} parsed as "x: %number%, y: %number%, z: %number%"
    8.     return location({_location::1}, {_location::2}, {_location::3}, {_world})
    9.  
    10. function b(location:location):
    11.     add {_location} to {_locations::*}
    12.     add chunk of {_location} to {_chunks::*}
    13.     set {_location} to chunk of {_location}
    14.     set {_chunks::%{_location}%::*} to text2Loc("%{_locations::*}%")
    15.     set {_location} to now
    16.     execute console command "tps"
    17.     while {_chunks::*} is set:
    18.         loop {_chunks::*}:
    19.             {_locations::*} isn't set:
    20.                 loop {_chunks::%loop-value%::*}:
    21.                     add text2Loc("%loop-value-2%") to {_locations::*}
    22.             while {_locations::*} is set:
    23.                 loop {_locations::*}:
    24.                     loop blocks in radius 1 around loop-value-2:
    25.                         loop-block = {@filter}
    26.                         if chunk of loop-block = loop-value-1:
    27.                             {@wait}
    28.                             set loop-block to {@block}
    29.                             add 1 to {_blocks}
    30.                             load chunk chunk of location at loop-block #skellet 1.8.4
    31.                             add location at loop-block to {_locations::*}
    32.                         else if "%{_chunks::*}%" contains "%chunk of loop-block%":
    33.                             add location of loop-block to {_chunks::%chunk of loop-block%::*}
    34.                         else:
    35.                             add chunk of loop-block to {_chunks::*}
    36.                             add location of loop-block to {_chunks::%chunk of loop-block%::*}
    37.                     remove loop-value-2 from {_locations::*}
    38.                 {@wait}
    39.             broadcast "<green>%loop-value-1% complite!"
    40.             unload chunk chunk of location at loop-block #skellet 1.8.4
    41.             delete {_chunks::%loop-value%::*}
    42.             remove loop-value from {_chunks::*}
    43.             {@wait}
    44.     execute console command "tps"
    45.     broadcast "<green>all complite! blocks:""%{_blocks}%"" and time:""%difference between now and {_location}%"""
    46.  
    47. command b:
    48.     trigger:
    49.         b(location)
     
  3. Gatt

    Gatt Mitsuha Miyamizu
    Moderator Addon Developer Supporter

    Joined:
    Dec 8, 2016
    Messages:
    129
    Likes Received:
    21
    It was far too long, and during testing; it didn't achieve the required result.
     
  4. BaeFell

    BaeFell I'm Poppy
    Admin

    Joined:
    Nov 28, 2016
    Messages:
    240
    Likes Received:
    147
    • Like Like x 1
Loading...
  • About Us

    Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.
  • Support skUnity

    The staff team works very hard to make sure the community is running its best. This means constantly performing upgrades to systems and other features. This does cost a bit of money to keep doing. Donating to skUnity would allow the server to keep running smoothly for years to come!

    Support Us!
  • Join Our Discord

    Discord is an all-in-one voice and text chat for gamers that’s free, secure, and works on both your desktop and phone.