SkBee's structure rotation reset

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

Nikd0

Active Member
May 30, 2020
208
21
18
Czech Republic
I need to get the default rotation of a SkBee structure, my code:

Code:
on load:
  set {_s} to structure named "str"
  set {_l1} to location(-24,61,-285, world "world")
  set {_l2} to location(-19,56,-269, world "world")
  fill structure {_s} between {_l1} and {_l2}
  save structure {_s}

now, if I use it for the first time, it indeed provides me with the correct rotation, however, the next time, it remembers the rotation and doesn't use the first one

Code:
on command "first":
  set {_s} to structure named "str"
  set rotation of structure {_s} to clockwise 90
  place structure {_s} at target block of player #is rotated

on command "second":
  set {_s} to structure named "str"
  place structure {_s} at target block of player #is rotated too! (it shouldn't be)

I've tried to `set rotation of structure {_s} to none` according to the docs but it doesn't work. Any idea why?
 

Attachments

  • upload_2022-12-29_22-28-35.png
    upload_2022-12-29_22-28-35.png
    10 KB · Views: 72
Status
Not open for further replies.