使用指南针记住并传送到游戏中特殊的记忆石结构。
这对于探索非常有用:你可以朝一个方向前进,深入洞穴探索,但当你想要回家时,只需简单传送即可。此外,因为你必须先找到记忆石,所以在已有预设记忆石的服务器上进行探索会更有成就感。
我原本会为自己建一个小房子,稍微探索一下,但不会走太远,以免迷路……我也会发现世界中的有趣地点,但由于距离太远或再也找不到,所以从未返回过那里。现在,你可以在重要的地标处建立记忆石。有天空之城?不需要梯子了……
1.1.0 和 1.0.9 的更改
- 与其他基于告示牌的插件交互时,onSignChange 事件有时会抛出 NPE(空指针异常)。
- 新增 pointCompassOnly 配置选项,如果你只想设置指南针指向目的地而不进行传送。
- 修复了一个小问题:记住一块石头后,它会直接选中该石头作为传送目标,而不是保持之前的状态。
- 修复了一个严重的导致功能完全失效的 Bug,之前指南针完全无法工作。抱歉。
1.0.8 的更改
- 修复了在仅记住一个位置并尝试从该位置传送到另一块石头时出现的 NPE。
- 修复了在使用水桶和水来制作记忆石时出现的一个小 Bug。
1.0.7 的更改
- 在 structureTypes.yml 中将所有默认结构类型的默认 distanceLimit 设置为无限。这之前困扰了许多人。
- 将 lightningEffect 配置选项替换为 effects.lightningOnCreate 和 effects.lightningOnBreak
- 添加了 effects.lightningOnTeleportSource 和 effects.lightningOnTeleportDestination,用于传送时的闪电效果
- 允许将 teleportItem 设置为 NONE,从而禁用通过物品进行传送。
- 添加了 stonetostone.enabled,以启用直接从记忆石进行传送(无需指南针)
- 添加了 stonetostone.item 和 stonetostone.maxUses,如果你想让用户为石头对石头传送付费
- 如果 stonetostone.enabled 启用,则移除“已经记住”的消息
- 修复了剩余次数显示错误的问题(无论最大使用次数是多少,都会回滚到 3 次)
- 默认语言现在引用 <material> 而不是 compass(lang.chargesleft, lang.consumed, lang.teleportitemnotfound)
下载
如果你是从早于 1.0.5 的版本升级,你需要删除 structuretypes.yml,以便重新生成并包含新的传送、记忆和建造成本配置。
已发布文件
安装
只需将 memory-stone.jar 放入你的 plugins 文件夹即可。首次运行时,你会看到 MemoryStone/structuretypes.yml,如果你喜欢自定义服务器上的记忆石结构,可以对其进行调整。
当你开始创建和记忆记忆石时,你还会看到 locations.yml 和 structures.yml 文件——它们用于存储你的世界中额外的玩家和物理结构数据。
还会生成一个 configuration.yml 文件,向下滚动到底部可查看可用的配置选项。
设置
构建一个 3x3 的石板,中间立一根高 3 的黑曜石柱,如下所示:

在上面某处放置一个告示牌,并将告示牌的第一行输入为你想给记忆石起的名称:

如果一切正常,你会得到一个绿色的“Memory Stone”告示牌:

结构类型
请参阅 这里的图片库 查看所有不同的结构设置
主要有以下几种结构:
- Local(本地):在当前世界的指定距离内,从当前位置传送到本地记忆石。
- Global(全局):从当前位置传送到当前世界较大范围内的任意位置,但无需事先记忆。
- Crossworld(跨世界):可以从任何世界传送到任何跨世界记忆石。距离无关紧要。
- Global Crossworld(全局跨世界):与跨世界传送相同,但你无需先找到并记忆它。
- NoTeleport(禁止传送):当玩家处于这些结构的一定范围内时,无法从中传送出去。
经济支持
自 1.0.5 版本起支持经济系统,在设置告示牌时,你可以输入记忆成本/传送成本,如下所示:

完成后,它将添加预配置的基准成本并在告示牌上显示:

