Add geyser offerings: sacrifice items to vents for transmuted rewards - #178
Merged
Conversation
Items thrown into the water around a sulfur vent are consumed as offerings and transmuted into rewards spewed out when the vent's vanilla geyser next erupts. Rewards are rolled from a weighted geyser-loot.yml table (GushBlock-style entries with channels and command rewards) biased towards the channels of the sacrificed materials: ores beget gems, wood begets living things. A once-a-second task consumes floating items near a vent cap (7x7 area, 4 deep, so bobbing items anywhere in the pool count) and watches fed vents for the potent_sulfur_state to pass through erupting, paying out as the plume settles so the eruption cannot fling the rewards away. All sulfur API is reflective/string-based since the addon compiles against Paper 1.21.11; the mechanic is inert on servers older than Minecraft 26.2. Configurable under world.geyser-offerings (enabled, max-rewards). New cancellable GeyserSacrificeEvent and GeyserTransmuteEvent for other addons. Version bumped to 2.1.0. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CZvWEiRd9SePSigryf11Bh
- S2184: make COMMAND_RANGE_SQUARED a double multiplication - S135: restructure consumeOfferings, watchVents (extracted checkVent) and spew (extracted launchReward) to drop extra break/continue - S2259: return early from onLoad when settings fail to load instead of dereferencing a null settings object - S5786: remove public modifier from new test classes Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CZvWEiRd9SePSigryf11Bh
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What this does
Adds an optional mechanic on top of the sulfur vents: items thrown into the water around a vent are consumed as offerings (sizzle + smoke), and when the vent's vanilla geyser next erupts, the offerings are transmuted into rewards spewed out of the plume in a radial fountain.
How it works
geyser-loot.ymltable (item entries with amount ranges, plus console command entries with%player%substitution for the nearest player), one reward per item offered, capped by config.potent_sulfur_stateto pass througheruptingand pays out as the plume settles, so the vanilla eruption cannot fling the rewards away.Config
world.geyser-offerings.enabled(defaulttrue)world.geyser-offerings.max-rewards(default12)geyser-loot.ymlcopied to the data folder on first run for server owners to editAPI
GeyserSacrificeEvent(cancellable) andGeyserTransmuteEventfor other addonsTesting
Version bumped to 2.1.0.
🤖 Generated with Claude Code
https://claude.ai/code/session_01CZvWEiRd9SePSigryf11Bh