MCPcopy Index your code
hub / github.com/Trivernis/minecraft-data-rs

github.com/Trivernis/minecraft-data-rs @v0.7.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.7.2 ↗ · + Follow
158 symbols 302 edges 42 files 39 documented · 25%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

minecraft-data-rs

This repository is a rust library to access minecraft data. The data itself hosted in the minecraft-data repository and included into the library at compile time.

Excluding the minecraft-data at compile time

By adding default-features=false to the dependency in your Cargo.toml file, you can exclude the minecraft-data from the library.

Usage

use std::collections::HashMap;
use minecraft_data_rs::Api;
use minecraft_data_rs::models::food::Food;
use minecraft_data_rs::models::version::Version;

// create an api wrapper for the latest stable version
let api = Api::latest().expect("failed to retrieve latest version");
let food: Vec<Food> = api.foods.foods_array().unwrap();

for food in food {
    println!("When eating {} you gain {} food points", food.name, food.food_points);
}

Features

Feature Description
include-data includes the whole minecraft-data repository in the binary
api enables the api to query minecraft data

License

This project is Licensed under MIT.

Core symbols most depended-on inside this repo

get_version_specific_file
called by 11
src/data/mod.rs
build_inner_type
called by 9
src/models/protocol/types.rs
enchantments_array
called by 4
src/api/enchantments.rs
eq
called by 4
src/models/protocol/types.rs
blocks_array
called by 3
src/api/blocks.rs
versions
called by 3
src/api/versions.rs
get_common_file
called by 2
src/data/mod.rs
biomes_array
called by 2
src/api/biomes.rs

Shape

Method 62
Class 43
Function 40
Enum 13

Languages

Rust100%

Modules by API surface

src/models/protocol/types.rs24 symbols
src/models/protocol/mod.rs10 symbols
src/models/protocol/packet_mapper.rs8 symbols
src/models/block.rs7 symbols
src/api/blocks.rs7 symbols
src/api/tests/blocks.rs6 symbols
src/api/loot.rs6 symbols
src/api/enchantments.rs6 symbols
src/models/recipe.rs5 symbols
src/api/items.rs5 symbols
src/api/foods.rs5 symbols
src/api/entities.rs5 symbols

For agents

$ claude mcp add minecraft-data-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact