Skip to content

Modders

amo edited this page Jun 9, 2023 · 5 revisions

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 things before tags have a chance to 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 by 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.

Clone this wiki locally