-
Notifications
You must be signed in to change notification settings - Fork 2
Modders
Alembic provides a handful of new events to interface with the system on varying levels.
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.
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.
This event gives you two versions, Increase
and Decrease
. These events fire when a player's FoodData changes in said direction.
You can register custom tags by extending AbstractTag
and then calling AlembicTagType.register(String id, Codec<T> codec)
. For an example, look at the AlembicTagType
class.
Tag Conditions are created and registered in almost the same way as Tags, but instead by implementing TagCondition
and calling the register method in TagConditionType
. Predicates do not need registered, but you can still find examples on creation and implementation in the conditions
package.