#(yukiyahana) How to select one MapTag from a ListTag(MapTag)

17 messages · Page 1 of 1 (latest)

cunning breach
#

I want to filter out a MapTag from a ListTag(MapTag), specifically to select a MapTag with type=UNLUCK from <EntityTag.effects_data>. I'm trying to use foreach but it seems I got something wrong.

Here is my command:
- foreach <context.entity.effects_data> key:type=UNLUCK as:unluckeffect:

shy crowBOT
#

(yukiyahana) How to select one MapTag from a ListTag(MapTag)

shy crowBOT
#

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.

whole marten
#

!debug

void moatBOT
# whole marten !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

whole marten
#

Please provide a debug report.

jovial sorrel
#

also

#

!paste

void moatBOT
cunning breach
whole marten
void moatBOT
# whole marten !checklog https://paste.denizenscript.com/View/117292
Server Version

Paper version git-Paper-550 (MC: 1.19.4)-- (Current build :white_check_mark:)

Plugin Version(s)

Denizen: 1.2.9-SNAPSHOT (build 1798-REL) -- (Current build :white_check_mark:)
Depenizen: 2.1.0 (build 845) -- (Outdated build, behind by 5)

Checked For

@whole marten

UUID Version

3 (:triangular_flag_on_post: Offline)

Java Version

17.0.1 :white_check_mark:

Other Noteworthy Plugin(s)

MythicMobs: 5.3.5-64893d49, ProtocolLib: 5.1.0

whole marten
#

@shell basin cracked @cunning breach

shell basinBOT
whole marten
#

@shell basin warn @cunning breach serious falsifying debug records

shell basinBOT
#
Warning Recorded

Warning from @whole marten to @cunning breach recorded.
Reason: "falsifying debug records"
User has 1 previous warnings.