Coder Social home page Coder Social logo

Comments (15)

oldgalileo avatar oldgalileo commented on August 18, 2024

As per #17, the contents of Chests should be stored alongside the chunk caching to enable pathing to a chest with a given item.

Merging #17 into this and closing #17 for consolidation.

from baritone.

leijurv avatar leijurv commented on August 18, 2024

I made them separate on purpose. Storing inventory contents is different from storing valuable block locations, other than that they're both ancillary data we're attaching to cached chunks.

from baritone.

leijurv avatar leijurv commented on August 18, 2024

But #17 was pretty sparse, so no big deal.

from baritone.

oldgalileo avatar oldgalileo commented on August 18, 2024

@leijurv I'm not sure that that's true. We should be storing special blocks and their NBT data inside the ancillary data we're attaching to chunks and as far as I know, chests still use NBT data.

from baritone.

leijurv avatar leijurv commented on August 18, 2024

@HowardStark You don't get chest contents with the chunk. Once we get a chunk and can convert into storage format, we can get the simplified 2-bit version, and the locations of all special blocks, immediately. Blocks with inventories are separate, since we only get them once we actually right-click and open the inventory.

from baritone.

oldgalileo avatar oldgalileo commented on August 18, 2024

@leijurv We should be storing the chest/inventory-block locations inside the ancillary data and updating that block with the proper NBT data for their contents if and when we are given that data.

from baritone.

leijurv avatar leijurv commented on August 18, 2024

Okay, however I think updating only once we get the data is a separate and more complicated issue from just modifying our existing Chunk -> CachedChunk converter to include special block locations alongside the overall 2-bit representation.

from baritone.

oldgalileo avatar oldgalileo commented on August 18, 2024

Why? We're not touching the 2-bit representation with special blocks at all. This is, as you say, separate and thus is not as big of a deal, especially since we don't have any of this written as of the time this comment was made.

from baritone.

leijurv avatar leijurv commented on August 18, 2024

Because it's entirely self contained within the Chunk -> CachedChunk converter. As opposed to also reaching into GuiInventory to get the contents of the open chest later on.

from baritone.

leijurv avatar leijurv commented on August 18, 2024

I'm just saying they're different issues, not that they should be stored differently on disk.

from baritone.

oldgalileo avatar oldgalileo commented on August 18, 2024

I'm not seeing how they are different. Perhaps renaming this issue to "Store special block data" would be more appropriate?

from baritone.

leijurv avatar leijurv commented on August 18, 2024

Because there's a clear delineation of first step: store where the blocks are. second step: store their contents once we open them. The first step can be easily accomplished in our Chunk to CachedChunk converter. I'd prefer to have more "bite-sized" issues, but still each comprising a new feature =)

from baritone.

oldgalileo avatar oldgalileo commented on August 18, 2024

Storing where the blocks are and storing what the blocks are I assumed would be the same here. In Minecraft, a block can contain NBT data. Now, I assumed that we would simply serialize the blocks and their metadata as they were, or make a serializable wrapper that contained that information.

Granted, I may be wrong in assuming that, but either way, we're diving into implementation details of a feature which has no implementation, it seems overzealous imo to try breaking these issue down in advance. If upon implementation, it becomes an issue, then I think we should, by all means, create an issue.

In addition to the rename proposed above, perhaps it is time to begin using GitHub projects as, if I remember correctly, tasks can have subtasks for I agree that the container item storage is a subtask. I simply disagree that it necessitates its own issue at this state and feel it clutters the issue list given the clear dependency on this being implemented even before that.

from baritone.

leijurv avatar leijurv commented on August 18, 2024

Yeah, it's just that the server doesn't give you the contents of the chest / shulker / furnace until you actually right click it.

I'd love subtasks!

from baritone.

ZacSharp avatar ZacSharp commented on August 18, 2024

Storing the locations of BLOCKS_TO_KEEP_TRACK_OF has been added 3 years ago in d0fc77e. That's version 0.0.3.
Can this be closed now?

from baritone.

Related Issues (20)

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.