This repository has been archived by the owner on Jan 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Syst3ms/Syst3ms-patch-1
Fixes
- Loading branch information
Showing
35 changed files
with
557 additions
and
572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="library" name="Skript" level="project" /> | ||
</component> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="library" name="Skript" level="project" /> | ||
</component> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,97 @@ | ||
# QuarSk | ||
|
||
QuarSk is a new cutting-edge addon for Skript ! | ||
|
||
## Features : | ||
|
||
### References : | ||
|
||
References are a new way to simplify your code and make it more readable ! | ||
|
||
####Explanation : | ||
Using any modification (add, set, remove) on a reference will affect what the reference was set to. | ||
And displaying the reference will make it update itself. References start with `@`. | ||
|
||
**Example :** | ||
```yml | ||
link @reference to metadata "sth" of last spawned pig | ||
|
||
send "%@reference%" | ||
#will show "<none>" because the metadata isn't set | ||
|
||
set @reference to "stuff" | ||
#will be the same as | ||
set metadata "sth" of last spawned pig to "stuff" | ||
|
||
send "%@reference%" | ||
#will send "stuff" | ||
|
||
#to unlink a reference : | ||
unlink @reference | ||
``` | ||
|
||
**Syntaxes :** | ||
Everything is in the example, but I thought I'd put the actual syntaxes. | ||
**Link/unlink :** | ||
``` | ||
link @<.+> to %object% | ||
unlink @<.+> | ||
``` | ||
**Accessing a reference :** | ||
``` | ||
@<.+> | ||
``` | ||
The parts between < and > is regex. But you don't need to know that. | ||
**NOTE :** | ||
You can't use spaces in a reference's name. As for naming references, I recommend using [lowerCamelCase](http://wiki.c2.com/?LowerCamelCase). | ||
|
||
|
||
###Orientation : | ||
|
||
There is also an easy-to-use orienting effect that allows you to make any entity face a defined location ! | ||
|
||
**Syntaxes :** | ||
``` | ||
orient %entity% (towards|away from) %location% | ||
make %entity% (face|look [at]) ([towards]|away from) %location% | ||
force %entity% to (look [at]|face) ([towards]|away from) %location% | ||
``` | ||
|
||
###Potion stuff | ||
|
||
I'm glad to present you Potion Control, the new QuarSk 1.1 feature ! It adds 2 effects, 1 condition, 8 expressions and 1 type to this addon ! If you have any suggestion, suggest it anywhere ! | ||
|
||
**Syntaxes :** | ||
```java | ||
//Effects : | ||
apply [potion] [effect[s] [of]] %potioneffects% to %livingentities% | ||
|
||
milk %livingentities% //Removes all potion effects from an entity | ||
|
||
//Condition : | ||
[entity] %livingentity% (has [got]|has( not|n't) [got]) [(the|a)] %potioneffecttype% [potion] effect | ||
//Expressions : | ||
[[potion] effect [(with|by)]] %potioneffecttype% for %timespan% with [a] [tier [of]] %number% [particles %-boolean%[ with ambient [effect] %-boolean%[ and [particle] colo[u]r[ed] %-color%]]]]] //Returns a "potioneffect" type, which is used quite a lot | ||
[(normal|splash|linger[ing])] potion (of|by|with|from) [effect[s]] %potioneffects% | ||
[(all|every|each)] [active] [potion] effects (on|in) %livingentities% | ||
[(every|all|each) of] %livingentities%['s] [active] [potion] effect[s] | ||
|
||
[(all|every|each)] [potion] effect[s] (on|of) %itemstack% //The item can only be a potion | ||
[(all|every|each) of] %itemstack%['s] [potion] effect[s] | ||
//A "potioneffect" is made of a potion effect type (speed, strength...), duration and other parameters. This only returns the potion effect type | ||
potion[ ]effect[[ ]type][s] of %potioneffect% | ||
%potioneffect%['s] potion[ ]effect[[ ]type][s] | ||
|
||
//Cannot be set because Spigot doesn't allow it | ||
(duration|length) of [potion] effect[s] %potioneffect% | ||
[potion] effect[s] %potioneffect%['s] (duration|length) | ||
//Same here | ||
(tier|level|amplifier|power) of [potion] [effect] %potioneffect% | ||
[potion] [effect] %potioneffect%['s] (tier|amplifier|level|power) | ||
``` | ||
Hope you enjoy ! | ||
# QuarSk | ||
|
||
QuarSk is a new cutting-edge addon for Skript ! | ||
|
||
## Features : | ||
|
||
### References : | ||
|
||
References are a new way to simplify your code and make it more readable ! | ||
|
||
####Explanation : | ||
Using any modification (add, set, remove) on a reference will affect what the reference was set to. | ||
And displaying the reference will make it update itself. References start with `@`. | ||
|
||
**Example :** | ||
```yml | ||
link @reference to metadata "sth" of last spawned pig | ||
|
||
send "%@reference%" | ||
#will show "<none>" because the metadata isn't set | ||
|
||
set @reference to "stuff" | ||
#will be the same as | ||
set metadata "sth" of last spawned pig to "stuff" | ||
|
||
send "%@reference%" | ||
#will send "stuff" | ||
|
||
#to unlink a reference : | ||
unlink @reference | ||
``` | ||
|
||
**Syntaxes :** | ||
Everything is in the example, but I thought I'd put the actual syntaxes. | ||
**Link/unlink :** | ||
``` | ||
link @<.+> to %object% | ||
unlink @<.+> | ||
``` | ||
**Accessing a reference :** | ||
``` | ||
@<.+> | ||
``` | ||
The parts between < and > is regex. But you don't need to know that. | ||
**NOTE :** | ||
You can't use spaces in a reference's name. As for naming references, I recommend using [lowerCamelCase](http://wiki.c2.com/?LowerCamelCase). | ||
|
||
|
||
###Orientation : | ||
|
||
There is also an easy-to-use orienting effect that allows you to make any entity face a defined location ! | ||
|
||
**Syntaxes :** | ||
``` | ||
orient %entity% (towards|away from) %location% | ||
make %entity% (face|look [at]) ([towards]|away from) %location% | ||
force %entity% to (look [at]|face) ([towards]|away from) %location% | ||
``` | ||
|
||
###Potion stuff | ||
|
||
I'm glad to present you Potion Control, the new QuarSk 1.1 feature ! It adds 2 effects, 1 condition, 8 expressions and 1 type to this addon ! If you have any suggestion, suggest it anywhere ! | ||
|
||
**Syntaxes :** | ||
```java | ||
//Effects : | ||
apply [potion] [effect[s] [of]] %potioneffects% to %livingentities% | ||
|
||
milk %livingentities% //Removes all potion effects from an entity | ||
|
||
//Condition : | ||
[entity] %livingentity% (has [got]|has( not|n't) [got]) [(the|a)] %potioneffecttype% [potion] effect | ||
//Expressions : | ||
[[potion] effect [(with|by)]] %potioneffecttype% for %timespan% with [a] [tier [of]] %number% [particles %-boolean%[ with ambient [effect] %-boolean%[ and [particle] colo[u]r[ed] %-color%]]]]] //Returns a "potioneffect" type, which is used quite a lot | ||
[(normal|splash|linger[ing])] potion (of|by|with|from) [effect[s]] %potioneffects% | ||
[(all|every|each)] [active] [potion] effects (on|in) %livingentities% | ||
[(every|all|each) of] %livingentities%['s] [active] [potion] effect[s] | ||
|
||
[(all|every|each)] [potion] effect[s] (on|of) %itemstack% //The item can only be a potion | ||
[(all|every|each) of] %itemstack%['s] [potion] effect[s] | ||
//A "potioneffect" is made of a potion effect type (speed, strength...), duration and other parameters. This only returns the potion effect type | ||
potion[ ]effect[[ ]type][s] of %potioneffect% | ||
%potioneffect%['s] potion[ ]effect[[ ]type][s] | ||
|
||
//Cannot be set because Spigot doesn't allow it | ||
(duration|length) of [potion] effect[s] %potioneffect% | ||
[potion] effect[s] %potioneffect%['s] (duration|length) | ||
//Same here | ||
(tier|level|amplifier|power) of [potion] [effect] %potioneffect% | ||
[potion] [effect] %potioneffect%['s] (tier|amplifier|level|power) | ||
``` | ||
Hope you enjoy ! |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.04 KB
out/production/QuarSk/fr/syst3ms/quarsk/conditions/CondHasPotionEffect.class
Binary file not shown.
Binary file added
BIN
+2.86 KB
out/production/QuarSk/fr/syst3ms/quarsk/effects/EffLinkReference.class
Binary file not shown.
Binary file added
BIN
+3.24 KB
out/production/QuarSk/fr/syst3ms/quarsk/effects/EffOrientTowards.class
Binary file not shown.
Binary file added
BIN
+2.36 KB
out/production/QuarSk/fr/syst3ms/quarsk/effects/EffUnlinkReference.class
Binary file not shown.
Binary file added
BIN
+2.32 KB
out/production/QuarSk/fr/syst3ms/quarsk/effects/potion/EffApplyPotionEffects.class
Binary file not shown.
Binary file added
BIN
+2.42 KB
out/production/QuarSk/fr/syst3ms/quarsk/effects/potion/EffMilkEntity.class
Binary file not shown.
Binary file added
BIN
+3.62 KB
out/production/QuarSk/fr/syst3ms/quarsk/expressions/SExprReference.class
Binary file not shown.
Binary file added
BIN
+2.55 KB
out/production/QuarSk/fr/syst3ms/quarsk/expressions/beacon/ExprBeaconTier.class
Binary file not shown.
Binary file added
BIN
+2.79 KB
out/production/QuarSk/fr/syst3ms/quarsk/expressions/beacon/ExprEntitiesInRange.class
Binary file not shown.
Binary file added
BIN
+913 Bytes
out/production/QuarSk/fr/syst3ms/quarsk/expressions/beacon/SExprBeaconEffects$1.class
Binary file not shown.
Binary file added
BIN
+4.16 KB
out/production/QuarSk/fr/syst3ms/quarsk/expressions/beacon/SExprBeaconEffects.class
Binary file not shown.
Binary file added
BIN
+3.93 KB
out/production/QuarSk/fr/syst3ms/quarsk/expressions/potion/ExprCustomPotionEffect.class
Binary file not shown.
Binary file added
BIN
+2.79 KB
out/production/QuarSk/fr/syst3ms/quarsk/expressions/potion/ExprCustomPotionItem.class
Binary file not shown.
Binary file added
BIN
+3.1 KB
out/production/QuarSk/fr/syst3ms/quarsk/expressions/potion/ExprEntityPotionEffects.class
Binary file not shown.
Binary file added
BIN
+2.4 KB
out/production/QuarSk/fr/syst3ms/quarsk/expressions/potion/ExprPotionEffectDuration.class
Binary file not shown.
Binary file added
BIN
+2.35 KB
out/production/QuarSk/fr/syst3ms/quarsk/expressions/potion/ExprPotionEffectTier.class
Binary file not shown.
Binary file added
BIN
+2.38 KB
out/production/QuarSk/fr/syst3ms/quarsk/expressions/potion/ExprPotionEffectType.class
Binary file not shown.
Binary file added
BIN
+1.04 KB
out/production/QuarSk/fr/syst3ms/quarsk/expressions/potion/ExprPotionItemEffects$1.class
Binary file not shown.
Binary file added
BIN
+6.1 KB
out/production/QuarSk/fr/syst3ms/quarsk/expressions/potion/ExprPotionItemEffects.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: QuarSk | ||
version: 1.1.1 | ||
author: Syst3ms | ||
main: fr.syst3ms.quarsk.QuarSk | ||
depend: [Skript] |
Oops, something went wrong.