Giter Site home page Giter Site logo

bedrockfinder's Introduction

BedrockFinder

Scan the entire World Border in the nether (-3.75m to 3.75m) in 4 minutes. Allows for partial matches with the pattern without performence loss, and is easy to use together with the Fabric Mod to generate code.

Usage

For an example of recreating bedrock, see this post where I find the coordinates to LiveOverflow's base.

  • You can use the /getcode command in LiveOverflowMod to easily get the offsets as Rust code.
  • Then copy the offsets from the chunk start into main.rs.
  • Put blocks you are 100% sure of in the top if statement, and the rest of the blocks in the let count = variable. Then make sure to update MAX_COUNT to the number of blocks in this count variable.

Finally, you can run the program in its most optimized form with:

$ cargo run --release

Example

Drawing on target screenshot:

Drawing on screenshot with bedrock and air

Recreation in-game:

Recreation of bedrock in-game

See the code in main.rs for these offsets gotten with /getcode.

Note: The hardcoded offsets code in this Github repo are for the following formation as an example:

  ██████  
████
████████
  ██████
  ██  ██

Timeline

  • I created this lib.rs as a proof of concept
  • @user32dll and I created a C version (bedrock_finder) to brute-force the coordinates orignally
  • I remade the brute-force algorithm in Rust (this repository) and cleaned up the code

bedrockfinder's People

Contributors

jorianwoltjer avatar

Stargazers

Erlend avatar zlylupaf  avatar RazrCraft avatar  avatar 박지우 avatar

Watchers

James Cloos avatar  avatar

bedrockfinder's Issues

How can I use this for the overworld?

Hello, the code doesn't seem to work for the overworld, is there anything I can change to make it work?
fyi I've replaced LegacyGenerator for OldPaperLegacyGenerator in main.rs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.