Community listing page, reviews here may not be monitored by the author.
lib
No reviews yet
More functions for datapack creators
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
A basic library mod for datapack creators. This does nothing on its own!
To create your own datapack simply download the included template file for easy access to all of the features.
As of the latest version this library includes the following features:
Predicates
Sneaking
If the targeted player is pressing the crouch key, lib:sneaking will be true
Wand
If the player is holding a wooden axe and is in creative mode, lib:can_wield_wand will be true
Callbacks
On join
When a player joins the world or server, functions in the #lib:on_join tag will be called as the player that joined
On first join
When a player joins the world or server for the first time, functions in the #lib:on_first_join tag will be called as the player that joined
Functions
Raycasting
To start a raycast, run the lib:raycast function as the entity from which to cast the ray with the following arguments:
| Argument | Data type | Description |
|---|---|---|
max_distance |
int | A positive integer representing the max distance in tenths of a block |
anchor |
eyes | feet |
How to anchor the raycast |
callback |
string | The callback function |
Example:
/execute as @p run function lib:raycast {"max_distance":200,"anchor":"eyes","callback":"example:raycast_callback"}
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources