[PR #48] [MERGED] blockscope: a native-mod entry and 0.3.0 #57

Closed
opened 2026-11-03 04:02:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-mods/pull/48
Author: @Domanffe
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @levzzz5154

Base: main ← Head: blockscope-native-0.3.0


📝 Commits (2)

  • 08ca24a blockscope: a native-mod entry and 0.3.0
  • 5495b46 Merge main into blockscope-native-0.3.0

📊 Changes

1 file changed (+9 additions, -1 deletions)

View changed files

📝 mods/blockscope.toml (+9 -1)

📄 Description

🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself.

Blockscope 0.3.0 is the WebAssembly mod rewritten as a native mixin bundle, so the entry has to turn native-mod (docs/native-mods.md: an entry may turn native-mod once, never back, and its old .hmod versions stay published and are checked as .hmods). The submit form refuses it with "blockscope is a mod", which is why this is a pull request by hand; levzzz said to PR it here.

What this changes

  • kind = "mod" → kind = "native-mod".
  • A 0.3.0 version: blockscope-0.3.0.hnmod, SHA-256 ba4a1c887ab26a2a9189c671cbdbea3ce2ed212a6e3d32f1fffaa60386198358, for 26.3.
  • The icon: icons/blockscope.png (the mod's own 256×256 PNG, the size the other icons use) and the entry's icon naming the Pages URL. The old raw.githubusercontent.com URL is refused by the launcher, which fetches project images only from Modrinth's and CurseForge's CDNs and this registry's Pages (launcher/src/browser/images.rs, HOSTS), so Blockscope has shown no icon in the launcher while every registry icon does.

Nothing else about the entry changes: same id, same owners, and the two .hmod versions with their SHA-256s untouched (listing all three parses: cargo horizon-mod registry list).

The file is not in staging yet, so check will be red on it

The submit form validates the entry's kind before uploading, so it never staged the bundle: … is neither in release blockscope-0.3.0 nor in staging as ba4a1c88….hnmod. Someone with write access has to put ba4a1c887ab26a2a9189c671cbdbea3ce2ed212a6e3d32f1fffaa60386198358.hnmod in the staging prerelease. It downloads as-is: https://github.com/Domanffe/blockscope/releases/download/0.3.0/blockscope-0.3.0.hnmod (13,690 bytes; fetched back after upload and re-hashed to ba4a1c88…).

What the bundle is, and what was verified

  • horizon-native.json: game 26.3, "hooks": 2, Horizon a46ce6898bd72016e061aaec1afc1375b384deac (Nightly 2026-10-30), horizon-mixins 3f99a5c60dfa311cc365524c44ae2fd799bfa1de. The index reader accepts it: native-1/a46ce68…/3f99a5c….
  • Built and played on Windows 11 with the launcher: horizon-launcher native-build compiled it into native-a46ce68-645c… and the game ran. Screenshots read back: stone shows an iron pickaxe beside Hardness 1.5 · needs the right tool; a chest shows its 9×3 slots with items; wheat shows Ростки пшеницы … State: age=5 … Growth 5/7 (71%); a cow shows the HUD heart and 10 / 10.
  • cargo test in the bundle's own library: 16 tests (settings file format, growth table, tool table, container grid, the "this answer belongs to this block" rule).
  • Source, buildable from the entry's source: https://github.com/Domanffe/blockscope (commit 2a08913), horizon-launcher native-build mixins/blockscope --trust-native-code.

Limits to know before merging

  • A container's slots come from the integrated server, so single player and a LAN host only; a server this game is not hosting never sends a chest's contents over the vanilla protocol, and there the grid stays away.
  • Pinned to Nightly 2026-10-30. hooks: 2 means the launcher may build it on a later Nightly with NATIVE_HOOKS_API >= 2; that path is untested.

🔄 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-mods/pull/48 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `blockscope-native-0.3.0` --- ### 📝 Commits (2) - [`08ca24a`](https://github.com/horizon-rust/horizon-mods/commit/08ca24a1767b73fe956670b239938acb9ac32670) blockscope: a native-mod entry and 0.3.0 - [`5495b46`](https://github.com/horizon-rust/horizon-mods/commit/5495b461fd33f6da0a8a63fd1e376877c22fbebe) Merge main into blockscope-native-0.3.0 ### 📊 Changes **1 file changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `mods/blockscope.toml` (+9 -1) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. Blockscope 0.3.0 is the WebAssembly mod rewritten as a native mixin bundle, so the entry has to turn `native-mod` (docs/native-mods.md: an entry may turn `native-mod` once, never back, and its old `.hmod` versions stay published and are checked as `.hmod`s). The submit form refuses it with "blockscope is a mod", which is why this is a pull request by hand; levzzz said to PR it here. **What this changes** - `kind = "mod"` → `kind = "native-mod"`. - A `0.3.0` version: `blockscope-0.3.0.hnmod`, SHA-256 `ba4a1c887ab26a2a9189c671cbdbea3ce2ed212a6e3d32f1fffaa60386198358`, for 26.3. - The icon: `icons/blockscope.png` (the mod's own 256×256 PNG, the size the other icons use) and the entry's `icon` naming the Pages URL. The old `raw.githubusercontent.com` URL is refused by the launcher, which fetches project images only from Modrinth's and CurseForge's CDNs and this registry's Pages (`launcher/src/browser/images.rs`, `HOSTS`), so Blockscope has shown no icon in the launcher while every registry icon does. Nothing else about the entry changes: same id, same owners, and the two `.hmod` versions with their SHA-256s untouched (listing all three parses: `cargo horizon-mod registry list`). **The file is not in `staging` yet, so `check` will be red on it** The submit form validates the entry's kind before uploading, so it never staged the bundle: `… is neither in release blockscope-0.3.0 nor in staging as ba4a1c88….hnmod`. Someone with write access has to put `ba4a1c887ab26a2a9189c671cbdbea3ce2ed212a6e3d32f1fffaa60386198358.hnmod` in the `staging` prerelease. It downloads as-is: <https://github.com/Domanffe/blockscope/releases/download/0.3.0/blockscope-0.3.0.hnmod> (13,690 bytes; fetched back after upload and re-hashed to `ba4a1c88…`). **What the bundle is, and what was verified** - `horizon-native.json`: game 26.3, `"hooks": 2`, Horizon `a46ce6898bd72016e061aaec1afc1375b384deac` (Nightly 2026-10-30), horizon-mixins `3f99a5c60dfa311cc365524c44ae2fd799bfa1de`. The index reader accepts it: `native-1/a46ce68…/3f99a5c…`. - Built and played on Windows 11 with the launcher: `horizon-launcher native-build` compiled it into `native-a46ce68-645c…` and the game ran. Screenshots read back: stone shows an iron pickaxe beside `Hardness 1.5 · needs the right tool`; a chest shows its 9×3 slots with items; wheat shows `Ростки пшеницы … State: age=5 … Growth 5/7 (71%)`; a cow shows the HUD heart and `10 / 10`. - `cargo test` in the bundle's own library: 16 tests (settings file format, growth table, tool table, container grid, the "this answer belongs to this block" rule). - Source, buildable from the entry's `source`: https://github.com/Domanffe/blockscope (commit `2a08913`), `horizon-launcher native-build mixins/blockscope --trust-native-code`. **Limits to know before merging** - A container's slots come from the integrated server, so single player and a LAN host only; a server this game is not hosting never sends a chest's contents over the vanilla protocol, and there the grid stays away. - Pinned to Nightly 2026-10-30. `hooks: 2` means the launcher may build it on a later Nightly with `NATIVE_HOOKS_API >= 2`; that path is untested. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:02:54 +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-mods#57
No description provided.