pmmo_skill_books-1.21.1-3.0.0.jar
Curse Maven Snippet
What's new
# Changelog
## 3.0.0 (1.21.1 NeoForge)
Existing books and insignias keep working: the item data format is unchanged, and the named colors are matched to the
old art. Clients and servers must both update, since the network protocol changed.
### Added
- **Any color.** `color` now also takes a hex value like `"#c77dff"`, on every book and insignia at every rank.
Textures are a shared base plus a tinted overlay, so there are no more missing color/rank combinations.
- **Optional keys.** Only `skills`, `application_type` and `application_value` are needed; the rest default
(`name` "", `experience_cost` 0, `texture_type` skillbook, `rank` plain, `color` blue).
- **Datapack examples** in README.txt: crafting recipes, loot tables, and adding books to existing loot (chests, mob
drops, blocks) with NeoForge's `neoforge:add_table` loot modifier, without replacing the table.
- **Scrolling skill picker.** Books can offer any number of skills. With more than 4, the picker scrolls with the mouse
wheel or a draggable scrollbar, and shows the top of the next card so it's clear the list scrolls.
- Level books in the creative tab have their own names (e.g. "Mining Level Book") instead of sharing the XP books' names.
- PMMO is now declared as a required dependency, so a missing PMMO gives a clear error at startup.
### Changed
- Redrawn book and insignia textures.
- Book tooltips with more than 4 skills list the first 3 and count the rest ("[Mining, Combat, Magic, or 9 more]").
- A book with invalid data keeps its look and name; it only explains what's wrong when used.
- Only loads on Minecraft 1.21.1 / NeoForge 21.1, instead of also trying newer versions it would crash on.
### Fixed
- Skill names in messages showed as raw keys on dedicated servers (`+1000 pmmo.mining XP`), and always in the server's
language. They now show translated, in each player's language.
- Using an XP or level book on a skill already at max level consumed it for nothing. It's now refused and kept.
- Level and set books are capped at the skill's max level. A book with a huge value could freeze the server, because
PMMO raises a level one step at a time and its default max level is over 2 billion; no grant goes past level
1,000,000 now.
- A set book used at the skill's current level is refused and kept, since it can't change anything.
- An XP book with a value near the 64-bit limit could overflow inside PMMO and reset the skill to level 0. XP is now
capped just below that.
- Books were consumed even when PMMO granted nothing (for example when another mod cancelled the XP). They're now kept.
- On multi-skill books, the skill pick could be sent without finishing the read, skipping the read time. The server now
checks the read finished, that the book is still in hand, and that the skill is on it.
- The reading animation now starts immediately, and using a book (even one that's refused) no longer also uses the item
in the other hand.
- Books with more than 4 skills drew their extra cards off the bottom of the picker.
- On computers set to Turkish, insignias and the ranks and colors with an "i" in their name (iron, diamond, white,
pink, the light_ colors) showed the wrong texture.
- Unknown colors showed the wrong texture; they now fall back to blue like everything else.
- A skill book and an insignia with otherwise identical data were treated as the same item data.
- The skill picker hid any rendering error by silently closing itself.
- The "not enough levels" message now says "1 level" instead of "1 levels".
- Removed the reliance on PMMO's internal networking classes.
### For mod developers (breaking)
- `SkillGrantEvent`: `getApplicationType()` now returns the `ApplicationType` enum instead of a `String`, and
`getApplicationValue()` returns `long` instead of `Long`. The value is the amount actually granted, after capping at
max level. Constructors changed to match.
- `SkillGrantEvent.Pre` is cancelable; cancelling it keeps the book and the player's XP levels.
- The `utils` package and `items.components.SkillGrantData` were removed; item data is `data.SkillGrantData`, and what
a valid item grants is `data.SkillGrant`.All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include