Skip to content

Commit

Permalink
✨ feat(bs.move): predicate has_vel is now properly documented (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
aksiome authored Mar 2, 2025
1 parent ffaa007 commit 064504a
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/_templates/changelog/v3.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
### `🏃 bs.move`

- <abbr title="Breaking Changes">⚠️</abbr> **[#282](https://github.com/mcbookshelf/Bookshelf/issues/282)** - Updated `on_collison` callback: scores now use the `bs.lambda` objective, and the input requires a full command instead of a function path. Additionally, `on_collision/*` functions have been renamed to `callback/*`.
- <abbr title="New Features">✨</abbr> **[#298](https://github.com/mcbookshelf/Bookshelf/issues/298)** - Predicate `bs.move:has_vel` is now properly documented.
- <abbr title="Bug Fix">🐛</abbr> **[#316](https://github.com/mcbookshelf/Bookshelf/issues/316)** - Fixed entities clipping into blocks during collision resolution.


Expand Down
16 changes: 16 additions & 0 deletions docs/modules/move.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,22 @@ execute as @e[type=minecraft:pig] run function #bs.move:set_motion {scale:0.001}
---

## 👁️ Predicates

You can find below all predicates available in this module.

---

### Has Velocity?

**`bs.move:has_vel`**

Determine if an entity has a nonzero velocity score.

> **Credits**: Aksiome
---

## 🎓 Custom Collisions

This module allows you to customize collision behaviors according to your specific needs.
Expand Down
15 changes: 15 additions & 0 deletions meta/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2487,6 +2487,21 @@
"date": "2023/12/13",
"minecraft_version": "1.20.4"
}
},
{
"id": "bs.move:has_vel",
"documentation": "https://docs.mcbookshelf.dev/en/latest/modules/move.html#has-velocity",
"authors": [
"Aksiome"
],
"created": {
"date": "2025/01/03",
"minecraft_version": "1.21.4"
},
"updated": {
"date": "2025/01/03",
"minecraft_version": "1.21.4"
}
}
]
},
Expand Down
15 changes: 15 additions & 0 deletions modules/bs.move/data/bs.move/predicate/has_vel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
{
"__bookshelf__": {
"feature": true,
"documentation": "https://docs.mcbookshelf.dev/en/latest/modules/move.html#has-velocity",
"authors": [
"Aksiome"
],
"created": {
"date": "2025/01/03",
"minecraft_version": "1.21.4"
},
"updated": {
"date": "2025/01/03",
"minecraft_version": "1.21.4"
}
},
"condition": "minecraft:any_of",
"terms": [
{
Expand Down

0 comments on commit 064504a

Please sign in to comment.