3 stable releases
2.0.1 | Jul 15, 2022 |
---|---|
2.0.0 | Jun 27, 2022 |
1.0.2 | Jun 26, 2022 |
#98 in #world
20KB
244 lines
A lightweight way to create Minecraft datapacks in rust
Covered datapack files that can be created easily
- advancements
- functions
- item_modifiers
- loot_tables
- predicates
- recipes
- structures
- tags/blocks
- tags/entity_types
- tags/fluids
- tags/functions
- tags/game_events
- tags/items
- dimension
- dimension_type
- worldgen/biome
- worldgen/configured_carver
- worldgen/configured_feature
- worldgen/configured_structure_feature
- worldgen/configured_surface_builder
- worldgen/noise_settings
- worldgen/placed_feature
- worldgen/processor_list
- worldgen/template_pool
Create a simple hello world datapack
use datapack::builder::DataPackBuilder;
use datapack::component::{Component, MCFunction};
use datapack::namespace::Namespace;
use std::fs::File;
let file = File::create("example.zip").unwrap();
DataPackBuilder::new()
.add_namespace(
Namespace::new("example")
.add_component(Component::Function(MCFunction::new("say hello world", "hello", true, false)))
).build(&file)
Dependencies
~5.5MB
~93K SLoC