Resource icon

API jaylawl's (scoreboard) TagAPI 2.1.2

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

2.1.2
  • Condensed a lot of the code (due to helpful hints)
  • Fixed the conditions sometimes not working as expected
  • You can now add any object (text/boolean/number/integer/etc) as a scoreboard tag
2.1.1
  • Fixed console errors popping when getting values from the expressions
This API now supports custom expressions/conditions by usage of skript-mirror. Makes a lot of sense, since the API was depending on skript-mirror anyway.

2.1
- Added custom expressions & conditions as replacement for functions
- functions from 2.0 are still kept in the file and are functional (outcomment if not needed)
- tweaked the scoreboard-tag-wand a bit
FKpVs0.jpg


Expressions:
  • %entity%'s [scoreboard(-| )]tags ~~~ (get/loop/set/add/remove/delete/reset)
  • %entity%'s [scoreboard(-| )]tag(-| )value %string% ~~~ (get/set/delete/reset)
Conditions:
  • %entity% (0¦does(n't| not) have|1¦has [got]|does have) [scoreboard(-| )]tag[s ] %strings%
  • %entity% (0¦does(n't| not) have|1¦has [got]|does have) [scoreboard(-| )]tag(-| )value[s ] %strings%
Examples:
code_language.skript:
command /test:
    trigger:
     
        add "this", "is", "just", "an", "example" to command sender's tags
        loop command sender's tags:
            send "%loop-value%"
         
        remove "this", "is", "just" from command sender's tags
        send "%command sender's tags%"
     
        set command sender's tag value "IsTest" to "true"
        command sender has tag value "IsTest":
            command sender's tag value "IsTest" = "true"
            send "&atrue!, command sender has the tags: %command sender's tags%"
         
        delete command sender's tag value "IsTest"
        remove "an", "example" from command sender's tags
     
        send "%command sender's tags%"
  • Like
Reactions: Mr_Simba