[1.8 - 1.11] QuarSk, hopefully no quirks ! Update 1.2.1 : Massive recode + new event !

Addon [1.8 - 1.11] QuarSk, hopefully no quirks ! Update 1.2.1 : Massive recode + new event ! 1.3.1

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

Disabling Skript version checking because it sometimes led to QuarSK never activating.
This last hotfix fixed a bug with the Skript version checker, making QuarSK never load.
Fixed some bugs that prevented QuarSK from loading and improved documentation.

This is why I make pre-releases.
It has been quite a while since the last update, hasn't it ?

This is a pre-release because I didn't test it and I want to make sure no bugs are left before actual release (which would suck)

This update consists mainly of syntax changes and internal cleanup.

[h2]Changes[/h2]
[h3]Requirements (IMPORTANT) : [/h3]
  • Dropped support for 1.8 (deal with it)
  • Now requires Skript dev26 or more (otherwise syntax conflicts will be everywhere), hence dropping 1.8 support.

[h3]New event : [/h3]
Lingering potion splash event. Works the same as the regular potion splash event, but, well... with lingering potions. You can get the thrown potion through "event-projectile" and the resulting area effect cloud through "event-entity". Syntax :
Code:
[on] linger[ing] potion splash[ing] [with [effect] types %-*potioneffecttypes*]

