rubixdev / rustmatica Goto Github PK
View Code? Open in Web Editor NEWA Rust crate for working with Minecraft litematica files
Home Page: https://crates.io/crates/rustmatica
License: GNU General Public License v3.0
A Rust crate for working with Minecraft litematica files
Home Page: https://crates.io/crates/rustmatica
License: GNU General Public License v3.0
Create versions of the DataExtractor
for various versions of Minecraft so that we can provide feature flags that provide all of the relevant blocks for a given version of Minecraft - also update the litematica schematic where relevant if necessary.
Loading a schematic with negative Position x
value in the following way
fn main() {
let res = rustmatica::Litematic::read_file("Supercharged_contained_shulker_farm.litematic");
dbg!(res);
}
will result in the following error:
Err(
NBT(
Error(
"invalid value: integer `-31`, expected usize",
),
),
)
Loading a schematic with negative Position x
value will result in a successful load of the schematic
Load any schematic (or used test file below) that contains a negative Position x
value.
I already mentioned this issue on a repo for a similar crate, which can be inspected here: SlopeCraft/mc_schem#1
The individual size values can also be negative, as can be seen by inspecting the attached schematic.
Rustc version: rustc 1.76.0 (07dca489a 2024-02-04)
Toolchain: stable-x86_64-unknown-linux-gnu (default)
This .litematic
was generated by the litematica mod, minecraft version minecraft 1.20.4
.
Type: LITEMATIC
MinecraftDataVersion: 3465
Subversion: 1
Version: 6
Regions: 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.