Merge branch 'master' into 1.16
This commit is contained in:
commit
a9c6e46c59
5 files changed
+22
-20
No files matched your search
+11
-10
@@ -1,15 +1,9 @@
|
|||||||
# Fundamental components of `scarpet` programming language (towards version 1.7).
|
# Fundamental components of `scarpet` programming language.
|
||||||
|
|
||||||
Scarpet (a.k.a. Carpet Script, or Script for Carpet) is a programming language
|
Scarpet (a.k.a. Carpet Script, or Script for Carpet) is a programming language
|
||||||
designed to provide the ability to write custom programs to run within Minecraft
|
designed to provide the ability to write custom programs to run within Minecraft
|
||||||
and interact with the world.
|
and interact with the world.
|
||||||
|
|
||||||
The project was initially built based on the EvalEx project, however it now diverged
|
|
||||||
so far away from the original implementation, it would be hard to tell it without
|
|
||||||
this mention. EvalEx is a handy expression evaluator for Java, that allows to evaluate
|
|
||||||
simple mathematical and boolean expressions. For more information,
|
|
||||||
see: [EvalEx GitHub repository](https://github.com/uklimaschewski/EvalEx)
|
|
||||||
|
|
||||||
This specification is divided into two sections: this one is agnostic to any
|
This specification is divided into two sections: this one is agnostic to any
|
||||||
Minecraft related features and could function on its own, and CarpetExpression
|
Minecraft related features and could function on its own, and CarpetExpression
|
||||||
for Minecraft specific routines and world manipulation functions.
|
for Minecraft specific routines and world manipulation functions.
|
||||||
@@ -277,6 +271,13 @@ check_foo_not_zero();
|
|||||||
...
|
...
|
||||||
check_foo_not_zero() -> if(global_foo == 0, global_foo = 1)
|
check_foo_not_zero() -> if(global_foo == 0, global_foo = 1)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
## Mentions
|
||||||
|
|
||||||
|
LR1 parser, tokenizer, and several built-in functions are built based on the EvalEx project.
|
||||||
|
EvalEx is a handy expression evaluator for Java, that allows to evaluate
|
||||||
|
simple mathematical and boolean expressions. EvalEx is distributed under MIT licence.
|
||||||
|
For more information, see: [EvalEx GitHub repository](https://github.com/uklimaschewski/EvalEx)
|
||||||
# Variables and Constants
|
# Variables and Constants
|
||||||
|
|
||||||
`scarpet` provides a number of constants that can be used literally in scripts
|
`scarpet` provides a number of constants that can be used literally in scripts
|
||||||
@@ -296,9 +297,9 @@ block positions. All variables starting with `_` are read-only, and cannot be de
|
|||||||
|
|
||||||
`scarpet` accepts numeric and string liters constants. Numbers look like `1, 2.5, -3e-7, 0xff,` and are internally
|
`scarpet` accepts numeric and string liters constants. Numbers look like `1, 2.5, -3e-7, 0xff,` and are internally
|
||||||
represented as Java's `double` but `scarpet` will try to trim trailing zeros as much as possible so if you need to
|
represented as Java's `double` but `scarpet` will try to trim trailing zeros as much as possible so if you need to
|
||||||
use them as intergers, you can. Strings using single quoting, for multiple reasons, but primarily to allow for
|
use them as intergers, you can. Strings use single quoting, for multiple reasons, but primarily to allow for
|
||||||
easier use of strings inside doubly quoted command arguments (when passing a script as a parameter of `/script fill`
|
easier use of strings inside doubly quoted command arguments (when passing a script as a parameter of `/script fill`
|
||||||
for example, or when typing in jsons inside scarpet to feed back into a `/data merge` command for example.
|
for example), or when typing in jsons inside scarpet (to feed back into a `/data merge` command for example).
|
||||||
Strings also use backslashes `\` for quoting special characters, in both plain strings and regular expressions
|
Strings also use backslashes `\` for quoting special characters, in both plain strings and regular expressions
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
@@ -3300,7 +3301,7 @@ Optional shared shape attributes:
|
|||||||
in the form of `0xRRGGBBAA`, with the default of `-1`, so white opaque, or `0xFFFFFFFF`.
|
in the form of `0xRRGGBBAA`, with the default of `-1`, so white opaque, or `0xFFFFFFFF`.
|
||||||
* `player` - name or player entity to send the shape to. If specified, the shapes will appear only for the specified
|
* `player` - name or player entity to send the shape to. If specified, the shapes will appear only for the specified
|
||||||
player, otherwise it will be send to all players in the dimension.
|
player, otherwise it will be send to all players in the dimension.
|
||||||
* `width` - line thickness, defaults to 2.0pt
|
* `line` - line thickness, defaults to 2.0pt
|
||||||
* `fill` - color for the faces, defaults to no fill. Use `color` attribute format
|
* `fill` - color for the faces, defaults to no fill. Use `color` attribute format
|
||||||
* `follow` - entity, or player name. Shape will follow an entity instead of being static.
|
* `follow` - entity, or player name. Shape will follow an entity instead of being static.
|
||||||
Follow attribute requires all positional arguments to be relative to the entity and disallow
|
Follow attribute requires all positional arguments to be relative to the entity and disallow
|
||||||
|
|||||||
@@ -1,15 +1,9 @@
|
|||||||
# Fundamental components of `scarpet` programming language (towards version 1.7).
|
# Fundamental components of `scarpet` programming language.
|
||||||
|
|
||||||
Scarpet (a.k.a. Carpet Script, or Script for Carpet) is a programming language
|
Scarpet (a.k.a. Carpet Script, or Script for Carpet) is a programming language
|
||||||
designed to provide the ability to write custom programs to run within Minecraft
|
designed to provide the ability to write custom programs to run within Minecraft
|
||||||
and interact with the world.
|
and interact with the world.
|
||||||
|
|
||||||
The project was initially built based on the EvalEx project, however it now diverged
|
|
||||||
so far away from the original implementation, it would be hard to tell it without
|
|
||||||
this mention. EvalEx is a handy expression evaluator for Java, that allows to evaluate
|
|
||||||
simple mathematical and boolean expressions. For more information,
|
|
||||||
see: [EvalEx GitHub repository](https://github.com/uklimaschewski/EvalEx)
|
|
||||||
|
|
||||||
This specification is divided into two sections: this one is agnostic to any
|
This specification is divided into two sections: this one is agnostic to any
|
||||||
Minecraft related features and could function on its own, and CarpetExpression
|
Minecraft related features and could function on its own, and CarpetExpression
|
||||||
for Minecraft specific routines and world manipulation functions.
|
for Minecraft specific routines and world manipulation functions.
|
||||||
@@ -277,3 +271,10 @@ check_foo_not_zero();
|
|||||||
...
|
...
|
||||||
check_foo_not_zero() -> if(global_foo == 0, global_foo = 1)
|
check_foo_not_zero() -> if(global_foo == 0, global_foo = 1)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
## Mentions
|
||||||
|
|
||||||
|
LR1 parser, tokenizer, and several built-in functions are built based on the EvalEx project.
|
||||||
|
EvalEx is a handy expression evaluator for Java, that allows to evaluate
|
||||||
|
simple mathematical and boolean expressions. EvalEx is distributed under MIT licence.
|
||||||
|
For more information, see: [EvalEx GitHub repository](https://github.com/uklimaschewski/EvalEx)
|
||||||
+1
-1
@@ -9,7 +9,7 @@ org.gradle.jvmargs=-Xmx1G
|
|||||||
loader_version=0.8.8+build.202
|
loader_version=0.8.8+build.202
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.3.33+v200621
|
mod_version = 1.4.0+v200623
|
||||||
maven_group = carpet
|
maven_group = carpet
|
||||||
archives_base_name = fabric-carpet
|
archives_base_name = fabric-carpet
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ import static carpet.settings.RuleCategory.CLIENT;
|
|||||||
@SuppressWarnings("CanBeFinal")
|
@SuppressWarnings("CanBeFinal")
|
||||||
public class CarpetSettings
|
public class CarpetSettings
|
||||||
{
|
{
|
||||||
public static final String carpetVersion = "1.3.33+v200621";
|
public static final String carpetVersion = "1.4.0+v200623";
|
||||||
public static final Logger LOG = LogManager.getLogger();
|
public static final Logger LOG = LogManager.getLogger();
|
||||||
public static boolean skipGenerationChecks = false;
|
public static boolean skipGenerationChecks = false;
|
||||||
public static boolean impendingFillSkipUpdates = false;
|
public static boolean impendingFillSkipUpdates = false;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"schemaVersion": 1,
|
"schemaVersion": 1,
|
||||||
"id": "carpet",
|
"id": "carpet",
|
||||||
"version": "1.3.33",
|
"version": "1.4.0",
|
||||||
|
|
||||||
"name": "Carpet Mod in Fabric",
|
"name": "Carpet Mod in Fabric",
|
||||||
"description": "Carpet made out of fabric",
|
"description": "Carpet made out of fabric",
|
||||||
|
|||||||
Reference in new issue
Block a user