Issue with looping within

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

PancakeEmpire

Member
Nov 13, 2020
1
0
1
19
command /testblocks:
permission: op
trigger:
loop blocks within location( -328.5, 44.5, 209.5, world "world") and location( -328.5, 46.5, 207.5, world "world"):
set loop-block to cobblestone


This gives me an internal error for some reason, I've tried reinstalling skBee & Skript aswell as testing it without any other addons ( besides skbee ).

tried adding "all" and removing the space (-328.5....)
 

Attachments

  • b04fb0d08c2c4a80dcee77eecbbe71d0.png
    b04fb0d08c2c4a80dcee77eecbbe71d0.png
    105.2 KB · Views: 112
Please paste your code. Also what are you gonna use this for? There might be a more efficient way to do what you are trying to accomplish.
 
you can set locations {loc1} and {loc2} with an item (like right click with a stick, then set {loc1} to clicked blocks's location), then use:

set {_item} to cobblestone
loop blocks within {loc1} to {loc2}:
set loop-block to {_item}
 
command /testblocks:
permission: op
trigger:
loop blocks within location( -328.5, 44.5, 209.5, world "world") and location( -328.5, 46.5, 207.5, world "world"):
set loop-block to cobblestone


This gives me an internal error for some reason, I've tried reinstalling skBee & Skript aswell as testing it without any other addons ( besides skbee ).

tried adding "all" and removing the space (-328.5....)

Please use the CODE tags when posting a Skript.
What are you trying to do here?
 
Status
Not open for further replies.