Modders - FoundryMC/Alembic GitHub Wiki
Events
Alembic provides a handful of new events to interface with the system on varying levels.
AlembicDamageDataModificationEvent
This event allows you to add/alter/remove the ComposedData
that is passed to the tag parser. This allows you to modify different elements or add more data for use in tags before said tags are run.
AlembicDamageEvent
This event gives you two stages, Pre
and Post
. This allows you to modify what happens when an entity takes damage. The AlembicDamageType is passed to you, so you can filter all you need.
AlembicFoodChangeEvent
This event gives you two versions, Increase
and Decrease
. These events fire when a player's FoodData changes in said direction.
Tags
You can register custom tags by extending AbstractTag
and then calling registerTagType
in AlembicAPI
. For an example, look at the AlembicTagType
class.
Tag Conditions
Tag Conditions are created and registered in almost the same way as Tags, but instead implementing TagCondition
and calling the registerTagConditionType
method in AlembicAPI
. Predicates do not need registered, but you can still find examples on creation and implementation in the conditions
package.