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.

API structure.sk 1.0.0

Full structure block support! Load / Save structures with Skript!

  1. bi0
    Contributors:
    bi0qaw
    Supported Minecraft Versions:
    • 1.9, 1.10, 1.11, 1.12
    structure.sk
    Structure block API for Skript

    requires

    effects
    Code (Skript):
    1.    load structure of %block%
    2.    load structure %string% from [author] %string% at %location% rotated by %number%, mirrored %string% and ignoring entities %boolean%
    3.    save structure of %block%
    4.    save structure %string% from [author] %string% between %location% and %location%
    5.    set structure corners of %block% to %location% and %location%
    expressions
    Code (Skript):
    1.    structure author of %block% -> %string%
    2.    structure meta data of %block% -> %string%
    3.    structure integrity of %block% -> %number%
    4.    structure mirror type of %block% -> %string%
    5.    structure rotation of %block% -> %number%
    6.    structure name of %block% -> %string%
    7.    structure seed of %block% -> %number%
    8.    structure [(1¦x|2¦y|3¦z)][-]size of %block% -> %number% or %vector% if x/y/z is omitted
    9.    structure relative (1¦location|2¦vector) of %block% -> %location% or %vector%
    10.    structure (1¦min|2¦max)[imum] location of %block% -> %location%
    11.    structure mode of %block% -> %string%
    12.    structure bounding box of %block% is visible -> %boolean%
    13.    structure of %block% ignores entities -> %boolean%
    14.    structure of %block% shows invisible blocks -> %boolean%
    comments about rotations

    • the rotation is always either 0, 90, 180 or 270
    • rotations that are smaller than 0 or bigger than 360 are increased / decreased by mutliples of 360 until they are between 0-360
    • rotations that do not match one of the given options are rounded to the closest multiple of 90
    • if the final value is 360 it will be set to 0
    • increasing the rotation rotates the structure clockwise
    • decreasing the rotation rotates the structure anti-clockwise
    comment about mirroring

    • possible values are: "NONE", "LEFT_RIGHT" and "FRONT_BACK"
    KingAlterIV likes this.