Solved Around saved varriable

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

Vxnku

Member
Nov 29, 2022
15
0
1
23
Code:
command /covertrack:
    cooldown: 1 seconds
    cooldown message: Ждите &c%remaining time% &fсекунд!
    trigger:
        set {b} to all blocks in radius 15 of player
        set {covertrack::%player%} to location of player

command /inspect:
    cooldown: 1 seconds
    cooldown message: Ждите &c%remaining time% &fсекунд!
    trigger:
        if distance between {covertrack::} and player is less than 15

I want the command to save a certain position, and if another player writes a command within a 15 block radius of the position, something will happen
 
Code:
command /covertrack:
    cooldown: 1 seconds
    cooldown message: Ждите &c%remaining time% &fсекунд!
    trigger:
        set {b} to all blocks in radius 15 of player
        set {covertrack::%player%} to location of player

command /inspect:
    cooldown: 1 seconds
    cooldown message: Ждите &c%remaining time% &fсекунд!
    trigger:
        if distance between {covertrack::} and player is less than 15

I want the command to save a certain position, and if another player writes a command within a 15 block radius of the position, something will happen
untested

Code:
command /covertrack:
    cooldown: 1 seconds
    cooldown message: Ждите &c%remaining time% &fсекунд!
    trigger:
        add block under player to {track::*}


command /inspect:
    cooldown: 1 seconds
    cooldown message: Ждите &c%remaining time% &fсекунд!
    trigger:
        loop all blocks in radius 15 around player:
            if {track::*} contains loop-block:
if this is what you want, make sure to delete the variables inside the {tracks::*} list, whenever the game is over, or whenever you need to do so, otherwise it will always recognize that location as a "track'
Code:
clear {track::*}
 
Status
Not open for further replies.