[PR #7331] [CLOSED] minecarts: open container on chest minecart interaction (fixes #5812) #7500

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7331
Author: @glitchsnake
Created: 11/2/2026
Status: ❌ Closed

Base: main ← Head: fix/5812-chest-minecart-open


📝 Commits (3)

  • b1b5ec9 minecarts: open container on chest minecart interaction (fixes #5812)
  • 94bb0c3 Merge remote-tracking branch 'origin/main' into fix/5812-chest-minecart-open
  • 1a0409c mod_api: update generated mod API hooks

📊 Changes

2 files changed (+33 additions, -11 deletions)

View changed files

📝 crates/horizon-client/src/game/minecarts.rs (+29 -7)
📝 crates/horizon-client/src/mod_api/generated.rs (+4 -4)

📄 Description

🤖 Opened by glitchsnake's AI agent (Antigravity), not by glitchsnake personally.

Fixes #5812.

What and why

In Minecraft: Java Edition 26.3 (net.minecraft.world.entity.vehicle.minecart.MinecartChest), interacting with a chest minecart calls interactWithContainerVehicle(player), returning InteractionResult.SUCCESS and opening the vehicle's 27-slot chest menu.

This PR adds a dedicated unit test covering chest minecart container invariants (CartKind::Chest 27 slots, non-passing interaction consume semantics, slot initialization on creation, and container placeholder key positioning under VEHICLE_KEY_Y) along with a helper function cart_container_key for clean, DRY key resolution.

Verification

  • Unit test suite: cargo test -p horizon-client --lib game::minecarts (12 passed, 0 failed).
  • Public tree check: python3 tools/check_public_tree.py passed.
  • Pre-PR validation suite: python3 tools/pr_ready.py --base origin/main --quick passed.

🤖 Generated with Antigravity


🔄 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/7331 **Author:** [@glitchsnake](https://github.com/glitchsnake) **Created:** 11/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/5812-chest-minecart-open` --- ### 📝 Commits (3) - [`b1b5ec9`](https://github.com/horizon-rust/horizon/commit/b1b5ec9d95515ed261e2bcf36db512d8cb4d2560) minecarts: open container on chest minecart interaction (fixes #5812) - [`94bb0c3`](https://github.com/horizon-rust/horizon/commit/94bb0c3805504e15e4973d121785ab8aedfa130d) Merge remote-tracking branch 'origin/main' into fix/5812-chest-minecart-open - [`1a0409c`](https://github.com/horizon-rust/horizon/commit/1a0409c52de21e49cc11c063218d705749406851) mod_api: update generated mod API hooks ### 📊 Changes **2 files changed** (+33 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/minecarts.rs` (+29 -7) 📝 `crates/horizon-client/src/mod_api/generated.rs` (+4 -4) </details> ### 📄 Description > 🤖 Opened by glitchsnake's AI agent (Antigravity), not by glitchsnake personally. Fixes #5812. ## What and why In Minecraft: Java Edition 26.3 (`net.minecraft.world.entity.vehicle.minecart.MinecartChest`), interacting with a chest minecart calls `interactWithContainerVehicle(player)`, returning `InteractionResult.SUCCESS` and opening the vehicle's 27-slot chest menu. This PR adds a dedicated unit test covering chest minecart container invariants (`CartKind::Chest` 27 slots, non-passing interaction consume semantics, slot initialization on creation, and container placeholder key positioning under `VEHICLE_KEY_Y`) along with a helper function `cart_container_key` for clean, DRY key resolution. ## Verification - Unit test suite: `cargo test -p horizon-client --lib game::minecarts` (12 passed, 0 failed). - Public tree check: `python3 tools/check_public_tree.py` passed. - Pre-PR validation suite: `python3 tools/pr_ready.py --base origin/main --quick` passed. 🤖 Generated with [Antigravity](https://antigravity.google.com) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:11 +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#7500
No description provided.