Drop layer's skull

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

DragoSpiro98

Member
Dec 21, 2018
2
0
0
Hi, I'm new with Skript and I'm making a script that allow to drop the player's skull when he dies.
code_language.skript:
on death of player:
    drop player's skull named "&0%player%'s head" at player's position

This is the code, I don't have error when I reload skript, but it doesn't work. What can I do ?
 
What exactly does not work? Maybe check if the skull is being dropped at the location where the player respawns when he dies. Maybe it drops into the void? Maybe use "location" instead of "position"
 
Last edited:
code_language.skript:
[11:37:39] [Server thread/ERROR]: #!#!
[11:37:39] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[11:37:39] [Server thread/ERROR]: #!#!
[11:37:39] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[11:37:39] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[11:37:39] [Server thread/ERROR]: #!#! You should report it at https://github.com/SkriptLang/Skript/issues. Please copy paste this report there (or use paste service).
[11:37:39] [Server thread/ERROR]: #!#! This ensures that your issue is noticed and will be fixed as soon as possible.
[11:37:39] [Server thread/ERROR]: #!#!
[11:37:39] [Server thread/ERROR]: #!#! Stack trace:
[11:37:39] [Server thread/ERROR]: #!#! java.lang.UnsupportedOperationException: 1.13 update
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.ExprSkull.convert(ExprSkull.java:104)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.ExprSkull.convert(ExprSkull.java:1)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.registrations.Converters.convert(Converters.java:342)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.registrations.Converters.convertUnsafe(Converters.java:333)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:104)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.base.SimplePropertyExpression.get(SimplePropertyExpression.java:55)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:75)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:102)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:75)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:102)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.effects.EffDrop.execute(EffDrop.java:83)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:152)
[11:37:39] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:110)
[11:37:39] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[11:37:39] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500)
[11:37:39] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485)
[11:37:39] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:413)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.EntityPlayer.die(EntityPlayer.java:432)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.EntityLiving.damageEntity(EntityLiving.java:956)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.EntityHuman.damageEntity(EntityHuman.java:759)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.EntityPlayer.damageEntity(EntityPlayer.java:586)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.EntityHuman.attack(EntityHuman.java:1005)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.EntityPlayer.attack(EntityPlayer.java:1311)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1625)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PacketPlayInUseEntity.a(SourceFile:69)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PacketPlayInUseEntity.a(SourceFile:13)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13)
[11:37:39] [Server thread/ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[11:37:39] [Server thread/ERROR]: #!#!     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
[11:37:39] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
[11:37:39] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
[11:37:39] [Server thread/ERROR]: #!#!
[11:37:39] [Server thread/ERROR]: #!#! Version Information:
[11:37:39] [Server thread/ERROR]: #!#!   Skript: 2.3-beta4 (latest)
[11:37:39] [Server thread/ERROR]: #!#!   Bukkit: 1.12.2-R0.1-SNAPSHOT
[11:37:39] [Server thread/ERROR]: #!#!   Minecraft: 1.12.2
[11:37:39] [Server thread/ERROR]: #!#!   Java: 1.8.0_91 (Java HotSpot(TM) 64-Bit Server VM 25.91-b14)
[11:37:39] [Server thread/ERROR]: #!#!   OS: Linux amd64 4.4.140.31
[11:37:39] [Server thread/ERROR]: #!#!
[11:37:39] [Server thread/ERROR]: #!#! Server platform: Spigot
[11:37:39] [Server thread/ERROR]: #!#!
[11:37:39] [Server thread/ERROR]: #!#! Current node: null
[11:37:39] [Server thread/ERROR]: #!#! Current item: drop the skull of the player named "§0%the player%'s head" at the location of (the player >> ch.njol.skript.classes.data.DefaultConverters$10@cf1af61: org.bukkit.entity.Player->org.bukkit.Location)
[11:37:39] [Server thread/ERROR]: #!#! Current trigger: death of player (death/spawn of player) (drop head.sk, line 1)
[11:37:39] [Server thread/ERROR]: #!#!
[11:37:39] [Server thread/ERROR]: #!#! Thread: Server thread
[11:37:39] [Server thread/ERROR]: #!#!
[11:37:39] [Server thread/ERROR]: #!#! Language: english
[11:37:39] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[11:37:39] [Server thread/ERROR]: #!#!
[11:37:39] [Server thread/ERROR]: #!#! End of Error.
[11:37:39] [Server thread/ERROR]: #!#!

I found this error, how can I solve this ?
 
Was a bug in 2.3-beta4, update to 2.3-beta5
upload_2018-12-22_17-2-30.png
 
Status
Not open for further replies.