Add spawner boost and crop growth boost reward types (#61)#77
Merged
tastybento merged 1 commit intodevelopfrom Feb 24, 2026
Merged
Add spawner boost and crop growth boost reward types (#61)#77tastybento merged 1 commit intodevelopfrom
tastybento merged 1 commit intodevelopfrom
Conversation
Implements two new passive/ongoing upgrade reward types: - SpawnerReward: spawns extra entities on SpawnerSpawnEvent, proportional to a configurable formula - CropGrowthReward: applies extra applyBoneMeal() on BlockGrowEvent for agricultural crops Both use a fractional bonus approach (e.g. 0.5 = 50% chance of one extra per trigger) and are compatible with any stacker plugin. Two example upgrades (Spawner Boost, Crop Growth Boost) are now seeded on first install (8 total). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
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.
Summary
SpawnerReward/SpawnerRewardDB: listens toSpawnerSpawnEventand spawns extra entities beside the triggered spawner, scaled by a per-tier formulaCropGrowthReward/CropGrowthRewardDB: listens toBlockGrowEventon agricultural crops and applies extraapplyBoneMeal()calls, scaled by a per-tier formula0.5→ 50% chance of one extra per trigger;1.5→ always 1 extra plus 50% chance of a second)getUpgradeData()getter onDatabaseUpgrade(needed by listeners to resolve tiers)UpgradesAddon.onEnable()upgrades.rewards.spawner.*andupgrades.rewards.cropgrowth.*locale keys toen-US.ymlTest plan
mvn test— all 102 existing tests pass0.5, price $10000.5, price $500Closes #61
🤖 Generated with Claude Code