Having issues with entity limits for commands AND skripts

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

GrenFlem

Member
Feb 24, 2025
19
1
3
In my skripts, ive tried to tag the nearest entity to the player with a scoreboard tag, but the only issue is, it adds the scoreboard tag to EVERY ENTITY.

Why is this happening?

There are no logs associated with this issue, ive looked extensively.

it just adds them.

ive tried:
set {_dEntity} to nearest entity to player
add "dEntity" to the scoreboard tags of {_dEntity}
add {_dEntity} to team named "NOCOLLIDING"

and:
execute console command "/execute at player run tag @e[limit=1,sort=nearest] add dEntity"

both end up adding the tag to ALL ENTITIES within render distance
 
Using those commands as a normal player or console works fine, but making a skript to execute them ignores entity limits, and the skript method itself ignores entity limits and just does all entities