Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error adding NBT data to block #2

Open
YourMCAdmin opened this issue Nov 27, 2017 · 0 comments
Open

Error adding NBT data to block #2

YourMCAdmin opened this issue Nov 27, 2017 · 0 comments

Comments

@YourMCAdmin
Copy link

YourMCAdmin commented Nov 27, 2017

Version 1.12
I'm using the unofficial fork.

It throws an error any time I attempt to add NBT data to a block. I'm trying to add data to a command block. This used to work in the past. No matter what I have after "add" it always throws an error. I've tried with and without the word Command. With and without the "/". With and without the "{" nothing works. Always throws an error.

My simple skript:

command /splash:
    trigger:
        set {_block} to location of block at player
        set block at player to command block
        wait 1 tick
        add "{Command:/summon Item ~ ~1 ~ {Item:{id:wooden_hoe,Count:1,tag:{display:{Name:""gun""}}}},TrackOutput:0}" to nbt of block at {_block}

The error:
[14:01:12] [Server thread/WARN]: [Skript] Error when parsing NBT - Expected value at: {Command:<--[HERE] [14:01:12] [Server thread/ERROR]: Could not pass event PlayerCommandPreprocessEvent to Skript v2.2-dev23 org.bukkit.event.EventException: null at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:37) ~[PaperSpigot-latest.jar:git-Paper-1255] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[PaperSpigot-latest.jar:git-Paper-1255] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[PaperSpigot-latest.jar:git-Paper-1255] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:515) ~[PaperSpigot-latest.jar:git-Paper-1255] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:500) ~[PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1463) ~[PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1276) ~[PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[PaperSpigot-latest.jar:git-Paper-1255] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_141] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_141] at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:843) [PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:426) [PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767) [PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665) [PaperSpigot-latest.jar:git-Paper-1255] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141] Caused by: java.lang.NoSuchMethodError: net.minecraft.server.v1_12_R1.TileEntity.a(Lnet/minecraft/server/v1_12_R1/NBTTagCompound;)V at me.TheBukor.SkStuff.util.NMS_v1_12_R1.setTileNBT(NMS_v1_12_R1.java:528) ~[?:?] at me.TheBukor.SkStuff.expressions.ExprNBTOf.change(ExprNBTOf.java:97) ~[?:?] at ch.njol.skript.effects.EffChange.execute(EffChange.java:273) ~[?:?] at ch.njol.skript.lang.Effect.run(Effect.java:54) ~[?:?] at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65) ~[?:?] at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93) ~[?:?] at ch.njol.skript.lang.Trigger.execute(Trigger.java:53) ~[?:?] at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222) ~[?:?] at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184) ~[?:?] at ch.njol.skript.command.Commands.handleCommand(Commands.java:270) ~[?:?] at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:165) ~[?:?] at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:35) ~[PaperSpigot-latest.jar:git-Paper-1255] ... 17 more [14:01:12] [Server thread/WARN]: [Skript] Error when parsing NBT - Expected value at: {Command:<--[HERE] [14:01:12] [Server thread/ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'splash' in plugin Skript v2.2-dev23 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[PaperSpigot-latest.jar:git-Paper-1255] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:151) ~[PaperSpigot-latest.jar:git-Paper-1255] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:676) ~[PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1471) ~[PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1276) ~[PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[PaperSpigot-latest.jar:git-Paper-1255] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_141] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_141] at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:843) [PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:426) [PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767) [PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665) [PaperSpigot-latest.jar:git-Paper-1255] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141] Caused by: java.lang.NoSuchMethodError: net.minecraft.server.v1_12_R1.TileEntity.a(Lnet/minecraft/server/v1_12_R1/NBTTagCompound;)V at me.TheBukor.SkStuff.util.NMS_v1_12_R1.setTileNBT(NMS_v1_12_R1.java:528) ~[?:?] at me.TheBukor.SkStuff.expressions.ExprNBTOf.change(ExprNBTOf.java:97) ~[?:?] at ch.njol.skript.effects.EffChange.execute(EffChange.java:273) ~[?:?] at ch.njol.skript.lang.Effect.run(Effect.java:54) ~[?:?] at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65) ~[?:?] at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93) ~[?:?] at ch.njol.skript.lang.Trigger.execute(Trigger.java:53) ~[?:?] at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222) ~[?:?] at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184) ~[?:?] at ch.njol.skript.command.ScriptCommand.onCommand(ScriptCommand.java:161) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[PaperSpigot-latest.jar:git-Paper-1255] ... 15 more [14:01:27] [Server thread/INFO]: YourMCAdmin issued server command: /sk reload mixer [14:01:32] [Server thread/INFO]: YourMCAdmin issued server command: /splash [14:01:32] [Server thread/INFO]: YourMCAdmin [bcb6f821-9d46-45cf-a4a0-d23572f52acb]: /splash [14:01:32] [Server thread/WARN]: [Skript] Error when parsing NBT - Expected value at: {Command:<--[HERE] [14:01:32] [Server thread/WARN]: [Skript] Task #50 for Skript v2.2-dev23 generated an exception java.lang.NoSuchMethodError: net.minecraft.server.v1_12_R1.TileEntity.a(Lnet/minecraft/server/v1_12_R1/NBTTagCompound;)V at me.TheBukor.SkStuff.util.NMS_v1_12_R1.setTileNBT(NMS_v1_12_R1.java:528) ~[?:?] at me.TheBukor.SkStuff.expressions.ExprNBTOf.change(ExprNBTOf.java:97) ~[?:?] at ch.njol.skript.effects.EffChange.execute(EffChange.java:273) ~[?:?] at ch.njol.skript.lang.Effect.run(Effect.java:54) ~[?:?] at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65) ~[?:?] at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93) ~[?:?] at ch.njol.skript.effects.Delay$1.run(Delay.java:84) ~[?:?] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:58) ~[PaperSpigot-latest.jar:git-Paper-1255] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:356) [PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:833) [PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:426) [PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767) [PaperSpigot-latest.jar:git-Paper-1255] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665) [PaperSpigot-latest.jar:git-Paper-1255] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant