你是否一直梦想着重现《哈利·波特》宇宙中“门钥匙”的概念?或者你只是想要一种在固定地点之间传送的简单方法?
那么这款高度可配置的数据包正是为你准备的!
合成
要将物品转换为门钥匙,你需要先合成一个“传送石”。

完成后,只需将传送石装备到副手栏,在快捷栏中选择任意你想要的物品并右键点击。这将把选中的物品转换为链接到你当前位置的门钥匙。门钥匙物品保留其所有原始属性,但会显示附魔光泽,并且在物品描述中带有“Portkey”属性。

如果你是管理员(operator),可以通过运行
loot give @s loot portkey:stone_of_teleportation来获得传送石。
使用方法
丢弃后,门钥匙物品需要 1.5 秒* 才会激活。你可以通过围绕它的附魔粒子以及初始激活时的一次快速闪光来判断门钥匙是否已激活。*
玩家拾取已激活的门钥匙将被传送至它们最初创建的位置附近*,并会将附近的其他玩家和生物一同带走*。

在当前版本的数据包中,门钥匙物品永远不会耗尽使用次数。这可能会在未来的版本中作为设置项引入 :)
注意:放置之前已转换为门钥匙的方块将会移除门钥匙属性。此时无法修复此问题。
* 这可以在设置中进行配置
设置
数据包的许多部分可以由拥有 op 权限的人进行配置。
“布尔类型”的设置可以是 1(真)或 0(假),尝试将其设置为除此之外的值 可能 会导致数据包的部分功能损坏。
要更改设置,请在聊天或控制台中运行 /scoreboard players set %<setting> portkey.settings <value>,将 <setting> 替换为设置的名称(保留 %!!),并将 <value> 替换为你选择的值。
要快速将所有设置重置为默认值,请运行 function portkey:_commands/reset_settings
传送设置
| 名称 | 效果 | 类型 | 默认值 |
|---|---|---|---|
| cooldown* | 门钥匙激活所需的时间 | 数值型,20 = 1秒 | 30 |
| exact_teleport † | 是否将玩家/实体传送到门钥匙创建的确切位置 | 布尔型 | 0 |
| range | 可以额外传送附近生物/玩家的最大距离 | 数值型,10 = 1个方块 | 20 |
| include_players | 是否也传送你周围的其他玩家 | 布尔型 | 1 |
| include_entities | 是否也传送你周围的实体 | 布尔型 | 1 |
| include_bosses | 是否也传送你周围的Boss | 布尔型 | 0 |
*) 如果此值高于 49,则在门钥匙激活前会显示额外的粒子。有关如何禁用这些粒子的信息,请参阅 视觉设置。
†) 如果为 false,玩家和实体将在原始坐标周围分散几个方块。如果为 true,玩家和实体将尽可能匹配位置和旋转角度与原始创造者一致。这意味着多个实体确实会落在同一个方块上。
视觉设置
| 名称 | 效果 | 类型 | 默认值 |
|---|---|---|---|
| item_particles | 是否在激活的门钥匙周围显示粒子 | 布尔型 | 1 |
| item_flash | 是否在门钥匙激活时显示闪光 | 布尔型 | 1 |
| additional_particles | 是否在门钥匙激活前短暂时间显示粒子(如果 cooldown >= 50) |
布尔型 | 1 |
工具与命令
这些主要是为了调试和测试目的而添加的,对于普通用户来说可能用处不大。 使用可能导致意外行为。
/function portkey:_dev/convert -> 将手中物品转换为门钥匙,使用当前坐标作为传送位置
/function portkey:_dev/convert_broken -> 将手中物品转换为破损的门钥匙,其行为类似于普通门钥匙,但拾取时不会传送任何人
/function portkey:_dev/tp_handheld -> 将你传送到你手中所持门钥匙物品链接的坐标
贡献
你可以通过在 GitHub 上贡献代码和报告错误来帮助改进这个数据包! [数据包仓库]
也欢迎通过贡献来支持更多语言,请访问 [资源包] :)
需要 Minecraft 服务器吗?
点击下方图片并使用我的促销码 "Flynecraft" 购买由 Bisect Hosting 托管的 Minecraft 服务器可享受 25% 的折扣,提供顶级性能和随时可用的卓越客户支持!
Have you always dreamed of replicating the concept of Portkeys portrayed in the Harry Potter universe? Or are you just looking for a simple way to teleport between fixed places?
Then this highly configurable pack is just for you!
Crafting
To convert an item into a Portkey, you first need to craft yourself a Stone Of Teleportation.

Once you have done so you simply need to equip the Stone of Teleportation into your off-hand, select any item of your choice in your hotbar and right click. Doing this will convert the selected item into a Portkey linked to your current location. Portkey items keep all their original properties but appear with an enchanted glint and the "Portkey" property in the item description.

