fabric-docs icon indicating copy to clipboard operation
fabric-docs copied to clipboard

Block Inventory article

Open natri0 opened this issue 11 months ago • 8 comments

Added an article about implementing Inventory in block entities. Some stuff (e.g. ImplementedInventory) copied over from wiki's "tutorial:inventory".

Tutorial covers using the ImplementedInventory & implementing SidedInventory, as well as some basic user interaction (inserting items on right-click).

natri0 avatar Dec 30 '24 20:12 natri0

Deploy Preview for nimble-elf-d9d491 ready!

Name Link
Latest commit 595d29914269b9227b04fcc147f42b7939f486cf
Latest deploy log https://app.netlify.com/projects/nimble-elf-d9d491/deploys/6825886ce3a33f000820649a
Deploy Preview https://deploy-preview-246--nimble-elf-d9d491.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Dec 30 '24 20:12 netlify[bot]

Thank you for your contribution!

We are temporarily not accepting PRs until we finish the update process. Follow #242 for more information.

You may keep this PR open.

its-miroma avatar Dec 30 '24 20:12 its-miroma

Hi! The documentation has been updated to version 1.21.4. Please rebase your PR and update your code to align with the latest version.

Alternatively, you can create a new branch based on the latest commit from the FabricMC:main branch, copy over your changes from the old natri0:inventory branch, update it, and open a new PR - this approach is often simpler than dealing with complex git commands if you're not the best git wrangler.

Once you've completed the updates and are confident everything is ready, feel free to unmark this as a draft. Thanks again for your contribution!

IMB11 avatar Jan 15 '25 15:01 IMB11

updated for 1.21.4 :)

natri0 avatar Jan 16 '25 08:01 natri0

Hello @natri0, are you still working on this?

its-miroma avatar Feb 15 '25 17:02 its-miroma

@its-miroma sorry for the delay, was busy; i'll get back to it next week :)

natri0 avatar May 09 '25 09:05 natri0

rebased to latest main and applied changes requested by @its-miroma.

Also on that note, an example on how to use the Fabric Transfer API might be useful for that too. Or this could get its extra page, if necessary.

@JR1811 i think a separate page (maybe "under" this one like Block Entities -> Block Entity Renderers) and a note about the existence of Fabric Transfer API would be better? don't want it to get too long/complex with marginally related parts all in the same article.

natri0 avatar May 14 '25 15:05 natri0

Hi @natri0, sorry for the long wait, do you think you could address the last few reviews, and check if anything changed in 1.21.10, so we can get this merged? Thank you!

its-miroma avatar Sep 23 '25 17:09 its-miroma