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.

SkEdit

Discussion in 'APIs' started by Jeroeno_Boy, May 3, 2019.

  1. Jeroeno_Boy

    Jeroeno_Boy Active Member

    Joined:
    Jun 2, 2017
    Messages:
    61
    Likes Received:
    2
    What is SkEdit?
    SkEdit is a API that allows you to mainly fill and paste in structures. it is not created to copy Worledit, nor to compete with it. The fill and pasting is based on a delay system, its standart set to (Fill: 20000 blocks per tick, and copy: 1000 blocks per tick).


    Commands:
    • /ske
    • /skedit


    Features:
    • [?] Copy and paste system
    • [?] Fill system
    • [X] Spheres
    • [?] Schematic system
    • [?] Skript only (no other addons required)
    • [?] Small command system [/ske]
    • [X] Gui System (for settings etc)
    • [?] Api

    API:
    Code (Text):
    1. Players only:
    2.     GiveWand:
    3.         Syntax:    skeGivewand(player)
    4.         Example: skeGivewand(player)
    5.         Notes:
    6.             Gives the SkEdit wand
    7.  
    8.     GetPosition:
    9.         Syntax: skePos(position, player)
    10.         Example: set {_Pos} skePos(1, player)
    11.         Returns:
    12.             - postion x of player's selection
    13.             - Nothing (Everything went well)
    14.         Notes:
    15.             Gives the first or second position, can only be 1 and 2
    16.  
    17.     PlayerCopy:
    18.         Syntax: skePCopy(Location 1, Location 2, player)
    19.         Example: set {_R} to skePCopy(skePos(1, player), skePos(2, player), player)
    20.         Returns:
    21.             - Nothing (Everything went well)
    22.             - Location x not set
    23.             - Player not found
    24.             - Different worlds of positions
    25.         Notes:
    26.             Copies block, its slower than pasting or filling
    27.  
    28.     PlayerPaste:
    29.         Syntax: skePPaste(player)
    30.         Example: set {_R} to skePPaste(player)
    31.         Returns:
    32.             - Nothing (Everything went well)
    33.             - Clipboard empty
    34.             - Player not found
    35.         Notes:
    36.             Pasts the clipboard of the player
    37.  
    38.     PlayerSaveSchem:
    39.         Syntax: skePSaveSchem(location 1, location 2, "new Schematic", player)
    40.         Example: set {_R} to skePSaveSchem(skePos(1, player), skePos(2, player), arg 3, player)
    41.         Returns:
    42.             - Nothing (Everything went well)
    43.             - Location x not set
    44.             - Different worlds of positions
    45.             - Schematic already exists
    46.             - Player isnt online
    47.         Notes:
    48.             Saves a schematic relative to the player
    49.  
    50.     PlayerLoadSchem:
    51.         Syntax: skePLoadSchem("Schematic", player)
    52.         Example: set {_R} to skePLoadSchem(arg 3, player)
    53.         Returns:
    54.             - Schematic does not exist
    55.             - Nothing (Everything went well)
    56.         Notes:
    57.             Loads the schematic to the player's clipboard
    58.  
    59.  
    60. Global:
    61.     Fill:
    62.         Syntax:    skeFill(Location 1, Location 2, Blocks)
    63.         Example: set {_R} to skeFill(skePos(1, player), skePos(2, player), "Sand||stone||dirt")
    64.         Returns:
    65.             - Nothing (Everything went well)
    66.             - Location x not set
    67.             - World are different
    68.         Notes:
    69.             - Doesnt check if the block is valid or not
    70.             - There can be multiple blocks, seperatet at "||" example: "Red wool||White wool||Orange wool"
    71.  
    72.     SaveSchem:
    73.         Syntax: skeSaveSchem(Location 1, Location 2, "new schematic")
    74.         Example: set {_R} to skeSaveSchem({_Loc1}, {_Loc2}, "Tower_Tier_1")
    75.         Returns:
    76.             - Nothing (Everything went well)
    77.             - Position x not set
    78.             - Different worlds
    79.             - Schematic already exist
    80.         Notes:
    81.             Saves the schematic relative to location 1
    82.  
    83.     PasteSchem:
    84.         Syntax: skeSchemPaste(Center location, world, "schematic")
    85.         Example: set {_R} to skeSchemPaste(location of player, world of player, arg 3)
    86.         Returns:
    87.             - Nothing (Everything went well)
    88.             - Center not set
    89.             - Schematic doesnt exists
    90.             - World does not exist
    91.         Notes:
    92.             Pastes from where the schematic has been created
    93.  
    94.     ShowSchems:
    95.         Syntax: skeShowSchems()
    96.         Example: set {_list::*} to skeShowSchems()
    97.         Returns:
    98.             - List of all schems
    99.             - No schematic set (No schematics exist)
    100.  
    101.     DeleteSchem:
    102.         Syntax: skeDeleteSchem("schematic")
    103.         Example: set {_R} to skeDeleteSchem("Lol")
    104.         Returns:
    105.             - Nothing (All went succesful)
    106.             - Invalid schematic (Schematic doesnt exist)


    Note: this is work in progress, please dont judge on what is currently available

    Need help or found a bug? Join the discord! dont leave in the revieuw. https://discord.gg/cNcxs7n

     

Share This Page

Loading...