Skip to content

About

A Fabric mod that extracts Minecraft data (blocks, items, entities, etc.) into JSON files

Resources

Stars

3 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

SteelExtractor

./gradlew runServer also runs extractJavaBlockPosSets before starting the server.

Java BlockPos set test fixtures

Run ./gradlew extractJavaBlockPosSets with Java 25. This dedicated task supplies its reflection and sequential identity-hash JVM flags without changing the flags used by server/worldgen extraction.

The output is run/steel_extractor_output/steel-core/test_assets/java_block_pos_sets.json. STEEL_EXTRACTOR_OUTPUT_DIRECTORY overrides the output root. Copy the produced file into Steel's matching steel-core/test_assets/ directory and run cargo test -p steel-core --lib java_block_pos_set in Steel.

The fixture records each insertion's result, table capacity, tree-bin count, iteration-order SHA-256, and tree-shape SHA-256. It includes distinct-hash resizes, tree splits, duplicate keys, signed hashes, overflowing coordinates, and equal-hash keys whose JVM identity order matches insertion order.

TNT explosion-order test fixture

Captured by the normal extractor run (./gradlew runServer; disable with STEEL_EXTRACTOR_DISABLE_TNT_EXPLOSION_ORDER=1). It places the obsidian-channel/TNT fixture near the overworld origin and captures a radius-four explosion with the level RNG seeded to 1, before any ticks run. The primed TNT is discarded afterward.

The output is run/steel_extractor_output/steel-core/test_assets/vanilla_tnt_order.json. STEEL_EXTRACTOR_OUTPUT_DIRECTORY overrides the output root. Copy the produced file into Steel's matching steel-core/test_assets/ directory and run cargo test -p steel-core --lib radius_four_tnt_matches_vanilla_order_and_fuse_bounds.

The JSON records the ray-insertion digest, set iteration order, shuffled block callback order, primed TNT positions/fuses, and surviving TNT. Steel checks fuse bounds and priming order because its live gameplay RNG is unseeded.

About

A Fabric mod that extracts Minecraft data (blocks, items, entities, etc.) into JSON files

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages