Skip to content

feat: show a block's density in its item tooltip - #109

Merged
adamico merged 5 commits into
mainfrom
claude/gracious-morse-bfc253
Oct 16, 2026
Merged

adamico merged 5 commits into
mainfrom
claude/gracious-morse-bfc253

Conversation

@adamico

@adamico adamico commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

An item a Density tag names shows one grey line right under its name, its Density and the motes one yields fed to a Void Displacer:

Density 4: 64 motes

  • The motes come from the server's densityMotes, so a pack that changes the curve changes the line. Before a world has loaded the config, the line is the Density alone.
  • Other mods' storage blocks in the c: tags show it too; an item of Density 0 shows nothing.
  • The Siphon's yield is left out: it is one Density step below a Displacer's, never below 1, and naming both wrapped the tooltip.
  • One mote is said as one: "Density 1: 1 mote".
  • A tooltip only, no screen and no Jade line: a placed block's Density never matters, only a fed one's.

Game tests build real tooltips on the server: diamond block 4 and 64, copper block 1 and 1, cobblestone no line. Reviewed with /code-review (Standards and Spec), its small findings applied.

Closes #106

🤖 Generated with Claude Code

adamico and others added 5 commits October 16, 2026 19:25
An item a Density tag names shows one grey line under its name: its
Density and the motes one yields in a Displacer, from the server's
densityMotes. Before a world loads the config it shows the Density
alone; an item of Density 0 shows nothing.

Closes #106

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Density 1 block read "Density 1: 1 motes"; it now reads "1 mote". The
line is built from its Density and the motes when known, unit-tested,
and DensityTooltip registers its own listener.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamico
adamico merged commit 56235b6 into main Oct 16, 2026
4 checks passed
@adamico
adamico deleted the claude/gracious-morse-bfc253 branch October 16, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show a block's Density in its item tooltip

1 participant