#(JustinS) Trying to make a Force field / Shield (OLD: Flagging players with almost unique flags

1 messages · Page 1 of 1 (latest)

ancient relic
#

Im trying to flag the players inside of a shield (an area), with "in_shield<player.uuid>" where the player is the one who made that shield.
My question is: How can I check for all flags that start with in_shield, and ignore the <player.uuid>?

ivory pecanBOT
#

(JustinS) Flagging players with almost unique flags

ivory pecanBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

ancient relic
#

wait

#

maybe I found a workaround

#

yeah no that wouldnt work

#

What Im trying to do:
If theres 2 players inside the same shield, the if check should return false.
If theres 1 player inside a shield, and the target is outside, return true
If theres 1 player inside a shield, and the target is in a shield as well, but in a DIFFERENT shield than the player, return true

gritty plankBOT
#
Possible Confusion

Did you mean to search for worldtag.players?

desert grotto
#

ope

#

!tag cuboidtag.players

gritty plankBOT
# desert grotto !tag cuboidtag.players

Gets a list of all players currently within the area.

Returns

ListTag(PlayerTag)

Examples
# Narrates a list of players' names that are within the area.
# For example: "List of players in 'my_cuboid': steve, alex, john, jane"
- narrate "List of players in 'my_cuboid': <cuboid[my_cuboid].players.formatted>"
desert grotto
#

if its a cuboid, theres this

ancient relic
#

its a sphere

#

ellipsoid

desert grotto
#

!t ellipsoidtag.players

gritty plankBOT
# desert grotto !t ellipsoidtag.players

Gets a list of all players currently within the area.

Returns

ListTag(PlayerTag)

Examples
# Narrates a list of players' names that are within the area.
# For example: "List of players in 'my_cuboid': steve, alex, john, jane"
- narrate "List of players in 'my_cuboid': <cuboid[my_cuboid].players.formatted>"
desert grotto
#

areaobject not areatag kek, whoops

ancient relic
#

But how would I get the area? Im not noting it anywhere because it only exists for like 10-20 seconds

ancient relic
#

to what?

desert grotto
#

?

ancient relic
#

A flag requires something to flag it to. I cant just flag a location with its location

#

then I cant retrieve it anywhere

desert grotto
ancient relic
#

then Ill do that

ancient relic
#

Im flagging the area as shield<player.uuid>

#

to link it to the player

#

oh wait

ancient relic
ancient relic
#

hmm right so the location is not right

#

the ellipsoid Im using

#

isnt defined properly (the one Im flagging)

#

I tried
<ellipsoid[<[origin].x>,<[origin].y>,<[origin.z]>,<[origin].world.name>,3.8,3.8,3.8]>
with
- define origin <player.location.add[0,1.2,0]>

#

but it doesnt recognize origin

stone hullBOT
ancient relic
#

inside he ellipsoid

#

(JustinS) Trying to make a Force field / Shield (OLD: Flagging players with almost unique flags

ancient relic
#

Am trying to return whether the player is inside the ellipsoid, which has the center <[origin]>

desert grotto
#

!tag to_ellipsoid

gritty plankBOT
desert grotto
#

something like <player.location.above[1.2].to_ellipsoid[3.8,3.8,3.8]>

#

or their .eye_location if thats what the 1.2 is doing

ancient relic
#

I think this works. Also requires some more testing but Ill do that soon. Thanks for pointing that tag out!