Skip to content

Conversation

@cassiancc
Copy link
Member

@cassiancc cassiancc commented Nov 18, 2025

Documents the new Data Attachment API, including info on syncing, persistence, saving and writing, as well as a simplified example of the Facade Pattern discussed by modmuss.

https://deploy-preview-405--nimble-elf-d9d491.netlify.app/develop/data-attachments

Fixes #341

@netlify
Copy link

netlify bot commented Nov 18, 2025

Deploy Preview for nimble-elf-d9d491 ready!

Name Link
🔨 Latest commit ccec2da
🔍 Latest deploy log https://app.netlify.com/projects/nimble-elf-d9d491/deploys/6932003cb913020008f14f15
😎 Deploy Preview https://deploy-preview-405--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.

@cassiancc cassiancc added new-content A new page or set of pages todo:verify This needs to be reviewed priority:low This is nice to have, but it can wait a little labels Nov 18, 2025
@its-miroma its-miroma mentioned this pull request Nov 28, 2025
8 tasks
@cassiancc cassiancc marked this pull request as ready for review December 2, 2025 01:53
@cassiancc cassiancc requested a review from a team as a code owner December 2, 2025 01:53
Copy link
Contributor

@DennisOchulor DennisOchulor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it's really necessary, but the attachment change event could use a little section about it.

cassiancc and others added 4 commits December 2, 2025 20:23
cassiancc and others added 2 commits December 3, 2025 19:52
Co-authored-by: DennisOchulor <113277083+DennisOchulor@users.noreply.github.com>
Copy link
Contributor

@DennisOchulor DennisOchulor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now 👍

Copy link
Contributor

@ekulxam ekulxam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already left most of my comments in https://discord.com/channels/507304429255393322/1440182041952915518, just have a few questions.

dicedpixels
dicedpixels previously approved these changes Dec 4, 2025
@FabricMC FabricMC deleted a comment from Earthcomputer Dec 4, 2025
Copy link
Member

@its-miroma its-miroma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clear article, but a bit wordy. I've simplified and shortened some parts. Also, consider adding as many code blocks to the reference as possible, especially since this API is experimental and might change in the future.

cassiancc and others added 2 commits December 4, 2025 14:04
Co-authored-by: Miroma <its.miroma@proton.me>
Copy link
Member

@its-miroma its-miroma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor fixes.

I still think that as much code as possible should be moved to the reference

cassiancc and others added 2 commits December 4, 2025 14:54
Copy link
Member

@its-miroma its-miroma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I capitalized Data Attachment. LGTM

Co-authored-by: Miroma <its.miroma@proton.me>
@its-miroma its-miroma removed the todo:verify This needs to be reviewed label Dec 4, 2025
Copy link
Contributor

@ekulxam ekulxam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All my comments have been resolved.

@cassiancc cassiancc merged commit 13cb92a into FabricMC:main Dec 7, 2025
8 checks passed
@cassiancc cassiancc deleted the data-attachment branch December 7, 2025 17:45
its-miroma added a commit to its-miroma/fmc that referenced this pull request Dec 9, 2025
* main:
  Developer Guides: revise "Introduction to Fabric" (FabricMC#401)
  Entity Attributes page (FabricMC#320)
  Data Attachment Docs (FabricMC#405)
  Call `setDirty()` Only When Data is Changed (FabricMC#424)
  Avoid use of first person (FabricMC#423)
  fix item tooltip, add() -> accept() (FabricMC#422)
  Fix edit on GitHub links (FabricMC#421)
its-miroma added a commit to its-miroma/fmc that referenced this pull request Dec 9, 2025
* plugins:
  lowercase mixin
  format sidebar
  mention first unobfuscated version
  npm audit fix
  add tabs plugin
  Developer Guides: revise "Introduction to Fabric" (FabricMC#401)
  Entity Attributes page (FabricMC#320)
  Data Attachment Docs (FabricMC#405)
  Call `setDirty()` Only When Data is Changed (FabricMC#424)
  Avoid use of first person (FabricMC#423)
  fix item tooltip, add() -> accept() (FabricMC#422)
  Fix edit on GitHub links (FabricMC#421)
its-miroma added a commit to Earthcomputer/fabric-docs that referenced this pull request Dec 9, 2025
* main:
  add tabs plugin (FabricMC#425)
  Developer Guides: revise "Introduction to Fabric" (FabricMC#401)
  Entity Attributes page (FabricMC#320)
  Data Attachment Docs (FabricMC#405)
  Call `setDirty()` Only When Data is Changed (FabricMC#424)
  Avoid use of first person (FabricMC#423)
  fix item tooltip, add() -> accept() (FabricMC#422)
  Fix edit on GitHub links (FabricMC#421)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-content A new page or set of pages priority:low This is nice to have, but it can wait a little

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Developer Guides: Data Attachment API

6 participants