[PR #6609] [MERGED] Resource packs doc: connected textures, and why name= rules aren't loaded #6979

Closed
opened 2026-11-03 06:30:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6609
Author: @some-du6e
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: optifine/ctm-docs


📝 Commits (10+)

  • 6fdeef1 OptiFine CTM: a picked tile can be matched by another rule
  • 048f3b6 OptiFine CTM chained tiles: no rerun of rules already tried
  • 88f4b82 OptiFine CTM chained tiles: rules after the pick still chain
  • 69c1111 Merge main into #6578
  • b418ea1 OptiFine CTM: Continuity's orient=texture
  • 8086d13 Merge remote-tracking branch 'origin/main' into optifine/ctm-chained
  • 5c2a3cc Merge branch 'optifine/ctm-chained' of https://github.com/some-du6e/horizon into optifine/ctm-chained
  • 8057c41 OptiFine CTM orient=texture: review fixes, merged with the chained-tile branch
  • 9563b41 OptiFine CTM orient=texture: no directions on planes off the block's axes
  • 3237499 Resource packs doc: connected textures, and why name= rules aren't loaded

📊 Changes

4 files changed (+284 additions, -10 deletions)

View changed files

📝 crates/horizon-client-render/src/connected.rs (+193 -9)
📝 crates/horizon-client-render/src/mesher.rs (+9 -1)
📝 crates/horizon-optifine/src/ctm/connect.rs (+81 -0)
📝 docs/resource-packs.md (+1 -0)

📄 Description

docs/resource-packs.md lists what a resource pack can change and whether Horizon honours it, but it had no row for OptiFine/Continuity connected textures. It also didn't say why name= rules (CTM for a renamed chest or furnace) aren't supported.

This adds the row: every method and property Horizon reads, Continuity's extras, the tests that prove them, and the gaps.

  • name= rules: not loaded. A block entity's custom name lives on the server's world, and the client that meshes chunks (the window is a client of the server thread, as for LAN and multiplayer) never receives it. Vanilla's block-entity update tags carry no CustomName for most blocks. Supporting it would mean changing what the server sends, so I'm skipping it.
  • random: uses its own fixed hash, so random tiles land in different places than in OptiFine, with the same weights.
  • Emissive tiles: not drawn yet; that's the next PR.

Depends on #6593 and #6578 (the row describes chained tiles and orient=texture; their commits are at the bottom of this branch). Review only the last two commits (the row, and its review fixes).

Docs used: OptiFine's OptiFineDoc/doc/ctm.properties (name: "only for blocks which have corresponding nameable tile entities"). No mod source was read.

Checks: docs only; nothing to build. Checked by reading where custom names are kept: World::block_names, filled from saves and by gameplay on the server side, and moved out of chunks on arrival in streaming.rs.

Note

Filed by Opus 5.5 using Claude Code.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6609 **Author:** [@some-du6e](https://github.com/some-du6e) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `optifine/ctm-docs` --- ### 📝 Commits (10+) - [`6fdeef1`](https://github.com/horizon-rust/horizon/commit/6fdeef19a7be635e148aea2f8dd27a98976df3ef) OptiFine CTM: a picked tile can be matched by another rule - [`048f3b6`](https://github.com/horizon-rust/horizon/commit/048f3b6e87d25fef4132691a19102c166dca86c6) OptiFine CTM chained tiles: no rerun of rules already tried - [`88f4b82`](https://github.com/horizon-rust/horizon/commit/88f4b82bfe932acb97ad74c71c4c00cb98757757) OptiFine CTM chained tiles: rules after the pick still chain - [`69c1111`](https://github.com/horizon-rust/horizon/commit/69c11117a62344809e3e207f7993b882a7adda9a) Merge main into #6578 - [`b418ea1`](https://github.com/horizon-rust/horizon/commit/b418ea15f00290bc7f8ab35e49b8ed27898263f0) OptiFine CTM: Continuity's orient=texture - [`8086d13`](https://github.com/horizon-rust/horizon/commit/8086d137e5519aa1935f680d9c8fbbf86b529a73) Merge remote-tracking branch 'origin/main' into optifine/ctm-chained - [`5c2a3cc`](https://github.com/horizon-rust/horizon/commit/5c2a3cc945f958c38369fb852dd8a67247b06f30) Merge branch 'optifine/ctm-chained' of https://github.com/some-du6e/horizon into optifine/ctm-chained - [`8057c41`](https://github.com/horizon-rust/horizon/commit/8057c41c069c7b13503fb44155f62f62c421ba59) OptiFine CTM orient=texture: review fixes, merged with the chained-tile branch - [`9563b41`](https://github.com/horizon-rust/horizon/commit/9563b41599fb3b1af8a7fff80a8a53acd0512dd0) OptiFine CTM orient=texture: no directions on planes off the block's axes - [`3237499`](https://github.com/horizon-rust/horizon/commit/3237499eab80a4da79458d8054e57382d0a6aef3) Resource packs doc: connected textures, and why name= rules aren't loaded ### 📊 Changes **4 files changed** (+284 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/connected.rs` (+193 -9) 📝 `crates/horizon-client-render/src/mesher.rs` (+9 -1) 📝 `crates/horizon-optifine/src/ctm/connect.rs` (+81 -0) 📝 `docs/resource-packs.md` (+1 -0) </details> ### 📄 Description `docs/resource-packs.md` lists what a resource pack can change and whether Horizon honours it, but it had no row for OptiFine/Continuity connected textures. It also didn't say why `name=` rules (CTM for a renamed chest or furnace) aren't supported. This adds the row: every method and property Horizon reads, Continuity's extras, the tests that prove them, and the gaps. - **`name=` rules:** not loaded. A block entity's custom name lives on the server's world, and the client that meshes chunks (the window is a client of the server thread, as for LAN and multiplayer) never receives it. Vanilla's block-entity update tags carry no `CustomName` for most blocks. Supporting it would mean changing what the server sends, so I'm skipping it. - **`random`:** uses its own fixed hash, so random tiles land in different places than in OptiFine, with the same weights. - **Emissive tiles:** not drawn yet; that's the next PR. **Depends on #6593 and #6578** (the row describes chained tiles and `orient=texture`; their commits are at the bottom of this branch). Review only the last two commits (the row, and its review fixes). **Docs used:** OptiFine's `OptiFineDoc/doc/ctm.properties` (`name`: "only for blocks which have corresponding nameable tile entities"). No mod source was read. **Checks:** docs only; nothing to build. Checked by reading where custom names are kept: `World::block_names`, filled from saves and by gameplay on the server side, and moved out of chunks on arrival in `streaming.rs`. > [!NOTE] > Filed by Opus 5.5 using Claude Code. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:30:35 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6979
No description provided.