Solved i need help with radius in skript

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

anipez1

New Member
Mar 21, 2024
5
0
1
any way i can change something in code so i can place deepslate dropper anywhere in and only in the player's plot? (btw i placed deepslate dropper the farthest i can to show where i cant place)
1711052389190.png

this is part of the code im using (im testing with 1 plot for now):
code_language.skript:
on place:
    set {found} to 0
    set {center} to location(3.0, -60.0, 3.0, world "main")
    loop all blocks in radius 9 of {center}:
        if loop-block is event-block:
            set {found} to 1
    if player's tool isn't deepslate:
        cancel event
    else if block below event-block isn't cyan terracotta:
        set {canPlace} to 0
        cancel event
    else if {found} is 0:
        cancel event
    else:
        set {canPlace} to 1
 
nvm i fixed, i thought that increasing the radius would reach the other plot but i guess im wrong