跳到正文

Map Zones

A mod adding configurable Zones for Mapmaking

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

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…

常见问题

Map Zones 支持哪些 Minecraft 版本?

Map Zones 支持 Minecraft Java 版 1.19.3–1.20.1,共 2 个版本,可用的加载器:Quilt。下载时注意选择和你游戏版本一致的文件。

Map Zones 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

anonymous123-code 的其他作品

查看全部 →