使用方法
以下所有操作都需要手持指南针完成:
左键点击记忆石的*告示牌*。你会收到确认消息,表示已成功记住该位置。
如果你安装了 Spout(以及 Spoutcraft 客户端),你可以右键点击以调出以下界面——选择目的地,然后传送至该处:

类似地,只要你物品栏中有指南针,按下快捷键(默认为 'C')即可显示该界面。如果你在服务端安装了 Spout 并运行 Spoutcraft :)
如果你没有安装 Spout,你可以右键点击以传送到你刚刚记忆的那块石头处。激活传送后,你需要保持静止 3 秒;如果你记忆了多个地点,可以左键点击来循环切换目的地。
从 1.0.7 版本开始,如果你的物品栏中有萤石粉(可配置),你可以左键点击记忆石告示牌来循环切换目的地,右键点击进行传送,无需使用指南针。如果你拥有 Spout 和 Spoutcraft,只需右键点击告示牌即可。
配置选项
在 configuration.yml 文件中,你可以更改以下选项来自定义 MemoryStone 以适应你的服务器:
- lang.* - 这是玩家从这个插件中看到的所有文本。
- teleportItem - 如果不喜欢指南针,可以配置为使用其他物品。接受名称或 typeId
- castingTime - 玩家(以及如果传送的是另一名玩家时的目标玩家)需要保持静止直到传送发生的时间。
- cooldownTime - 成功传送后的冷却时间,单位为秒。
- fizzleCooldownTime - 传送失败(玩家以某种方式取消了传送)后的冷却时间,单位为秒。
- maxUsesPerItem - 物品在被消耗前拥有的充能次数。如果设置为零,则为无限使用。
lightningEffect - 是否在正确搭建记忆石结构时显示闪电效果。 自 1.0.7 起不再支持,请参见 effects.*
- sortByDistance - 如果为 true,则按距离而不是字母顺序对地点列表进行排序
- economy.enabled - 启用经济支持。你可能已接入经济插件但不想将其用于记忆石
- economy.ownerGetsPaid - 设置此记忆石的人将获得任何人在此记忆石上花费的金额
- economy.addCustomValue - 允许设置记忆石的人在放置告示牌时指定额外费用(超出基础费用)。
1.0.7 新增:
- effects.lightningOnCreate - 创建记忆石时的闪电效果
- effects.lightningOnBreak - 破坏记忆石时的闪电效果
- effects.lightningOnTeleportSource - 传送时(玩家源位置)的闪电效果
- effects.lightningOnTeleportDestination - 传送时(玩家目标位置)的闪电效果
- stonetostone.enabled - 启用石头到石头的传送功能
- stonetostone.item - 石头间传送时消耗的物品 - 如果不想消耗任何物品,请设置为 NONE
- stonetostone.maxuses - 在销毁物品前可使用的最大次数 - 设置为零表示无限,设置为 1 表示单次使用。
权限
- memorystone.*: 授予所有正常 MemoryStone 权限的访问权
- memorystone.op: 允许用户免费使用、无施法时间和无冷却时间,默认值:false
- memorystone.build: 允许用户建造记忆石,默认值:true
- memorystone.break: 允许用户破坏记忆石,默认值:true
- memorystone.use: 允许用户传送到记忆石,默认值:true
- memorystone.usestonetostone: 允许用户使用石头间的传送功能
- memorystone.usefree: 允许用户在不消耗充能次数的情况下传送(如适用),默认值:false
- memorystone.useonothers: 允许用户传送他人,默认值:true
- memorystone.usewithoutcooldown: 允许用户在没有冷却时间的情况下传送,默认值:false
- memorystone.useinstantly: 允许用户在没有施法时间的情况下传送,默认值:false
- memorystone.allmemorized : 用户无需记忆石头。
- memorystone.create.*: 可以创建任何结构
- memorystone.create.local: 可以创建本地记忆石
- memorystone.create.global: 可以创建全局记忆石
- memorystone.create.crossworld: 可以创建跨世界记忆石
- memorystone.create.crossworldglobal: 可以创建跨世界全局记忆石
- memorystone.create.noteleport: 可以创建禁止传送区域石头
已知插件不兼容项
- SpoutTrade: 由于使用了玩家右键点击,它会请求交易并执行传送……不确定如何阻止 SpoutTrade 触发。
致谢
向一些出色的开发者致敬!
此外,还要感谢以下人员提供了宝贵的意见:
Tylui、PhantomX、Kaiemi、hammerKlavier 和 SirMonsterSlayer
Memorize and teleport to special Memory Stone structures in game using your compass.
This is a great for exploration: You can head in a direction and explore the depths of caves, but when you want to go home it's a simple teleport out. Also, because you have to find the Memory Stones first, it makes exploration of existing servers with pre-setup Memory Stones a little more rewarding.
I would find that I would build myself a little home and maybe explore a little bit, but not too far in case I get lost.. I'd also find very interesting parts of my world, but would never return there because it's too far or I just can't find it again. Now it's a matter of building Memory Stones where significant marking points are. Have a castle in the sky? No need for ladders..
Changes in 1.1.0 & 1.0.9
- Interaction with other sign based plugins sometimes throws NPE's onSignChange event.
- pointCompassOnly config option if you don't want teleportation, but just set compass to destination.
- Fixed small quirk where memorizing a stone would select that stone to teleport to instead of leaving it as it was before.
- Fixed a pretty show-stopping bug where the compass totally didn't work. Whoops.
Changes in 1.0.8
- Fixed up an NPE when only one location is memorized and you try teleport stone to stone from it
- Fixed a small bug if you use lava buckets in water to create your memory stones.
Changes in 1.0.7
- Set the default distanceLimit in structureTypes.yml to infinite on all default structure types. This was tripping a lot of people up.
- Replaced lightningEffect config option with effects.lightningOnCreate and effects.lightningOnBreak
- Added effects.lightningOnTeleportSource and effects.lightningOnTeleportDestination for effects when teleporting
- Allow for teleportItem to be set to NONE, which disabled teleporting with an item.
- Added stonetostone.enabled, to enable teleporting directly from a Memory Stone (without compass)
- Added stonetostone.item and stonetostone.maxUses if you want to have people pay for stonetostone teleporting
- Remove 'already memorized' message if stonetostone.enabled
- Fixed up a charges left bug (was rolling over to 3 charges regardless of max uses)
- Default language refers to <material> now instead of compass (lang.chargesleft, lang.consumed, lang.teleportitemnotfound)
Download
If you are upgrading from older than 1.0.5, you need to remove the structuretypes.yml to so that it can regenerate and include the new teleportation, memorization and build costs..
Released Files
Installation
Simply put the memory-stone.jar into your plugins folder. Upon first run, you'll see MemoryStone/structuretypes.yml that you could play around with if you'd like to customize the memory stone structure on your server.
When you start creating and memorizing Memory Stones, you will also see locations.yml and structures.yml files - they are for storing the extra player and physical structure data for your worlds.
There's also a configuration.yml file generated, scroll down to the bottom to see the configuration options available.
Setup
Create a 3x3 Stone slab with a 3 high Obsidian pillar in the middle like so :

