此插件已不再维护
您可以转而查看 LiftReloaded:
描述
一款简单的电梯插件。
主要功能:
- 无需命令
- 无需配置(但如果您需要,也可以进行配置!)
- 无需数据库(电梯由方块排列决定,仅此而已)
- 多层电梯
- 多乘客电梯,包括生物和掉落物
- 抽象的电梯井形状
- 红石触发器
- 地毯现在可以放置在任何电梯楼层。再也不用难看的玻璃了!
- 所有轨道现在都可以放入井道中。矿车现在可以上下运行电梯,并在到达时恢复之前的速度(这一点未经充分测试,需要更多反馈!)
视频说明:按钮下方的告示牌已不再需要!请参阅下面的构建说明以了解新方法。
工作原理
无需命令!无需担心存档文件!添加、移除或更改楼层非常简单。只需放置或移除方块即可!电梯是通过扫描方块排列来生成的,在使用后不会保存或存储在内存中。使用默认配置时,这是一个快速的过程,耗时不到 20 毫秒。
安装
只需将插件放入 plugin 文件夹即可开始游玩!无需设置权限,配置文件使用适用于大多数服务器的默认值。如果您使用权限管理器,您可能需要添加权限 "lift" 和 "lift.change"。这是某些管理器中的 bug。
以下是默认配置,如果您想调整设置或语言:
# 注意:较小的值会导致更少的延迟。电梯速度低于 0.4 可能在非 Spout 服务器上无法正常工作。 maxLiftArea: 16
maxHeight: 256
debug: true
autoPlace: false
preventEntry: false
preventLeave: true
checkFloor: false
liftMobs: true
floorBlocks:
- GLASS
- '*_STAINED_GLASS'
redstone: false
STRING_oneFloor: There is only one floor.
STRING_currentFloor: Current Floor
STRING_dest: §1Dest
STRING_cantEnter: Can't enter elevator in use
STRING_cantLeave: Can't leave elevator in use
baseBlockSpeeds:
IRON_BLOCK: 0.5
- maxLiftArea 是电梯可以连接的最大方块数。较大的值会导致使用电梯时的启动时间变长。超大的值甚至可能导致服务器暂时冻结。
- maxHeight 限制电梯的高度。
- debug 打印额外信息,可以帮助我排查错误。
- autoPlace 会自动将实体定位在基座方块的中心上方,这可以防止它们撞到边缘并卡住。
- preventEntry 阻止玩家进入移动的电梯。
- preventLeave 阻止玩家离开移动的电梯。
- checkFloor 防止玻璃复制。如果将其设为 false,插件将不会检查确保所有楼层都填满了所有玻璃块,但对于繁忙的服务器会有更好的性能。
- redstone 可以通过向电梯按钮后面的方块发送红石信号来启动电梯。这在有大量脉冲红石信号的服务器上可能会导致一些延迟。
- floorBlocks 是用于楼层地板的有效方块列表。* 是通配符。例如,'*_STAINED_GLASS' 允许所有名称中包含 '_STAINED_GLASS' 的方块。
- baseBlockSpeeds 是您希望在电梯基座中使用的方块列表以及它们使电梯运行的速度。可以添加多种方块类型。例如:
baseBlockSpeeds: IRON_BLOCK: 0.5 GOLD_BLOCK: 0.75 DIAMOND_BLOCK: 1.0
此示例中有三种不同的方块可用作基座,更快的电梯成本更高。请确保有两个空格以符合正确的 YAML 格式!
权限
有两个权限节点。默认情况下,两者都设置为 true,允许任何人立即使用电梯:
- "lift" 允许玩家成为乘客并使用电梯。要不让玩家使用电梯,请在您选择的权限插件中将 lift 设置为 false。
- "lift.change" 允许玩家更改任何电梯的目标楼层。要不允许玩家更改楼层告示牌,请在您选择的权限插件中将 lift.change 设置为 false。
我不会为单个电梯添加权限。根据代码的工作原理,这是不可能的。
使用默认配置的方法
1) 使用铁块创建底层。电梯可以小到 1 个方块,大到 15 个方块,形状任意。较小的区域会产生较少的延迟。确保电梯的铁块不要与建筑物中的任何其他铁块接触 插件不知道区别!
2) 接下来创建该楼层的控制面板。在墙上放置以下方块。告示牌和按钮必须“位于”其中一个铁基座方块之上。
- 必需的告示牌,留空或在第一行写上楼层名称。
- 按钮
- 空气
- 您刚刚放置的铁制楼层方块。
3) 建造电梯井。要创建新的楼层平台,请使用玻璃方块而非铁块。在第一层的一个玻璃方块上方创建楼层接口。
- 必需的告示牌,第一行留空或填写楼层名称。
- 按钮
- 空气
- 玻璃地板
4) 确保电梯井内除了楼层玻璃、按钮和告示牌外没有其他障碍物。火把和藤蔓也允许存在于电梯井中。
5) 使用电梯时,右键点击按钮上方的告示牌以选择目标楼层。告示牌将自动添加正确的信息。
重要说明
如果您发现错误或功能未按宣传的那样工作,请前往工单页面报告。评论中的错误报告(很可能)会被忽略。
有一个配置文件可以调整最大提升区域、提升高度、提升速度以及其他一些选项。默认设置是合理的,大多数人无需更改它们。
常见问题
问:你会添加建造权限吗?
答:不会。权限是与玩家绑定的。电梯是通过扫描特定区块中特定位置的特定方块来创建的。在不进行昂贵且导致延迟的计算的情况下,没有简单的方法阻止玩家完成电梯的建造。要防止玩家建造电梯,必须阻止他们放置电梯所需的任意一种方块类型(铁块、告示牌、玻璃或按钮)。有其他插件具备此功能。
问:井内可以使用哪些有效方块?
答:除了用于提升楼层的玻璃方块外,您还可以放置火把、告示牌(非常适合用作传感器)、按钮、藤蔓、梯子、地毯、红石、铁轨和水。
问:你会添加经济系统吗?
答:不会。实现方式的变化太多,我希望保持该插件的功能集中且简洁。您可以使用其他插件来添加经济系统。例如,可以为按下按钮收费:
故障排除
适用于 Lift 版本 < 50
您遇到类似以下关于方块 X473 的错误:
1:34:32 [INFO] [Lift] [DEBUG] Starting elevator gen caused by: MXPLRS_Kirill v42 21:34:32 [INFO] ==Unknown Error== 21:34:32 [INFO] Yscan: 64 21:34:32 [INFO] Block: X473 21:34:32 [INFO] Is Valid Block: false 21:34:32 [INFO] Is Base Block: false 21:34:32 [INFO] [Lift] Player elevator generation returned a null object. Please report circumstances that generated this error.
您遇到的问题极有可能是由于 Railcraft 的追踪方块(通过护目镜可见为追踪光环)引起的,您可以在 Railcraft 的配置文件中将 block.hidden 设置为 0 来禁用它。该方块的默认 ID 为 473。
This plugin is no longer maintained
You can instead take a look at LiftReloaded:
Description
A simple elevator plugin.
Primary features:
- Command free
- No configuration needed (but there if you want it!)
- Database free (Lifts are determined by block arrangements, nothing more)
- Multi floor elevators
- Multi passenger elevators, including mobs and dropped items
- Abstract elevator shaft shapes
- Redstone triggers
- Carpets can now be placed in any elevator floor. No more unsightly glass!
- All rails can now be put in shafts. Minecarts will now go up and down lifts and resume their previous speed upon arrival (this is largely untested, more feedback here is needed!)
Video note: the sign below the button is no longer needed! See the build instructions below for the new method.
More video tutorials - English, Deutsch, Português
How it works
No commands! No save file to worry about! It is easy to add, remove, or change floors. Just place or remove blocks! Lifts are made by scanning block arrangements are not saved or stored in memory after they are used. With the default configuration this is a fast process, less than 20 milliseconds.
Installation
Just drop the plugin in the plugin folder and play! No permissions to set up and the configuration is set up with defaults that will work for most servers. If you use a permission manager you might have to add add the permission "lift" and "lift.change" This is a bug in some managers
Here is the default configuration if you wish to play with the settings or language:
# Note: Smaller values result in less lag. Lift speed less than 0.4 may not work well for non spout servers. maxLiftArea: 16
maxHeight: 256
debug: true
autoPlace: false
preventEntry: false
preventLeave: true
checkFloor: false
liftMobs: true
floorBlocks:
- GLASS
- '*_STAINED_GLASS'
redstone: false
STRING_oneFloor: There is only one floor.
STRING_currentFloor: Current Floor
STRING_dest: §1Dest
STRING_cantEnter: Can't enter elevator in use
STRING_cantLeave: Can't leave elevator in use
baseBlockSpeeds:
IRON_BLOCK: 0.5
- maxLiftArea is the number of connected blocks the lift can be. Larger values will result in a longer start up time when using a lift. Super large values can even freeze your server for a moment.
- maxHeight limits how tall an elevator can be.
- debug prints out extra information that can help me track down errors
- autoPlace will automatically position entities over the center of the base blocks which can prevent them from hitting edges and getting stuck
- preventEntry blocks players from entering moving lift.
- preventLeave blocks players from leaving a moving lift.
- checkFloor prevents glass duping. With it false the plugin will NOT check to make sure all the floors have all the glass blocks filled it, but will have better performance for busy servers.
- redstone can start a lift by using a redstone signal to the block behind the lift button. This can result in some lag on servers with a lot of pulsing redstone signals.
- floorBlocks is a list of valid blocks for the flooring of floors. * is a wildcard. For example, '*_STAINED_GLASS' allows all blocks with '_STAINED_GLASS' as the block name.
- baseBlockSpeeds is a list of blocks you wish to use in the elevator base and how fast they make the lift. Multiple block types can be added. For example:
baseBlockSpeeds: IRON_BLOCK: 0.5 GOLD_BLOCK: 0.75 DIAMOND_BLOCK: 1.0
This example has three different blocks that can be used as a base, with faster lifts being more expensive. Make sure there are two spaces for proper yaml formatting!
Permission
There are two permission nodes. By default both are set to true allowing anyone to use lifts right away:
- "lift" allow players be passengers and use lifts. To not let players use the lift, set lift to false in your permission plugin of choice.
- "lift.change" allow players to change destination floors of any lift. To not allow players to change the floor signs, set lift.change to false in your permission plugin of choice.
I will not be adding permissions to individual lifts. It is not possible with how the code works.
Usage With Default Config
1) Create the bottom floor with iron blocks. An elevator can be as small as 1 block or as big as 15 blocks in any shape. Smaller areas will have less lag. Make sure the lift iron blocks don't touch any other iron in the building the plugin doesn't know the difference!
2) Next create the floor's control panel. On a wall place the following blocks. The signs and buttons must be "over" one of the iron base blocks.
- Required sign, leave blank or put the name of the floor on the first line.
- Button
- Air
- Iron floor block you just placed.
3) Create the elevator shaft. To create a new floor platform use glass blocks instead of iron. Like the first floor over one of the glass blocks create the floor interface.
- Required sign, leave blank or put the name of the floor on the first line.
- Button
- Air
- Glass floor
4) Make sure the shaft is clear of all obstructions except for floor glass, buttons and signs. Torches and vines are also allowed in the elevator shaft.
5) To use your elevator right click the sign above the button to select a destination floor. The sign will automatically add the correct information.
Important Notes
If you find a bug or a feature not working as advertised please report to the ticket page. Bug reports in the comments will (probably) be ignored.
There is a config to adjust max lift area, lift height, lift speed, and a few other options. The defaults are sane and most people wont need to change them.
FAQ
Q: Will you add build permissions?
A: No. Permissions are attached to players. An elevator is created by scanning a chunk for specific blocks in specific places. There is no easy way to stop a player from finishing an elevator without doing expensive, lag-causing calculations. To prevent a player from building an elevator you must prevent them from placing one of the elevator block types (iron block, sign, glass, or button). There are other plugins with this functionality.
Q: What are valid blocks to use inside the shaft?
A: Other than the glass blocks for the lift floors you play places torches, signs (ideal for sensors), buttons, vines, ladders, carpets, redstone, rails, and water.
Q: Will you add economy?
A: No. There are too many variations on how to do this and I want to keep the plugin focused and simple. There are other plugins you can use to add economy. One example is charging for button pressing:
Troubleshooting
For Lift versions < 50
You are getting errors with block X473 like:
1:34:32 [INFO] [Lift] [DEBUG] Starting elevator gen caused by: MXPLRS_Kirill v42 21:34:32 [INFO] ==Unknown Error== 21:34:32 [INFO] Yscan: 64 21:34:32 [INFO] Block: X473 21:34:32 [INFO] Is Valid Block: false 21:34:32 [INFO] Is Base Block: false 21:34:32 [INFO] [Lift] Player elevator generation returned a null object. Please report circumstances that generated this error.
The issue you are having is exceptionally likely to be due to Railcraft's tracking block (visible with the goggles as the tracking aura), you can disable it by setting block.hidden to 0 in Railcraft's config. The default ID of this block is 473.
下载 Lift
下载 Lift
下载 Lift
下载 Lift
下载 Lift
下载 Lift
下载 Lift
下载 Lift
下载 Lift
下载 Lift
现在可以在任意层级建造电梯
已移除 SpongeAPI
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
插件
AbAcc AbAcc 是一款适用于 Minecraft 服务器的管理插件,可简化玩家作弊检测与举报管理工作。工作人员可以发起并管理对可疑玩家的检查流程,并在检查完成后将其释放。
评论 0
登录后参与评分
还没有评论,来抢沙发吧