Minecraft data pack utility library.
Project description
Lepsen Core
Data pack utility library packaged as a Beet plugin.
Example Beet Configuration
Note that any directly required feature must be manually specified for it to be included in the generated data pack.
Implicit dependencies of a required feature will be loaded automatically, however, so users of the tick scheduler or forceloaded chunk need not enable the main feature.
pipeline:
- lepsen.core
meta:
lepsen:
main: true
forceload: true
tick_scheduler: true
player_head: true
data_pack:
name: Example
load: ["src/*"]
Data Pack Initialization
This pack uses Lantern Load, but the recommended way to check for correct pack initialization is through compatibility flags. The benefit of this approach is that a new major version may not break usage of a feature, making this a more flexible way of checking for successful dependency loading.
An example of minimal initialization of this pack is as follows (including the correct way to check for compatibility flags).
@function_tag(merge) load:load
{
"values": [
{"id": "#lepsen:core/load", "required": false},
"example:load"
]
}
@function example:load
execute
if score #lepsen_core.compat load.status matches 1
if data storage lepsen:core compat{
objectives: 1,
forceload: 1
}
run function example:init
@function example:init
# Indicate that the plack was successfully loaded.
scoreboard players set example_pack load.status 1
# Pack initialization logic.
# ...
License
Lepsen Core is made freely available under the terms of the 0BSD License. Third-party contributions shall be licensed under the same terms unless explicitly stated otherwise.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lepsen-core-0.1.2.tar.gz.
File metadata
- Download URL: lepsen-core-0.1.2.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.6 Linux/5.12.12_1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8a4fe92b85296b65aaa48eaa1b9a5d452f3685941e3e58bb08c18ce1e02c5c6
|
|
| MD5 |
5678c30e5b9bd401e54226ac91f93eed
|
|
| BLAKE2b-256 |
724f1020f3d3f9b0b5e48aa839fcb32de422f4f2a5ebe9f0df22a1ff4d7af8ae
|
File details
Details for the file lepsen_core-0.1.2-py3-none-any.whl.
File metadata
- Download URL: lepsen_core-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.6 Linux/5.12.12_1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d8f695cdd16a711dff550f116a3e17efe65812fe11cf56781fb336a0a4eadb1
|
|
| MD5 |
12403582e3cb98d37a9e8c6f9d8dfa84
|
|
| BLAKE2b-256 |
6e856bb29cd34fd2add58425f2e4b40b908a667d5b5597f86da1461f63a0f9a7
|