NEED HELP!!

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

Hassan7000

Member
Mar 12, 2018
23
3
0
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_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"
 
Status
Not open for further replies.