Code Monkey home page Code Monkey logo

bedrock-provider's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bedrock-provider's Issues

All blocks below y:16 NetworkDecoded as air

Tested on 1.19.1 through 1.19.70
I modified processSubChunk from example to output block at x0 y15 z0 (built a tower from stone on a sever at this location from y0 to hight limit).

Part of the code where changes were made:
if (entry.result === 'success') { foundSubChunks++ if (packet.cache_enabled) { await loadCached(cc, x, y, z, entry.blob_id, entry.payload) } else { await cc.networkDecodeSubChunkNoCache(y, entry.payload) let position = new Vec3(0, 15, 0) let block_at15 = bot.world.getColumnAt(position).getBlock(position) console.log(position) console.log(block_at15) } } else { lostSubChunks++ }

Can't load Nether chunks

Nether chunks appear to have no block data:
image

Using the following code:

async function load(folder, dimension = 1) {
  const db = new LevelDB(locDB, {
    createIfMissing: false,
  });
  await db.open();
  const world = new WorldProvider(db, { dimension });
  return { db, world };
}

async function getChunk(world, xx, zz) {
  const has = await world.hasChunk(xx, zz);
  if (!has) {
    console.warn(`WARNING: No chunk found at ${xx}, ${zz}`);
    return undefined;
  }
  return world.load(xx, zz, true);
}

The world I'm using definitely has disk-written Nether chunks, I can load up the world and see changes etc. where I am trying to read them.

Any clues?

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.