Engraving - Enhancements for SlashBlade
Engraving is a convenient set of modifications and extensions for the popular SlashBlade mod, significantly improving gameplay and adding new customization options.
Main Improvements
The mod introduces several important changes to the basic SlashBlade mechanics:
- Blade stands can now be created from any wooden fences that meet the fenceWood standard, not just oak ones
- When a blade stand is broken, the original fence drops, making the construction more practical
- Proudsoul items can now be crafted from materials with various enchantments, while the resulting item does not retain the enchantments
CraftTweaker Integration
Engraving adds a new event for CraftTweaker: EntityStylishChangeEvent. It triggers when your stylish rank changes during combat.
The stylish rank is displayed on the screen as a letter from D to SSS during battles and shows your combat effectiveness.
Using the Event
import mods.engraving.event.EntityStylishChangeEvent;
The event inherits IEntityEvent and provides the following parameters:
- event.entity - the entity whose stylish rank changed (usually the player)
- event.amount - allows getting and setting stylish rank points as an integer
- event.reason - string indicating the reason for the rank change
Possible Reason Values
- "DropLongTime" - the player was hit, and more than the specified time has passed since the last rating update
- "DropShortTime" - the player was hit, and less than the specified time has passed since the last rating update
- "" - other reasons for rank change