Hey im making a skript to make it easy for a player to see a chunk so im working on the skript when you right click a item it will set one layer of glass to the nearest players chunk but right now it sets glass blocks to the whole chunks so the whole chunk will be filled will glass. but i just want one layer to be filled anyone know how to do that. Btw is on a skyblock server
Code:
Code:
code_language.skript:
import:
com.wasteofplastic.askyblock.ASkyBlockAPI
java.util.UUID
command /chunkliner [<player>]:
trigger:
if arg-1 is set:
give arg-1 1 381 named "&e&lChunkLiner" with lore "&7This will outline a chunk with glass to make||&7it easer to make cactus farms or just build"
on right click:
if name of player's tool is "&e&lChunkLiner":
if ASkyBlockAPI.getInstance().getIslandOwnedBy(UUID.fromString(player's uuid)).onIsland(location):
set blocks within chunk at event-block to glass
else:
message "&cYou can only use this on your island"
message "&cMake sure to right click a block on your island"