Stope 2.7.0 for Fabric (1.20-1.20.1)
Curse Maven Snippet
What's new
New API for advancements: criteria triggers a mod fires for a player, advancement files written from a mod's data generator, and events for picking up an item, for a mod's sapling growing into a tree, and for a group member's death that says whether it led. Nothing changes in game until a mod uses it. Mods built for 2.0 through 2.6 run on 2.7.0 unchanged.
API
- Added
AdvancementTriggersandAdvancementTrigger(experimental, server): register a criteria trigger under the mod's own ID and fire it for a player, with an optional subject ID that criteria can require; a firing that meets none of the player's unmet criteria allocates nothing. - Added
AdvancementData(experimental, data generation): build an advancement in code, with a parent or a tab background, an icon, a frame, criteria on a Stope trigger or on items in the inventory, and English fallback text, and write it from a Fabric data generator withprovider; it never writes a reward. - Added
ItemPickedUpCallback(experimental, server): a player picked up a dropped item's whole stack, fired before the item entity is removed, so itsEntityDatacan still be read. - Added
TreeGrownCallback(experimental, server): a sapling whose grower came fromSaplingGrowersgrew into a tree, with the sapling's position and state; a sapling that fails to grow fires nothing. - Added
MobGroupMemberKilledCallback(experimental, server): a group member died, reported before it leaves its group, with the group, the killer, and whether it was the group's leader. - Changed
ReactionStartedCallback's Javadoc: besides logging, a listener may credit a player the reaction involves, such as firing an advancement trigger for itssource. It still gives the group's mobs no orders.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include