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 snippet:
[/LEFT]
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!)