If you're an operator, you can give yourself a Stone of Teleportation by running
loot give @s loot portkey:stone_of_teleportation)
Usage
Once dropped, Portkey items take 1.5 seconds* before they active. You can tell that a Portkey is active by the enchantment particles surrounding it and also from a quick flash upon initial activation.*
Players picking up activated Portkeys will be teleported close to the location they were first created*, taking other players and mobs close to them with them*.

In the current version of this pack, Portkey items never run out of uses. This might be introduced as a setting in future versions of the pack :)
NOTE: PLACING BLOCKS WHICH WERE CONVERTED TO A PORTKEY BEFOREHAND WILL GET RID OF THE PORTKEY PROPERTY. THIS CAN'T BE FIXED AT THIS POINT IN TIME.
* This can be configured in the settings
Settings
Many parts of this pack can be configured by people with op permissions.
Settings of the "Boolean" type can be either 1 (True) or 0 (False), trying to set them to anything besides that might break parts of the pack.
To change a setting, run /scoreboard players set %<setting> portkey.settings <value> in chat or from console, replacing <setting> with the name of the setting (keeping the %!!) and <value> with the value of your choice.
To quickly reset all settings to their default values, run function portkey:_commands/reset_settings
Teleportation Settings
| Name | Effect | Type | Default |
|---|---|---|---|
| cooldown* | Time Portkeys take to activate | Numerical, 20 = 1s | 30 |
| exact_teleport † | Wether or not to teleport players/entities to the exact position the portkey was created | Boolean | 0 |
| range | Max. distance from the portkey in which additional mobs/players get teleported | Numerical, 10 = 1 Block | 20 |
| include_players | Wether or not to also teleport other players around you | Boolean | 1 |
| include_entities | Wether or not to also teleport entities around you | Boolean | 1 |
| include_bosses | Wether or not to also teleport bosses around you | Boolean | 0 |
*) Additional particles are shown before the Portkey activates if this value is higher than 49. See Visual Settings on how to disable these.
†) If false, players and entities will be spread around the original coordinate by a few blocks. If true, players and entitites will match the location and rotation of the original creator as closely as possible. This means that multiple entities can and WILL land on the same block.
Visual Settings
| Name | Effect | Type | Default |
|---|---|---|---|
| item_particles | Wether or not to show particles around activated Portkey | Boolean | 1 |
| item_flash | Wether or not to show a flash when a Portkey activates | Boolean | 1 |
| additional_particles | Wether or not to show particles shortly before a portkey activates (if cooldown >= 50) |
Boolean | 1 |
Tools & Commands
These were mainly added for debugging and testing reasons and will probably not be of much use to the average person using this pack. Usage might lead to unexpected behaviour.
/function portkey:_dev/convert -> Converts the held item into a Portkey, using the current coordinates as teleport location
/function portkey:_dev/convert_broken -> Converts the held item into a Broken Portkey, which acts like a regular Portkey but doesn't teleport anybody when picked up
/function portkey:_dev/tp_handheld -> Teleports you to the coordinates linked to the Portkey item you're holding
Contribution
You can help making this pack better by contributing and reporting bugs on GitHub! [Datapack Repository]
Also feel free to add supporte for more languages by contributing to the [Resource Pack] :)
Need a minecraft server?
Click the below image and use my promo code "Flynecraft" to get 25% off of minecraft servers hosted by Bisect Hosting, covering top tier performance and exceptional customer support at any time!
下载 Flyrr's Portkeys
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Flyrr's Portkeys
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Flyrr's Portkeys
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Flyrr's Portkeys
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Flyrr's Portkeys
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Flyrr's Portkeys
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 已更新至版本 26.3
- 该整合包现在可在多人游戏中正常运行
- 门钥匙现在可以传送你,即使它们并非由玩家直接掉落(例如:死亡后掉落、打破箱子后拾取等)
- 传送石现在始终显示附魔光效,无论其获取方式如何(但旧物品不会更新)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包
此数据包添加了属于阿瓦里海盗的独特结构,将他们的独特风格带入你的 Minecraft 世界!兼容性:1.20 至 26.3
数据包
一个 Minecraft 光线投射库,能够精确检测玩家正在查看的方块,包括像台阶和楼梯这样的特殊方块形状。
数据包
此数据包添加了新的“祝福模式”难度。
数据包
添加了基于官方概念图的蓝蛙和红眼树蛙变体。
数据包
为模组生物群系添加原版回溯特性!
数据包
允许服务器管理员方便地禁用 Xaero's Map 系列模组中的实体雷达、小地图等功能,使竞技游戏更加公平。
评论 0
登录后参与评分
还没有评论,来抢沙发吧