Compatibility
Minecraft: Java Edition
Platforms
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Overview
Adds Zones which can execute commands when an Entity enters, leaves, or is in one.
There are 3 events available:
- On Enter: Executed once when the entity entered the Zone
- On Tick: Executed every tick the entity is in the Zone
- On Leave: Executed when a entity which was in a Zone the tick before isn't in it anymore
Usage
Use the Zone Corner to specify or edit the corners of a Zone and use a Zone Wrench to then delete it or configure the commands executed on each event. The commands are executed as the entity who triggered the event. The items can be found in the Operator creative tab and provide tooltips with descriptions
Dependencies
- owo-lib
- Quilted Fabric Api
- Lucko's fabric-permission-api (Embedded)
Technical stuff
The mod uses tags to store the zones an entity is in. The tag format is incompatible with the vanilla command syntax, this means that those tags cant be removed using commands
It is considered a bug if the following stuff is violated, as long as the Zone isn't edited in between, and the tags added by the mod aren't manipulated:
- For each enter event there has to be exactly one leave event
- No entity can enter a zone twice without leaving in between
- No tick events are executed after a leave
- The leave event is always executed, even if the entity teleports across dimensions, rejoins, changes its dimensions/size...