Repository navigation
🎁 What's new
MagicCobblestoneGenerator 2.10.1 is a fix release. The most important fix: database import could delete all of a game mode's generators if the file name was mistyped or the file was empty. It now loads the file first and only replaces your generators once that worked. The generator exhaustion cooldown also now does what the setting says when it is shorter than the period, and a handful of crashes and GUI problems are fixed.
On the locale side, every translated file has caught up with en-US (they were 28 keys behind), several translations that silently hid features are fixed, and the Generator Type button now explains which lava mechanic each type responds to.
✨ Highlights
🔺 Database import no longer wipes generators on a bad file (#177)
/[admin_command] generator database import <file>removed every generator tier for the game mode before loading the file. A typo in the file name, or an empty or broken file, left the game mode with no generators, and the only error went to the console.- The file is now loaded first. Existing generators are only replaced once it loaded, and the admin gets a "file not found" message in chat.
⚙️ Exhaustion cooldown shorter than the period now works (#176)
- When
exhaustion.cooldownwas shorter thanexhaustion.period, the block count was still at the limit when the cooldown ended, so the generator went straight back on cooldown until the period was over. Withperiod: 60andcooldown: 10, a generator that hit its limit after 5 minutes stayed stopped for about 55 minutes. - An expired cooldown now starts a fresh period with the count reset to 0.
cooldown: 0still means "wait until the period ends", and thegenerator-exhaustedmessage now shows the right number of minutes for it (it used to show 0).- Nothing changes with the default settings (
cooldown: 1440,period: 60).
🔡 Generator Type explained, and locales brought up to date (#175)
- The Generator Type button in the generator edit panel now says which vanilla mechanic each type covers:
COBBLESTONEis a lava stream meeting water,STONEis lava flowing down onto water (so it works on any water, oceans included),BASALTis lava on soul soil next to blue ice. - All 23 translated locale files gained the 28 keys they were missing.
- Fixed translations that hid features: generator lore was missing
[height-range], the requirements list was missing[phase],[block-count]and[required-generators], and some files had translated the placeholder tokens themselves, so the values never appeared.
🐛 Fixes (#176, #177)
- Crash when buying a generator on a spawn island or an island with no owner.
- Crash when activating a generator with
overwrite-on-activeon, if the island's active generator had been deleted. The deleted generator's slot is now freed instead. - Min/max height could be set the wrong way round in the generator edit panel (e.g. min 150, max 100), which stops a generator working at any height. Both the generator-wide buttons and the per-block height panel now refuse it with an error.
- 🔡 Height range error messages never appeared: wrong locale key, one key missing, and
[MIN]/[MAX]placeholders that didn't match the code. - Admin panel titles ran past the edge of the window for long names. Generator, bundle and island panels now show just the name as the title, cut off with "…" if it still doesn't fit. This also fixes the Spanish and Vietnamese titles, which never showed the name.
- Empty extra page in paged GUI lists when the number of entries was an exact multiple of 21.
- File names with
../indatabase import,database exportand templateimportcould reach files outside the addon folder. They are now refused. - GitHub library downloads now import on the main server thread, and
databasecommand tab completion no longer errors if the addon folder can't be listed.
⚙️ Compatibility
✔️ BentoBox API 3.19.1+
✔️ Minecraft 1.21.5 – 26.3
✔️ Java 21
🔺 Updating — important notes
⚙️ Exhaustion cooldown. No config keys were added or renamed. If you set exhaustion.cooldown shorter than exhaustion.period, generators now pause for the cooldown you set instead of until the end of the period, so exhausted generators come back sooner than before. If you relied on the old behaviour, set cooldown: 0 (wait until the period ends) or raise the cooldown.
🔡 Locale files. BentoBox copies the addon's locale files to plugins/BentoBox/locales/MagicCobblestoneGenerator/ the first time it loads and does not overwrite them later, so changed text (panel titles, the Generator Type button, the fixed placeholders) won't show up on an existing server by itself. To get it, rename or delete that folder before starting the server, and BentoBox will extract fresh copies. Back it up first if you have edited any of those files.
📥 How to update
- Stop the server
- Back up your BentoBox folder
- Drop the new jar into the addons folder and remove the old one
- Optional: regenerate the locale files as described above
- Start the server
Legend
- 🔡 locale files may need to be regenerated or updated
- ⚙️ config options have been removed, renamed, or added
- 🔺 special attention needed
What's Changed
- 🔡 Explain the lava mechanic behind each generator type, and sync the locales by @tastybento in #175
- ⚙️ Start a new exhaustion period when the cooldown ends by @tastybento in #176
- 🔺 🔡 Fix bugs found in a code review by @tastybento in #177
- ci: bump publish-platforms pin to the multipart-JSON fix by @tastybento in #171
Full Changelog: 2.10.0...2.10.1