Solved skript-mirror problems

  • 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 community!

    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.

LoveDucky

Supporter
Sep 16, 2018
2
0
1
Hi,

I had to update skript-mirror from 1.0.0 to 2.0.0 due to the sudden appearance of "log handler not stopped properly" crashes on startup. Now, my script does not work anymore. (worked before)

Skript Version: 2.4-beta8
Skript-mirror version: 2.0.0 (Tried 4 and 5 from https://circleci.com/gh/btk5h/skript-mirror)

Errors in console (when starting the server and/or reloading the script):
Code:
[10:33:05 ERROR]: [Skript] Variables cannot be used here. (floor.sk, line 63: set {_if} to world.spawn(location of {_block}, EntityType.ITEM_FRAME!.clazz!)')
[10:33:05 ERROR]: [Skript] Can't understand this condition/effect: {_if}.setFacingDirection(BlockFace.UP!) (floor.sk, line 66: {_if}.setFacingDirection(BlockFace.UP!)')
[10:33:05 ERROR]: [Skript] Can't understand this condition/effect: {_if}.setRotation(Rotation.CLOCKWISE_45!) (floor.sk, line 69: {_if}.setRotation(Rotation.CLOCKWISE_45!)')
[10:33:05 ERROR]: [Skript] Can't understand this condition/effect: {_if}.setRotation(Rotation.COUNTER_CLOCKWISE_45!) (floor.sk, line 71: {_if}.setRotation(Rotation.COUNTER_CLOCKWISE_45!)')

Code snippet:

Code:
on rightclick on red terracotta or lime terracotta:
   set {_block} to location 1 meter north and 1 meter above clicked block
   if block at {_block} is an air:
       set block at {_block} to barrier
       set {_b} to true
   set {_if} to world.spawn(location of {_block}, EntityType.ITEM_FRAME!.clazz!)
   if {_b} is set:
       delete block at {_block}
   {_if}.setFacingDirection(BlockFace.UP!)
   {_if}.setItem(offhand tool.getItem())
   if name of player's boots is "&cRed Boots":
       {_if}.setRotation(Rotation.CLOCKWISE_45!)
   if name of player's boots is "&aGreen Boots":
       {_if}.setRotation(Rotation.COUNTER_CLOCKWISE_45!)
[/LEFT]
 
Hi,

I had to update skript-mirror from 1.0.0 to 2.0.0 due to the sudden appearance of "log handler not stopped properly" crashes on startup. Now, my script does not work anymore. (worked before)

Skript Version: 2.4-beta8
Skript-mirror version: 2.0.0 (Tried 4 and 5 from https://circleci.com/gh/btk5h/skript-mirror)

Errors in console (when starting the server and/or reloading the script):
Code:
[10:33:05 ERROR]: [Skript] Variables cannot be used here. (floor.sk, line 63: set {_if} to world.spawn(location of {_block}, EntityType.ITEM_FRAME!.clazz!)')
[10:33:05 ERROR]: [Skript] Can't understand this condition/effect: {_if}.setFacingDirection(BlockFace.UP!) (floor.sk, line 66: {_if}.setFacingDirection(BlockFace.UP!)')
[10:33:05 ERROR]: [Skript] Can't understand this condition/effect: {_if}.setRotation(Rotation.CLOCKWISE_45!) (floor.sk, line 69: {_if}.setRotation(Rotation.CLOCKWISE_45!)')
[10:33:05 ERROR]: [Skript] Can't understand this condition/effect: {_if}.setRotation(Rotation.COUNTER_CLOCKWISE_45!) (floor.sk, line 71: {_if}.setRotation(Rotation.COUNTER_CLOCKWISE_45!)')

Code snippet:

Code:
on rightclick on red terracotta or lime terracotta:
   set {_block} to location 1 meter north and 1 meter above clicked block
   if block at {_block} is an air:
       set block at {_block} to barrier
       set {_b} to true
   set {_if} to world.spawn(location of {_block}, EntityType.ITEM_FRAME!.clazz!)
   if {_b} is set:
       delete block at {_block}
   {_if}.setFacingDirection(BlockFace.UP!)
   {_if}.setItem(offhand tool.getItem())
   if name of player's boots is "&cRed Boots":
       {_if}.setRotation(Rotation.CLOCKWISE_45!)
   if name of player's boots is "&aGreen Boots":
       {_if}.setRotation(Rotation.COUNTER_CLOCKWISE_45!)
[/LEFT]
In skript-mirror 2.0.0 and later, fields don't need a `!` anymore
 
Status
Not open for further replies.