You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
461 B
21 lines
461 B
use valence::prelude::*;
|
|
|
|
pub fn setup(
|
|
mut commands: Commands,
|
|
server: Res<Server>,
|
|
dimensions: Query<&DimensionType>,
|
|
biomes: Query<&Biome>,
|
|
) {
|
|
let mut instance = Instance::new(ident!("overworld"), &dimensions, &biomes, &server);
|
|
|
|
for z in -5..5 {
|
|
for x in -5..5 {
|
|
instance.insert_chunk([x, z], Chunk::default());
|
|
}
|
|
}
|
|
|
|
commands.spawn(instance);
|
|
|
|
tracing::info!("Finished setting up world!");
|
|
}
|