Check location

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

Uzumaki

Well-Known Member
Feb 20, 2017
310
10
18
33
code_language.skript:
on right click with blaze rod:
    if {sw.arena.%uuid of player%.creating} is set: 
        if player's tool is blaze rod: 
            cancel event
            if target block is trapped chest or chest or ender_chest:
                if {sw.arena.%{sw.arena.%uuid of player%.creating}%.TIER2::*} contains location of target block:
                    send "&c&l» &7&lTHIS CHEST IS ALREADY ADDED" 
                else:
                    add location of target block to {sw.arena.%{sw.arena.%uuid of player%.creating}%.TIER2::*} 
                    send "&c&l» &7&lTIER 2 ADDED"

This part not work:

code_language.skript:
                if {sw.arena.%{sw.arena.%uuid of player%.creating}%.TIER2::*} contains location of target block:
 
code_language.skript:
on right click with blaze rod:
    if {sw.arena.%uuid of player%.creating} is set:
        if player's tool is blaze rod:
            cancel event
            if target block is trapped chest or chest or ender_chest:
                if {sw.arena.%{sw.arena.%uuid of player%.creating}%.TIER2::*} contains location of target block:
                    send "&c&l» &7&lTHIS CHEST IS ALREADY ADDED"
                else:
                    add location of target block to {sw.arena.%{sw.arena.%uuid of player%.creating}%.TIER2::*}
                    send "&c&l» &7&lTIER 2 ADDED"

This part not work:

code_language.skript:
                if {sw.arena.%{sw.arena.%uuid of player%.creating}%.TIER2::*} contains location of target block:

if you write it a little bit diffrent you can store it better

code_language.skript:
set {sw.arena.%{sw.arena.%uuid of player%.creating}%.TIER2::%location of target block%} to true

if {sw.arena.%{sw.arena.%uuid of player%.creating}%.TIER2::%location of target block%} is set:
 
Status
Not open for further replies.