[h3]Syntax changes : [/h3]
  • Code:
    [entity] %livingentity% (has [got]|has( not|n't) [got]) [(the|a)] %potioneffecttype% [potion] effect
    becomes
    Code:
    %livingentity% (has [got]|has( not|n't) [got]) [(the|a)] %potioneffecttype% [potion] [effect]
  • Code:
    [banner] [block] %block% (is|is(n't| not)) [a] wall banner
    becomes
    Code:
    %block% (is|are) [a] wall banner
    and
    Code:
    %block% (isn't|is not|aren't|are not) [a] wall banner
  • Code:
    apply (banner|shield) [item] pattern[s] of %itemstack% to [banner] [block] %block%
    becomes
    Code:
    apply [(banner|shield)] patterns of %itemstack% to %block%
    and
    Code:
    apply %itemstack%['s] (banner|shield)] pattern[s] to %block%
  • Code:
    apply [potion] [effect[s] [of]] %potioneffects% to %livingentities%
    becomes
    Code:
    apply %potioneffects% to %livingentities%
  • Code:
    [new] (banner|shield) (from|with|using|of) [[banner] (layer|pattern)[s]] %bannerlayers% and [bas(e|ic)] colo[u]r %color%
    become
    Code:
    [new] (banner|shield) (with|using) [pattern[s]] %bannerlayers% [(and|with)] base colo[u]r %color%
  • Code:
    [new] [banner] (layer|pattern) (with|using|of|from) pattern [type] %bannerpattern% colo[u]r[ed] %color%
    becomes
    Code:
    [new] [banner] (layer|pattern) (with|using) (pattern [type]|type) %bannerpattern% [(with|and)] colo[u]r %color%
  • Code:
    [banner] block bas(e|ic) color of block %block%
    and
    Code:
    block %block%['s] [banner] bas(e|ic) color
    become
    Code:
    bas(e|ic) color of %block%
    and
    Code:
    %block%'[s] bas(e|ic) color
  • Code:
    [(all|each|every)] [banner] (layer|pattern)[s] of [(shield|banner|item)] %itemstack%
    and
    Code:
    [(all|every|each) of] %itemstack%['s] [banner] (layer|pattern)[s]
    become
    Code:
    [banner] pattern[s] of %block%
    and
    Code:
    %block%['s] [banner] pattern[s]
  • Code:
    [(banner|shield)] bas(e|ic) color of item %itemstack%
    and
    Code:
    item %itemstack%['s] [(banner|shield)] bas(e|ic) color
    become
    Code:
    bas(e|ic) color of %itemstack%
    and
    Code:
    %itemstack%'[s] bas(e|ic) color
  • Code:
    [(all|each|every)] [banner] (layer|pattern)[s] of [(shield|banner|item)] %itemstack%
    and
    Code:
    [(all|every|each) of] %itemstack%['s] [banner] (layer|pattern)[s]
    become
    Code:
    [banner] pattern[s] of %itemstack%
    and
    Code:
    %itemstack%['s] [banner] pattern[s]
  • Code:
    [banner] item of [banner] block %block%
    and
    Code:
    [banner] %block%['s] [banner] item
    become
    Code:
    banner item of %block%
    and
    Code:
    %block%'[s] banner item
  • Code:
    beacon (tier|level) of %block%
    and
    Code:
    %block%['s] beacon (tier|level)
    become
    Code:
    beacon (tier|level) of %block%
    and
    Code:
    %block%'[s] beacon (tier|level)
  • Code:
    [(all|every|each)] ([living] entit(ies|y)|player[s]) in range of %block%
    becomes
    Code:
    entities in range of [beacon] %block%
  • Code:
    [the] beacon fuel[ing item[[ ]stack]] of [beacon] %block%
    and
    Code:
    %block%['s] beacon fuel[ing item[[ ]stack]]
    become
    Code:
    beacon fuel[ing] [item] of %block%
    and
    Code:
    %block%'[s] beacon fuel[ing] [item]

[h3]Other changes : [/h3]
  • Removed the "thrown potion" expression inside of the regular potion splash event and replaced it with
    Code:
    event-projectile
  • MASSIVE optimisations to the source code have been made.

I think that wraps it up !
  • Like
Reactions: Spartan9802
Update time !
This update doesn't add much new stuff, but on the Java side of things, the whole addon has been changed.

[h2]New stuff :[/h2]
[h3]Events :[/h3]
Code:
[on] [potion] splash[ing] [(of|with) %potioneffecttypes%]
Triggers when a splash potion explodes/lands. If you specify potion effect types, the event will only trigger if the thrown potion's effects contains the specified ones.

[h3]Event values :[/h3]
Code:
[the] affected entities
Can only be used in the potion splash event. Returns all the entities who got affected by the thrown potion.
Code:
[the] thrown potion [entity]
Can only be used in the potion splash event. Returns the thrown potion as an entity.

[h3]Expressions :[/h3]
Code:
[banner] item of [banner] block %block%
[banner] %block%['s] [banner] item
Gets a banner item from a banner block : same colors, same patterns.

[h3]Added syntax.txt[/h3]
Now, a file containing all registered syntax is created inside the QuarSk folder ! A way to check the syntax whenever you want !

[h2]Hope you enjoy ![/h2]
Update time !

1.2 is here !

This update adds lots of syntaxes regarding banners. Not only can you fully customise everything about them, but you can also create a banner from Miner Needs Cool Shoes ! Create your banner, then copy the code at the end of the URL in the "Share link" (don't release the mouse button or else it will select the whole url). You will then be able to use that code in the dedicated expression.
It also adds a few missing expressions regarding potions.

Every single syntax is explained on the QuarSk wiki, which can be found here.

New stuff :

Effects (1) :
Code:
apply (banner|shield) [item] pattern[s] of %itemstack% to [banner] [block] %block%
apply [item] %itemstack%['s] (banner|shield) pattern[s] to [banner] [block] %block%
Expressions (7) :
Banners :
Code:
[new] [banner] layer (with|using|of|from) pattern [type] %bannerpattern% colo[u]r[ed] %color%
Code:
[new] (banner|shield) (from|with|using|of) [[banner] patterns] %bannerlayers%
Code:
[(all|each|every)] [banner] layer[s] of [(block|banner)] %block%
[(all|every|each) of] %block%['s] [banner] layers
Settable (Modifiers : set, add, remove, delete/reset)
Code:
[(all|each|every)] [banner] layer[s] of [(shield|banner|item)] %itemstack%
[(all|every|each) of] %itemstack%['s] [banner] layers
Settable (Modifiers : set, add, remove, delete/reset)
Code:
[(banner|shield)] bas(e|ic) color of item %itemstack%
item %itemstack%['s] [(banner|shield)] bas(e|ic) color
Settable (Modifiers : set, reset)
Code:
[banner] block bas(e|ic) color of block %block%
block %block%['s] [banner] bas(e|ic) color
Settable (Modifiers : set, reset)
Code:
(banner|shield) [item] from [m[iners]]n[eed]c[ool][s[hoes]] [code] %string%
Code:
[m[iners]]n[eed]c[ool][s[hoes]] code of [(banner|shield|item)] %itemstack%
Code:
[a] [new] random (banner|shield)
Potions :
Code:
(tier|amplifier) of [[potion] effect [type]] %potioneffecttype% on [item] %itemstack%
[[potion] effect [type]] %potioneffecttype%['s] (tier|amplifier) on [item] %itemstack%
Settable (Modifiers : add, set, remove)
Code:
(duration|length) of [[potion] effect [type]] %potioneffecttype% on [item] %itemstack%
[[potion] effect [type]] %potioneffecttype%['s] (duration|length) on [item] %itemstack%
Settable (Modifiers : add, set, remove)

All possible pattern types :
Code:
base 
border
brick 
circle middle
creeper 
cross
curly border
diagonal left
diagonal left mirror
diagonal right
diagonal right mirror
flower
gradient
gradient up 
half horizontal
half horizontal mirror
half vertical
half vertical mirror
mojang 
rhombus middle 
skull
square bottom left
square bottom right
square top left
square top right
straight cross
stripe bottom
stripe center (vertical) 
stripe downleft (diagonal, ends down left)
stripe downright (diagonal, ends down right)
stripe left
stripe middle (horizontal)
stripe right
stripe small (multiple small vertical stripes)
stripe top
triangle bottom
triangle top 
triangles bottom
triangles top
I'll post images on the wiki if I have time.

Gone :
  • color of %potioneffect%

Hope you enjoy !
Just a fix for the download link