Перейти к содержимому
Mineforgian

Map Zones

A mod adding configurable Zones for Mapmaking

Загрузки
3K
Подписчики
5
Обновлён
6 августа 2023 г.
Лицензия
LGPL-2.1-only

Опубликован 12 марта 2023 г.

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...

Ченджлог

0.0.5+1.20.1Релиз1.20.1 · 6 августа 2023 г.

0.0.5+1.20.1

  • Fix a crash when running commands modifying tags
0.0.4+1.20.1Релиз1.20.1 · 4 августа 2023 г.

0.0.4+1.20.1

Fix creative to op level 2 command execution privilege escalation

0.0.3+1.20.1Релиз1.20.1 · 27 июля 2023 г.

v0.0.3+1.20.1

  • Fix creative tab
  • Update to 1.20.1
0.0.1+1.19.3Релиз1.19.3 · 12 марта 2023 г.

Initial Release

Комментарии

Загружаем…