Solved Loop blocks

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

SniperFox

Member
May 31, 2017
29
0
1
23
Hello! How can i loop blocks between or within two variables?
[doublepost=1534933970,1534933711][/doublepost]I didn't saw the erorr, sorry. Here it is:
code_language.skript:
[10:32:06 FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.AssertionError: TRAP
       at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_181]
       at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_181]
       at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:47) [spigot.jar:git-Spigot-642f6d2-ca6d2cf]
       at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [spigot.jar:git-Spigot-642f6d2-ca6d2cf]
       at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot.jar:git-Spigot-642f6d2-ca6d2cf]
       at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot.jar:git-Spigot-642f6d2-ca6d2cf]
       at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot.jar:git-Spigot-642f6d2-ca6d2cf]
       at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
Caused by: java.lang.AssertionError: TRAP
       at net.minecraft.server.v1_12_R1.ItemStack.F(ItemStack.java:100) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
       at net.minecraft.server.v1_12_R1.ItemStack.setCount(ItemStack.java:839) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
       at net.minecraft.server.v1_12_R1.PlayerInteractManager.a(PlayerInteractManager.java:413) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
       at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1004) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
       at net.minecraft.server.v1_12_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:26) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
       at net.minecraft.server.v1_12_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
       at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_181]
       at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_181]
       at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
       ... 5 more
 
I agree with you, but there is an error:

code_language.skript:
[11:00:08 FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.AssertionError: TRAP
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_181]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_181]
        at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:47) [spigot.jar:git-Spigot-642f6d2-ca6d2cf]
        at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [spigot.jar:git-Spigot-642f6d2-ca6d2cf]
        at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot.jar:git-Spigot-642f6d2-ca6d2cf]
        at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot.jar:git-Spigot-642f6d2-ca6d2cf]
        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot.jar:git-Spigot-642f6d2-ca6d2cf]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
Caused by: java.lang.AssertionError: TRAP
        at net.minecraft.server.v1_12_R1.ItemStack.F(ItemStack.java:100) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
        at net.minecraft.server.v1_12_R1.ItemStack.setCount(ItemStack.java:839) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
        at net.minecraft.server.v1_12_R1.PlayerInteractManager.a(PlayerInteractManager.java:413) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
        at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1004) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
        at net.minecraft.server.v1_12_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:26) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
        at net.minecraft.server.v1_12_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
        at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_181]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_181]
        at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) ~[spigot.jar:git-Spigot-642f6d2-ca6d2cf]
        ... 5 more
 
code_language.skript:
loop blocks between the block at {_loc1} and the block at {_loc2}
this should work. Keep in mind that the variables have to contain locations.
 
Status
Not open for further replies.