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
Hashes for lepsen_core-0.2.0rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a6736b43504d00e3e7d354f594f6c7a8beedbfe3d73750b8ac4c21965e8f68 |
|
MD5 | 1bc645267526b728179d9ad7be2fef23 |
|
BLAKE2b-256 | b8f4081c4fa3f1a22ae7fa51ee9ad5ceed7dac441ab12354e2fdb60102b07534 |