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...
How to Install Map Zones (Mod)
Map Zones by anonymous123-code is verified for Quilt across Minecraft versions 1.19.3, 1.20.1 (latest release: 0.0.5+1.20.1, file size: 79 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.19.3, 1.20.1) and platform (Quilt).
- Make sure you have the compatible loader or environment installed for Quilt.
- Move the downloaded Map Zones file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Fix a crash when running commands modifying tags
Fix creative to op level 2 command execution privilege escalation
- Fix creative tab
- Update to 1.20.1