Proclamations
by MojoBeast
Proclamations 是一个数据包,用于在屏幕上显示公告(使用 Minecraft /title 命令),以响应各种事件,并且可以完全在生存模式中使用。
安装
为了获得最顺畅的安装体验,我建议您通过 Modrinth 启动器安装该数据包,并使用带有 henkelmax 的数据包注入器 的 Fabric 实例。这会将数据包安装到实例中的所有世界中。
对于纯原版客户端的安装,请下载 zip 文件,打开您要安装到的世界文件夹,并将其复制到 /datapacks 文件夹中。您需要为每个想要安装该数据包的世界单独执行此操作。
开始使用
首先,在附魔台上对旗帜进行附魔,使其获得“宣告”附魔。
在铁砧上命名旗帜以设置默认显示的文本。如果旗帜有自定义描述,描述的第一行也将作为副标题显示。
默认情况下,标题的颜色将与旗帜的颜色匹配。如果旗帜的名称或描述包含自定义格式,则将使用该格式。
放置附魔后的旗帜后,您可以右键单击它来打开菜单以配置其属性。
具有此附魔的旗帜在与不同方块连接时行为有所不同:
-
玩家检测器:要在玩家进入旗帜一定半径内时显示标题,请将其连接到测地石。
-
红石检测器:要在红石方块处于特定状态时显示标题,请将其连接到音符盒、红石灯、铜灯泡、唱片机或侦测器。
-
物品栏检测器:要根据潜影盒中的物品动态显示标题,请将其连接到任何具有物品栏的物品——例如 barrels、发射器、漏斗等。
玩家检测器
要在玩家进入旗帜一定半径内时显示标题,请将其连接到测地石。
当玩家进入其检测范围时,旗帜会显示标题。此范围可以通过右键单击旗帜在配置菜单中进行更改。
默认情况下,标题仅向触发玩家检测器的玩家显示。这可以在旗帜的配置菜单中更改为所有在线玩家,或一定范围内的所有玩家。
如果您在附有附魔旗帜的测地石上使用指南针,它将重命名指南针的名称和描述以匹配旗帜。
红石检测器
要在红石方块处于特定状态时显示标题,请将其连接到以下方块之一:
- 音符盒:通电时激活。
- 侦测器:通电时激活。
- 红石灯:点亮时激活。
- 铜灯泡:点亮时激活。
- 唱片机:插入唱片时激活。
检测器可以配置为向一定范围内的所有玩家或所有在线玩家显示标题。
物品栏检测器
物品栏检测器是连接到具有物品栏方块的附魔旗帜。当检测到潜影盒中有物品时,它会动态生成标题。
物品类型
检测器读取潜影盒中的所有物品,并根据找到的特定物品构建标题。
- 羊毛:显示为标题
- 地毯:显示为副标题
- 旗帜:显示在动作栏中
物品文本
默认情况下,物品的颜色将用作标题中显示的颜色。如果其名称包含自定义格式,则使用该格式。
在铁砧上重命名的物品将被解释为文本。
没有自定义名称的物品将显示该堆叠中的物品数量。
精灵 / 物品纹理
您可以在铁砧上将以下任何物品重命名为精灵或物品纹理的名称——例如 'item/emerald' 或 'yourresourcepack:item/yourtexture' ——以将该纹理作为消息的一部分显示。
- 画:显示为标题
- 物品展示框:显示为副标题
- 发光物品展示框:显示在动作栏中
玩家目标
检测器可以配置为向指定范围内的所有玩家、所有在线玩家或所有被检测到的玩家显示其标题。
如果在潜影盒中找到了与其配置文件匹配的骷髅头颅,则认为该玩家为“被检测到”。可选地,在配置菜单中,您可以选择在标题、副标题或动作栏中显示玩家头颅纹理。
Proclamations
by MojoBeast
Proclamations is a datapack for showing on-screen announcements (using the Minecraft /title command) to players in response to various events, and can be used entirely in Survival Mode.
Installation
For the smoothest installation experience, I recommend installing the pack via the Modrinth launcher and using a Fabric instance with Datapack Injector by henkelmax. This installs the datapack on all worlds in your instance.
For installation on pure vanilla clients, download the zip file, open the world folder for the world you want to install it into, and copy it into the /datapacks folder. You will need to do this for each individual world you want to install the pack on.
Getting Started
First, enchant a banner in an enchanting table to give it the Proclamation enchantment.
Name the banner in an anvil to set the default text that is displayed. If the banner has custom lore, the first line of lore will also be shown as a subtitle.
By default, the color of the title will match the color of the banner. If the banner's name or lore have custom formatting, that will be used instead.
Once you have placed an enchanted banner, you can right-click on it to bring up a menu to configure its properties
Banners with this enchantment behave differently depending on what block they are attached to:
-
Player Detectors: To show a title when players come within a certain radius of a banner, attach it to a lodestone.
-
Redstone Detectors: To show a title when a redstone block is in a certain state, attach it to a note block, redstone lamp, copper bulb, jukebox or observer.
-
Inventory Detectors: To show a dynamic title based on the items in a shulker box, attach it to any item with an inventory - such as a barrel, dropper, hopper, etc.
Player Detectors
To show a title when players come within a certain radius of a banner, attach it to a lodestone.
The banner shows a title when a player comes within its detection range. This range can be changed in the configuration menu by right-clicking on the banner.
By default, the title is shown only to the player who triggered the player detector. This can be changed in the banner's configuration menu to all players who are online, or all players within a certain range.
If you use a compass on a lodestone with an enchanted banner attached to it, it will rename the compass's name and lore to match the banner.
Redstone Detectors
To show a title when a redstone block is in a certain state, attach it to one of the following blocks:
- Note block: activates when powered.
- Observer: activates when powered.
- Redstone lamp: activates when lit.
- Copper bulb: activates when lit.
- Jukebox: activates when a disc is inserted.
The detector can be configured to show a title to either all players within a certain range, or all online players.
Inventory Detectors
An inventory detector is an enchanted banner attached to a block with an inventory. It shows a dynamically constructed title when a shulker box is detected in its inventory.
Item Types
The detector reads all of the items in the shulker box and constructs the title from specific items it finds.
- Wool: displayed as a title
- Carpet: displayed as a subtitle
- Banners: displayed in the action bar
Item Text
By default, the item's color is used as the color shown in the title. If its name contains custom formatting, this is used instead.
An item that has been renamed in an anvil is interpreted as text.
An item without a custom name displays the count of how many items are in that stack.
Sprites / Item Textures
You can rename any of the following items in an anvil with the name of a sprite or item texture - e.g. 'item/emerald' or 'yourresourcepack:item/yourtexture' - to display that texture as part of the message.
- Painting: displayed as a title
- Item frame: displayed as a subtitle
- Glow item frame: displayed in the action bar
Player Targets
The detector can be configured to show its title to all players within a specified range, all players who are online, or all detected players.
A player is considered to be "detected" if a player head matching their profile is found in the shulker box. Optionally, in the configuration menu you can choose to display player head textures in the title, subtitle or action bar.
评论 0
登录后参与评分
还没有评论,来抢沙发吧