Put a sign somewhere on it and enter the first line of the sign as the name you'd like to give the memory stone :

And if all is well, you'll get a green 'Memory Stone' sign :

Structure Types
Please see the image library here to see all the different structure setups
There are a few different structures, basically :
- Local: Teleport from your location to a Local Memory stone in your current world within distance
- Global: Teleport from where you are to a larger range in the current world, but doesn't need to be memorized first
- Crossworld: Teleport from any world to any crossworld stone. Distance doesn't matter.
- Global Crossworld: Same as a crossworld teleport, but you don't need to find and memorize it first.
- NoTeleport: Players can't teleport out while within a certain distance of these.
Economy Support
As of 1.0.5 with economy support, when setting up a sign, you can enter a memorization cost / teleportation cost like so :

When you complete that, it will add the preconfigured base costs and display that on the sign :

Usage
All of the following needs to be done with a compass in hand:
Left click on the *sign* of a memory stone. You'll get a confirmation to say that you have successfully memorized the location.
If you have Spout installed (and Spoutcraft client), you can right click to bring up the following screen - select destination and it'll teleport you there:

Similarly, you can hit a shortkey key (default 'C') to show that screen as long as you have a compass in your inventory somewhere. If you have Spout on the server and running Spoutcraft :)
If you don't have Spout installed, you can right click to teleport back to the stone you've just memorized. You need to stand still for 3 seconds after you've activated teleporting, and if you have multiple memory stones memorized, you can left click to cycle to your destination.
As of 1.0.7, if you have glowstone dust in your inventory (configurable) you can left click on a memory stone sign to cycle through destinations and right click to teleport without the use of a compass. If you have Spout & Spoutcraft, you only need to right click on the sign.
Configuration Options
In the configuration.yml file, you can change these options to customize MemoryStone for your server:
- lang.* - This is all the text the players will see from this plugin.
- teleportItem - Configure to use something different to a compass if you like. Accepts names or typeId's
- castingTime - The time the player (and target if teleporting another player) needs to stand still for until teleport happens.
- cooldownTime - The cooldown after teleporting successfully, in seconds.
- fizzleCooldownTime - The cooldown after fizzling (player cancelled teleportation somehow), in seconds.
- maxUsesPerItem - How many charges an item has before it is consumed. If this is set to zero, it will be unlimited.
lightningEffect - Whether to show the lightning effect when a Memory Stone structure is setup correctly. No longer supported as of 1.0.7, see effects.*
- sortByDistance - If true, sorts the location list by distance instead of alphabetically
- economy.enabled - Enable economy support. You may have economy plugged in but don't want to use it for memory stones
- economy.ownerGetsPaid - The person who setup this memory stone will get paid whatever anyone spends on this memory stone
- economy.addCustomValue - Allows a person setting up a memory stone to specify extra costs (above base costs) on placing the sign.
Added in 1.0.7:
- effects.lightningOnCreate - Lightning effect on creation of memory stones
- effects.lightningOnBreak - Lightning effect on breaking of memory stones
- effects.lightningOnTeleportSource - Lightning effect when teleporting (player source location)
- effects.lightningOnTeleportDestination - Lightning effect when teleporting (player destination location)
- stonetostone.enabled - Enable stone to stone teleportation
- stonetostone.item - Item to consume on stone to stone teleporting - set to NONE if you don't want it to consume anything
- stonetostone.maxuses - Maximum number of uses on the item to consume before destroying it - set to zero for infinite or to 1 for a single use.
Permissions
- memorystone.*: Gives access to all normal MemoryStone permissions
- memorystone.op: Allows free, zero casting time and no cooldown to user, default: false
- memorystone.build: Allows user to build Memory Stones, default: true
- memorystone.break: Allows user to break Memory Stones, default: true
- memorystone.use: Allows user to teleport to Memory Stones, default: true
- memorystone.usestonetostone: Allows user to use stone to stone teleportation
- memorystone.usefree: Allows user to teleport without costing charges (if applicable), default: false
- memorystone.useonothers: Allows user to teleport others, default: true
- memorystone.usewithoutcooldown: Allows user to teleport without cooldowns, default: false
- memorystone.useinstantly: Allows user to teleport without casting time, default: false
- memorystone.allmemorized : User will doesn't need to memorize stones.
- memorystone.create.*: Can create any structure
- memorystone.create.local: Can create local memory stones
- memorystone.create.global: Can create global memory stones
- memorystone.create.crossworld: Can create crossworld memory stones
- memorystone.create.crossworldglobal: Can create crossworld global memory stones
- memorystone.create.noteleport: Can create noteleport zone stones
Known Plugin Incompatibilities
- SpoutTrade: Because of using the right-click on players, it requests a trade and teleports.. Not sure how to stop SpoutTrade from firing.
Credits
Some shout out to some awesome devs out there!
- The Bukkit team
- The Spout team - Go install Spout and Spoutcraft. Now. Believe me, it's a better place.
- tprk77 for HealingTotem - I used his awesome structure code - this should really be in the Core Bukkit code.
- krinsdeath for ChestSync - I used some of his coding ideas and signage code.
- The guys who built BlueTelepads - Their code helped me get the yaw and pitch correct.
- Nijikokun for Register - Awesome work!
Also, credit goes to the following people for their fantastic input:
Tylui, PhantomX, Kaiemi, hammerKlavier and SirMonsterSlayer
评论 0
登录后参与评分
还没有评论,来抢沙发吧