Solved I found error!

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

TimCom228

Member
Dec 26, 2019
31
0
6
24
My script:
Code:
on break of oak planks:
    if metadata "health" of clicked block is not set:
        set metadata "health" of clicked block to 10
    else:
        set {_meta} to metadata "health" of clicked block
        remove 1 from {_meta}
    if {_meta} is 0:
        delete metadata "health" of clicked block
    else:
        cancel event
        set metadata "health" of clicked block to {_meta}

Error:
Code:
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! [Skript] Severe Error:
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Something went horribly wrong with Skript.
[20:34:25 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[20:34:25 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[20:34:25 ERROR]: #!#! Here is full list of them:
[20:34:25 ERROR]: #!#! Skellett v1.9.8 (https://forums.skunity.com/resources/skellett.24/)
[20:34:25 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[20:34:25 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[20:34:25 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[20:34:25 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[20:34:25 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[20:34:25 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Stack trace:
[20:34:25 ERROR]: #!#! ch.njol.skript.SkriptAPIException: UnparsedLiterals must be converted before use
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.UnparsedLiteral.invalidAccessException(UnparsedLiteral.java:273)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.UnparsedLiteral.getSingle(UnparsedLiteral.java:303)
[20:34:25 ERROR]: #!#!     at com.gmail.thelimeglass.Expressions.ExprMetadata.get(ExprMetadata.java:54)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.getAll(SimpleExpression.java:76)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.conditions.CondIsSet.check(CondIsSet.java:75)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.conditions.CondIsSet.check(CondIsSet.java:81)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.Condition.run(Condition.java:56)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.Conditional.walk(Conditional.java:51)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:156)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:114)
[20:34:25 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[20:34:25 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500)
[20:34:25 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:292)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PlayerInteractManager.a(PlayerInteractManager.java:123)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PlayerConnection.a(PlayerConnection.java:1152)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PacketPlayInBlockDig.a(SourceFile:40)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PacketPlayInBlockDig.a(SourceFile:10)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PlayerConnectionUtils.a(SourceFile:10)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PlayerConnectionUtils$$Lambda$2338/113605357.run(Unknown Source)
[20:34:25 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[20:34:25 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(Unknown Source)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.SystemUtils.a(SourceFile:198)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.MinecraftServer.w(MinecraftServer.java:884)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.DedicatedServer.w(DedicatedServer.java:411)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.MinecraftServer.v(MinecraftServer.java:819)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.MinecraftServer.run(MinecraftServer.java:717)
[20:34:25 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Version Information:
[20:34:25 ERROR]: #!#!   Skript: 2.5-alpha3 (latest)
[20:34:25 ERROR]: #!#!     Flavor: skriptlang-github
[20:34:25 ERROR]: #!#!     Date: 2020-03-28
[20:34:25 ERROR]: #!#!   Bukkit: 1.13-R0.1-SNAPSHOT
[20:34:25 ERROR]: #!#!   Minecraft: 1.13
[20:34:25 ERROR]: #!#!   Java: 1.8.0_45 (Java HotSpot(TM) 64-Bit Server VM 25.45-b02)
[20:34:25 ERROR]: #!#!   OS: Windows 8.1 amd64 6.3
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Server platform: Spigot
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Current node: null
[20:34:25 ERROR]: #!#! Current item: [(skellett|fixed)] meta[ ]data [value] %string% (of|in|within) %object% isn't set
[20:34:25 ERROR]: #!#! Current trigger: break of oak planks (break/place/burn/fade/form of oak wood planks) (sk.sk, line 31)
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Thread: Server thread
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Language: english
[20:34:25 ERROR]: #!#! Link parse mode: DISABLED
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! End of Error.
[20:34:25 ERROR]: #!#!

I have Skellett addon. Serv ver: 1.13. Skript ver: bensku-2.5-alpha3. Skellett ver: 1.9.8
 
My script:
Code:
on break of oak planks:
    if metadata "health" of clicked block is not set:
        set metadata "health" of clicked block to 10
    else:
        set {_meta} to metadata "health" of clicked block
        remove 1 from {_meta}
    if {_meta} is 0:
        delete metadata "health" of clicked block
    else:
        cancel event
        set metadata "health" of clicked block to {_meta}

Error:
Code:
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! [Skript] Severe Error:
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Something went horribly wrong with Skript.
[20:34:25 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[20:34:25 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[20:34:25 ERROR]: #!#! Here is full list of them:
[20:34:25 ERROR]: #!#! Skellett v1.9.8 (https://forums.skunity.com/resources/skellett.24/)
[20:34:25 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[20:34:25 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[20:34:25 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[20:34:25 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[20:34:25 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[20:34:25 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Stack trace:
[20:34:25 ERROR]: #!#! ch.njol.skript.SkriptAPIException: UnparsedLiterals must be converted before use
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.UnparsedLiteral.invalidAccessException(UnparsedLiteral.java:273)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.UnparsedLiteral.getSingle(UnparsedLiteral.java:303)
[20:34:25 ERROR]: #!#!     at com.gmail.thelimeglass.Expressions.ExprMetadata.get(ExprMetadata.java:54)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.getAll(SimpleExpression.java:76)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.conditions.CondIsSet.check(CondIsSet.java:75)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.conditions.CondIsSet.check(CondIsSet.java:81)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.Condition.run(Condition.java:56)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.Conditional.walk(Conditional.java:51)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:156)
[20:34:25 ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:114)
[20:34:25 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[20:34:25 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500)
[20:34:25 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:292)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PlayerInteractManager.a(PlayerInteractManager.java:123)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PlayerConnection.a(PlayerConnection.java:1152)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PacketPlayInBlockDig.a(SourceFile:40)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PacketPlayInBlockDig.a(SourceFile:10)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PlayerConnectionUtils.a(SourceFile:10)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.PlayerConnectionUtils$$Lambda$2338/113605357.run(Unknown Source)
[20:34:25 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[20:34:25 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(Unknown Source)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.SystemUtils.a(SourceFile:198)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.MinecraftServer.w(MinecraftServer.java:884)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.DedicatedServer.w(DedicatedServer.java:411)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.MinecraftServer.v(MinecraftServer.java:819)
[20:34:25 ERROR]: #!#!     at net.minecraft.server.v1_13_R1.MinecraftServer.run(MinecraftServer.java:717)
[20:34:25 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Version Information:
[20:34:25 ERROR]: #!#!   Skript: 2.5-alpha3 (latest)
[20:34:25 ERROR]: #!#!     Flavor: skriptlang-github
[20:34:25 ERROR]: #!#!     Date: 2020-03-28
[20:34:25 ERROR]: #!#!   Bukkit: 1.13-R0.1-SNAPSHOT
[20:34:25 ERROR]: #!#!   Minecraft: 1.13
[20:34:25 ERROR]: #!#!   Java: 1.8.0_45 (Java HotSpot(TM) 64-Bit Server VM 25.45-b02)
[20:34:25 ERROR]: #!#!   OS: Windows 8.1 amd64 6.3
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Server platform: Spigot
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Current node: null
[20:34:25 ERROR]: #!#! Current item: [(skellett|fixed)] meta[ ]data [value] %string% (of|in|within) %object% isn't set
[20:34:25 ERROR]: #!#! Current trigger: break of oak planks (break/place/burn/fade/form of oak wood planks) (sk.sk, line 31)
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Thread: Server thread
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! Language: english
[20:34:25 ERROR]: #!#! Link parse mode: DISABLED
[20:34:25 ERROR]: #!#!
[20:34:25 ERROR]: #!#! End of Error.
[20:34:25 ERROR]: #!#!

I have Skellett addon. Serv ver: 1.13. Skript ver: bensku-2.5-alpha3. Skellett ver: 1.9.8
The metadata expression from Skellett seems to conflict with the one from Skript.
You can use `tag` to force the use of Skript's metadata (metadata tag "health" of clicked block)
 
Status
Not open for further replies.