滑动平台
由任意方块构建的真实滑动平台——包括门、电梯轿厢,甚至是整条无轨道交通线。它们会真正移动,你也可以在上面乘坐。
这是对“移动电梯”概念从头开始的全新独立实现,适用于 Minecraft 1.20.1(Fabric)。
将控制器对准一堵方块墙,右键点击——这堵墙就变成了一个活生生的平台,
以你的速度沿任意轴滑行,并在结束后恢复为普通方块。在移动过程中,它是真实的:
逐块碰撞检测,你可以站在上面,它还能推动玩家和生物。
功能概览
? 由任意方块制成的滑动门
- 开箱即用支持高达 12×12×3 的门(限制完全可配置,实时生效)。
- 通过滑块选择滑动轴(X / Y / Z)、行程距离(或自动 = 完整尺寸)和速度。
- 支持自动扫描或手动方块拾取——可以建造任意形状,而不仅仅是矩形。
- 平滑的梯形运动曲线:加速、巡航、减速制动、精准停靠。
- 级联模式:各行依次像窗帘一样移动,支持每行延迟和
从根部开始的反转效果——包含免费的戏剧性开场动画。
? 电梯体验
- 电梯屏幕规划真正的多层行程:乘客菜单、楼层名称和编号、
即时出发。
- 串联屏幕以实现跨楼层呼叫轿厢——点对点通信,无需主控方块。
- FIFO(先进先出)队列调度,在目的地表面进行最终停车刷新,完整的行程持久化
支持服务器重启后恢复,如果路径受阻则回滚。
? 平台发光效果
- 当面板附近时,门附近的红石灯会自动亮起(半径 6 格):
就像地铁隧道一样,轿厢前方的隧道会被照亮,门口处也会发光。
- 不触碰原版红石机制;每个门都有独立的开关,配置文件中有服务器范围的默认设置。
? 共享自定义音效
- 每个门都有启动/循环/停止/到达铃声音效——服务器上的所有人都会听到。
- 服务器自动构建标准服务器资源包并通过原版方式提供;
玩家可以直接从音效菜单上传
.ogg 文件——无需手动复制。
- 内置微型 HTTP 服务(端口 24466),如果端口被防火墙阻挡,则使用分块的游戏中备用方案。资源包、端口、主机地址和备用方案均在配置文件中可切换。
? 便利性小工具
- 远程开关方块:绑定一次,即可从任何地方控制门的开关;支持红石输入。
- 传感器(玩家/生物,名称白名单),按所有者名称锁定单个控制器,自动关闭计时器。
- 命名控制器和屏幕,使用放置者的语言显示(包含英文/俄文)。
⚙️ 服务器配置菜单 — /slidingplatformscfg
- 仅限管理员操作的 GUI(权限等级 2+,或单人游戏主机)——无需编辑文件即可实现
config/slidingplatforms.json
的所有功能:门尺寸限制、行程、速度、乘坐长度、新门默认值、音效包和端口(重新绑定实时生效,无需重启)、调试日志。
- 两个标签页:限制(精选预设)和 无限制(自由数值——是的,甚至可以是
900 格/秒,但后果自负;菜单会用红色字体警告你)。
- 编辑立即生效,保存到相同的 JSON 文件并同步给所有在线玩家。
从未打开过此菜单的玩家不会看到任何变化。
方块与合成
| 方块 |
配方 (3×3) |
| 平台控制器 |
铁 ×6 围绕活塞,两侧放置红石 |
| 电梯屏幕 |
玻璃上方是红石,红石上方是铁(垂直排列) |
| 远程开关 |
石头按钮上方是红石,红石上方是铁(垂直排列) |
操作指南
| 手势 |
动作 |
| 右键点击控制器 |
打开 / 关闭 |
| Shift + 右键点击(空手) |
设置菜单 |
| 右键点击屏幕 |
乘客楼层菜单 |
| Shift + 右键点击开关 |
开关菜单 |
| 红石脉冲信号 |
等同于右键点击 |
前置要求
Minecraft 1.20.1 · Fabric Loader 0.15+ · Fabric API · Java 17+
需要在服务器和客户端都安装(原版客户端仍会通过标准的服务器资源包接收音效包,但模组菜单也需要客户端模组的支持)。
安全第一
每个移动的方块最终都会回归原位——即使服务器在飞行中途重启,轿厢落地时其方块也会在加载世界时复原。极端的配置值可能导致卡顿或崩溃:在游戏中菜单会用红色字体明确提示这一点,且默认设置始终符合经典行为。
许可证:MIT
Sliding Platforms
Real sliding platforms built from any blocks — doors, elevator cabins, even whole rail-free transit lines. They actually move, you actually ride them.
A standalone from-scratch take on the idea of Moving Elevators, for Minecraft 1.20.1 (Fabric).
Point a controller at a wall of blocks, right-click — the wall becomes a living platform,
glides at your speed along any axis, and settles back as ordinary blocks. While it moves, it's real:
block-by-block collision, you can stand on it, it pushes players and mobs.
What you get
? Sliding doors from any blocks
- Doors up to 12×12×3 out of the box (limits fully configurable, live).
- Pick the slide axis (X / Y / Z), travel distance (or auto = full size) and speed with sliders.
- Auto-scan or manual block picking — build any shape, not just rectangles.
- Smooth trapezoid motion: acceleration, cruise, braking, clean docking.
- Cascade mode: rows travel one after another like a curtain, with per-row delay and
root-first inversion — theatrical openings included free.
? Elevator rides
- Elevator screens plan real multi-floor trips: passenger menu, floor names and numbers,
instant departures.
- Chain screens together to call the cabin from any floor — peer-to-peer, no master block.
- FIFO queueing, final parking flush at the destination's face, full ride persistence
across server restarts, rollback if something blocks the way.
? Platform glow
- Redstone lamps near the door light up automatically (radius 6) while the panel is around:
the tunnel lights up ahead of a riding cabin like a metro, doorways shine at the doorstep.
- Vanilla redstone is never touched; per-door toggle, server-wide default in the config.
? Shared custom sounds
- Start / loop / stop / arrive-chime per door — and everyone on the server hears them.
- The server auto-builds a standard server resource pack and serves it the vanilla way;
players upload
.ogg right from the sound menu — no manual copying.
- Built-in mini-HTTP delivery (port 24466) with a chunked in-game fallback if the port is
firewalled. Pack, port, host and fallback are all toggles in the config.
? QoL toys
- Remote switch block: bind once, toggle a door from anywhere; redstone input supported.
- Sensor (players/mobs, name whitelist), per-controller lock by owner name, auto-close timer.
- Named controllers and screens, in the placing player's language (EN / RU included).
⚙️ Server config menu — /slidingplatformscfg
- Ops-only GUI (level 2+, or the singleplayer host) — everything the
config/slidingplatforms.json
can do, without editing files: door size limits, travel, speed, ride length, new-door
defaults, sound pack and port (re-binds live, no restart), debug logs.
- Two tabs: Limits (curated presets) and No restrictions (free numbers — yes, even
900 blocks/sec, at your own risk; the menu warns you in red).
- Edits apply instantly, save to the same JSON file and sync to everyone online.
Players who never open it see absolutely zero change.
Blocks & recipes
| Block |
Recipe (3×3) |
| Platform Controller |
Iron ×6 around a piston, redstone at the sides |
| Elevator Screen |
Glass over redstone over iron (vertical) |
| Remote Switch |
Stone button over redstone over iron (vertical) |
Controls
| Gesture |
Action |
| Right-click controller |
open / close |
| Shift + right-click (empty hand) |
settings menu |
| Right-click screen |
passenger floor menu |
| Shift + right-click on switch |
switch menu |
| Redstone pulse |
same as right-click |
Requirements
Minecraft 1.20.1 · Fabric Loader 0.15+ · Fabric API · Java 17+
Install on server and clients (vanilla clients still receive the sound pack via the
standard server resource pack, but the mod's menus need the client mod too).
Safety first
Every moving block comes back — even if the server restarts mid-flight, the cabin lands its
blocks on world load. Extreme config values can lag or crash the game: the in-game menu says
so in red, and defaults always match classic behavior.
License: MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