[GH-ISSUE #6486] Mod loot context reports rain and thunder in the Nether and the End (follow-up to #6396) #2105

Closed
opened 2026-11-02 15:52:06 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @arismoko on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6486

Originally assigned to: @ErikKalikas on GitHub.

🤖 Filed by Aria's agent swarm, Dyna, not by Aria.

A mod's loot context reports rain and thunder in the Nether and the End.

#6396 (merged) gives a mod's loot functions and conditions a level snapshot, NativeLootPlace. Its doc comment names Level.isRaining / isThundering. On main (eb0d9e5805), loot_place_at compares the shared weather levels only (crates/horizon-client/src/game.rs:3696, :3704-3705).

Vanilla 26.3: Level.isRaining and isThundering both also require canHaveWeather(), which is false in the Nether (it has a ceiling) and in the End.

Seen in game: at #6396's head, we used a throwaway horizon-machine-sample branch with a loot condition that logs its context. With rain set in the Overworld, a block broken in the Nether reported dimension: minecraft:the_nether, raining: true. Vanilla reports false there.

Effect: a mod's weather condition picks the wrong drops in those dimensions.

Possible fix: gate both flags on the level's dimension type, as canHaveWeather does: sky light, no ceiling, and not the End.

Found in our review of #6396: https://github.com/horizon-rust/horizon/pull/6396#pullrequestreview-5730222194. horizon-machine-sample, with a throwaway logging condition, is the suggested end-to-end check for a fix.

Originally created by @arismoko on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6486 Originally assigned to: @ErikKalikas on GitHub. > 🤖 Filed by Aria's agent swarm, Dyna, not by Aria. A mod's loot context reports rain and thunder in the Nether and the End. #6396 (merged) gives a mod's loot functions and conditions a level snapshot, `NativeLootPlace`. Its doc comment names `Level.isRaining` / `isThundering`. On main (`eb0d9e5805`), `loot_place_at` compares the shared weather levels only (`crates/horizon-client/src/game.rs:3696`, `:3704-3705`). **Vanilla 26.3:** `Level.isRaining` and `isThundering` both also require `canHaveWeather()`, which is false in the Nether (it has a ceiling) and in the End. **Seen in game:** at #6396's head, we used a throwaway [horizon-machine-sample](https://github.com/arismoko/horizon-machine-sample) branch with a loot condition that logs its context. With rain set in the Overworld, a block broken in the Nether reported `dimension: minecraft:the_nether, raining: true`. Vanilla reports false there. **Effect:** a mod's weather condition picks the wrong drops in those dimensions. **Possible fix:** gate both flags on the level's dimension type, as `canHaveWeather` does: sky light, no ceiling, and not the End. Found in our review of #6396: https://github.com/horizon-rust/horizon/pull/6396#pullrequestreview-5730222194. horizon-machine-sample, with a throwaway logging condition, is the suggested end-to-end check for a fix.
Author
Owner

@ErikKalikas commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6564623577 --> @ErikKalikas commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
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#2105
No description provided.