Skip to content

Commit b8eee6d

Browse files
committed
release(0.5.2): add additional player related predicates
1 parent 15bc3fc commit b8eee6d

File tree

6 files changed

+41
-1
lines changed

6 files changed

+41
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.5.2] - 2023-01-30
9+
### Added
10+
- Predicates to detect a player sneaking, swimming, sprinting, or on fire.
11+
812
## [0.5.1] - 2023-01-28
913
### Added
1014
- String / Newline, stores a newline character in storage `moxlib:api/string/newline`

data/moxlib/functions/version.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ data modify storage moxlib:version name set value "Moxlib"
22

33
data modify storage moxlib:version major set value 0
44
data modify storage moxlib:version minor set value 5
5-
data modify storage moxlib:version patch set value 1
5+
data modify storage moxlib:version patch set value 2
66

77
tellraw @a {"nbt":"name","storage":"moxlib:version","extra":[{"text":" v","extra":[{"nbt":"major","storage":"moxlib:version","extra":[{"text":"."},{"nbt":"minor","storage":"moxlib:version"},{"text":".","extra":[{"nbt":"patch","storage":"moxlib:version","extra":[{"nbt":"info","storage":"moxlib:version/experimental","interpret":true}]}]}]}]}]}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"condition": "minecraft:entity_properties",
3+
"entity": "this",
4+
"predicate": {
5+
"flags": {
6+
"is_on_fire": true
7+
}
8+
}
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"condition": "minecraft:entity_properties",
3+
"entity": "this",
4+
"predicate": {
5+
"flags": {
6+
"is_sneaking": true
7+
}
8+
}
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"condition": "minecraft:entity_properties",
3+
"entity": "this",
4+
"predicate": {
5+
"flags": {
6+
"is_sprinting": true
7+
}
8+
}
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"condition": "minecraft:entity_properties",
3+
"entity": "this",
4+
"predicate": {
5+
"flags": {
6+
"is_swimming": true
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)