SkaMoore library

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

Max094_Reikeb

Supporter
Nov 1, 2019
8
1
3
23
SkaMoore library
SkaMoore is a skript-mirror's library that adds expressions, conditions and a lot of stuff.

Dependencies required : ThatPacketAddon and SkStuff.

Here is the official website of SkaMoore library, with all the explainations, the changelogs, and the documentation.

Expression :
Code (Text):
Code:
#(nl|new line|newline)
 
#example :
command /kick <offline player <text=reason>:
    trigger:
        kick arg-1 due to "&4&lYou were kicked for : &r%nl%&b> %arg-2%"
Condition :
Code:
#[has] %player% changed biome
 
#Examples :
on any move:
    if player changed biome:
        send "&aYou just changed biome!" to player
 
on any move:
    has player changed biome
    send "&aYou just changed biome &a%{biome::%player%::avant}% &ato biome &a%{biome::%player%::apres}% &a!"
Effects :
Code:
#tempban %player% (due to|for) %reason% for %timespan%
#to notice : The duration of the ban can only be written with the form "X seconds | minutes | hours | days | weeks | years"
#example :
command /tempban <player> <text=reason> <timespan>:
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if arg-3 is set:
                    tempban arg-1 due to arg-2 for arg-3
Code:
#tempardon %player%
#example :
command /tempardon <offline player>:
    trigger:
        if arg-1 is set:
            tempardon arg-1
Code:
#make %entity% [show] [the] (swing their (main|off) hand|take damage|leave bed|critical|magic critical) [effect] [to %-players%]
#examples :
command /swing:
    trigger:
        make player swing their main hand
 
command /showdamage <player>:
    trigger:
        make player show the take damage effect to arg-1
 
on damage:
    if attacker is a witch:
        cancel event
        make player show magic critical effect to {_viewers::*}
Code:
#send coded (text|expression) %string% from %player% (with keys|as) %integer%, %integer% and %integer% [uncoded for %-players%]
#examples :
command /cchat <offline player>:
    trigger:
        if {chat::%player%::is} is false:
            set {chat::%player%::is} to true
            set {chat::%player%::cansee} to arg-1
            message "Done, true!"
            stop
        if {chat::%player%::is} is true:
            set {chat::%player%::is} to false
            message "Done, false!"
 
on chat:
    if {chat::%player%::is} is true:
        cancel event
        send coded text message from player with keys 2, 3 and 4 uncoded for {chat::%player%::cansee}
 
on chat:
    if {chat::%player%::is} is true:
        cancel event
        send coded expression message from player as 42, 21 and 90
Code:
#give %player% unstackable item %item%
#examples:
command /specialgive <item> <integer> <text>:
    trigger:
        give player unstackable item arg-2 of arg-1 named "%arg-3%"

command /givespecialsword:
    trigger:
        give player unstackable item 67 of diamond sword of sharpness 4 named "ddd" with lore "&cCOOL"