Cobblemon Tower Battle
将经典的战斗塔带入你的 Cobblemon 服务器——一座玩家必须亲自攀爬的真实物理建筑。
建造这座塔。只需锚定一次。从那一刻起,它便自动运行:无需命令、无需工单、无需管理员介入。玩家右键点击入口雕像,队伍将被注册并锁定,而那座雕像就是他们的第一个对手。击败它,爬上楼梯,挑战下一座雕像。在坠落之前,你能爬多高?
功能特性
- 真实的物理塔与攀爬体验。 你建造的每一层楼都有独立的战斗点。没有传送链,没有菜单界面——玩家走上你建造的塔。
- 与雕像对战。 每层楼都有一座石制训练家雕像——右键点击它,它就会派出该层的队伍。雕像按需生成(入口 + 每位挑战者当前活跃楼层),因此即使是一座 50 层的塔,也只会占用单个实体的资源。
- 完全自动化。 管理员一次性设置;此后玩家开始、战斗、获胜、失败并离开,全程无需任何命令。进入方式极其简单:右键点击门口发光精灵球环上的雕像即可。
- 并行单人挑战。 任意数量的玩家可以同时挑战同一座塔——每人拥有独立的对手、进度、计时器和奖励。同楼层的对战仅排队处理;其他楼层则并行运行。
- 经典战斗塔规则。 每次胜利后全额恢复(如同官方游戏)——挑战在于连胜次数,而非消耗战。一旦失败,本次挑战即告结束。
- 严格的队伍锁定。 入场时会对你的队伍进行“指纹”识别(按槽位记录等级、闪光状态、性别),并在每场战斗前重新检查。在 PC 中交换队员、途中交易或使用进化奇石/稀有糖果等道具 将使挑战无效——正如官方塔中的锁定队伍机制。在塔内战斗中获得的经验值会被合法吸收。
- Boss 楼层。 每隔 5 层:等级更高、多一只宝可梦、AI 更犀利,队伍由最强构建组成,且训练家携带完全回复药。击败他们可获得额外战利品。
- 内置两座塔:
- Spawn Tower(出生塔) - 25 层,等级 10-50,AI 温和。无限模式: 通关顶层后塔 循环回到第 1 层,但难度增加(共 4 个难度圈次,最终以无尽等级 100 的考验收尾)。分数无上限。
- Frontier Tower(前线塔) - 50 层,等级 50-100,近乎最优 AI,训练家持有治疗物品。到达顶层将被加冕为 Champion(冠军)(奖品为大师球)。
- 预留了 2 个塔的插槽,可随时配置。
- 超过 1,350 名精心挑选的对手,分布在 450 个训练家文件中——每层楼有 3 种队伍变体,每次战斗随机选取,且不会在该层重复上一场的队伍,确保连续挑战保持新鲜感。
进度展示与特效
- 物理排行榜: 在任何位置放置一个浮动显示 BEST RUNS 的前三名榜单;它会自动更新并向全服宣布新的 #1 纪录。
- 冠军领奖台: 在真实领奖台上放置第 1/2/3 名的雕像——它们会自动穿戴 每位纪录保持者的皮肤和名字,并在每次新纪录诞生时重新造型。
- 实时入口指示牌 显示当前有多少挑战者在塔内。
- 每座塔的独立纪录 (
tower_best1..4),附带可选侧边栏。
- 战斗开始、胜利、失败、圈次提升、冠军诞生及创纪录时的音效提示;重大时刻绽放烟花;每个入口处有精灵球形状的粒子光环,以及每座塔纪录楼层上的 金色星形光环。
专为公共服务器设计的高稳定性
- 爬塔过程可承受 服务器重启(所有状态保存在记分板/存储中,无定时任务依赖)。
- 断线宽容: 离开并在 5 分钟内返回,可继续之前的进度;否则本次挑战自动解散。
- 防作弊机制:5 分钟楼层超时限制、48 格距离束缚、死亡导致挑战结束,且所有结局都会将玩家送回入口。
- 自愈能力:孤立 NPC 会被清理,消失的 NPC 会重生,
/trigger tower_quit 命令始终能让卡住的玩家脱困。
依赖项
| 依赖 |
作用 |
| Cobblemon 1.7+ |
宝可梦系统 |
| TBCS 0.13.0-beta+ (+ RCTApi) |
训练家对战 |
| Easy NPC |
物理训练家实体 |
| Mega Showdown (可选) |
部分训练家持有其物品 |
Minecraft 1.21.1 · 仅服务端 · 兼容 Fabric 和 NeoForge(在上述模组运行的环境中均可使用)。
安装方法
- 将 zip 文件放入
world/datapacks/ 目录并执行 /reload(或重启服务器)。仅限服务端——玩家无需安装任何东西。
- 确保服务器上已安装依赖表中的所有模组。
设置你的第一座塔(2 分钟,无需配置文件)
- 建造或选择一座塔:每层楼一个战斗点,楼层垂直堆叠。
- 以 OP 身份运行
/function tower:admin。你将成为塔管理员,聊天菜单将打开。此后,击中任何塔雕像即可重新打开菜单(或运行 /function tower:menu)。
- 站在门口面向塔,点击 [Entrance here]。这将放置入口标记、浮动指示牌和入口雕像——它即是第 1 层。
- 点击 [Anchor floors] 并调整
h(楼层间的方块数):第 2 层及以上楼层将在入口正上方垂直堆叠锚定。 [Anchor markers ON] 可在建造期间显示锚点;如果建筑不规则,站在对应战斗点使用 [One floor] 重新锚定任意单层。
- 可选: [Board] 在你站立的位置放置浮动排行榜, [Podium] 为你提供 [Place 1st] [Place 2nd] [Place 3rd] 按钮用于放置冠军雕像(它们会自动穿戴纪录保持者的皮肤)。
完成——一劳永逸。塔 1-4 随包预生成(插槽 5-8 为空,详见捆绑的 README 文件)。
玩家使用方法(零命令)
- 右键入口雕像:队伍需通过指纹验证,挑战随即开始——该雕像即为第1层的对手。
- 真实攀爬,并右键每层雕像以进行战斗。每次胜利后全额回血,每层均有奖励,排行榜记录成绩。
/trigger tower_quit 放弃挑战(这是玩家可能唯一需要输入的命令)。
管理员命令参考
以下内容同时也是菜单按钮——列出命令仅供完整性说明。
| 命令 |
效果 |
/function tower:admin / tower:admin_off |
进入/退出管理员模式(管理员通过击打雕像打开菜单) |
/function tower:menu |
打开管理员菜单 |
/function tower:setupentry {t:1} |
在你站立处放置入口与第1层 |
/function tower:setupauto {t:1,h:6} |
将第2层及以上楼层锚定在入口上方,每隔 h 个方块一层 |
/function tower:setupfloor {t:1,f:7} |
在你站立处重新锚定某一层 |
/function tower:setupboard {t:1} |
放置/移动排行榜(保留记录) |
/function tower:pod_place {t:1,r:1} |
放置/移动领奖台雕像(排名1-3) |
/function tower:board_reset {t:1} |
清除某座塔的前三名记录 |
/function tower:remove {t:1} |
完全拆除一座塔 |
/function tower:status |
查看每座塔及挑战者的实时状态 |
/function tower:top_on {t:1} / top_off |
开启/关闭记录侧边栏 |
/function tower:anchors_on / anchors_off |
显示/隐藏锚点标记 |
雕像对管理员响应:击打可打开配置菜单,右键可像玩家一样游玩,Shift+右键可使用 Easy NPC 自带的编辑器(调整皮肤、姿势、缩放)。
自定义所有内容
- 奖励 使用标准战利品表(
data/tower/loot_table/)——无需触碰任何函数即可更改奖品。
- 难度(等级曲线、队伍规模、AI、层数、圈数)由附带的 Python 脚本生成——修改
TOWERS 字典,重新运行,然后执行 /reload。
- 超时时间、牵引绳范围、宽限期以及每座塔的无限模式均为单一数值,详见 README 文档。
常见问题
玩家需要安装客户端模组吗? 不需要。纯服务端数据包。
两名玩家能否在同一层对战? 他们轮流进行——因为雕像是对手,所以同层战斗会排队,而其他层则并行运行。
如何防止有人中途更换队伍以针对对手? 每次战斗前的队伍指纹检查。更改你的队伍会导致挑战立即作废。
它会影响正常的 Cobblemon 游戏吗? 不会。塔系训练家不会自然生成野外(生成权重为0),也不计入 RCT 系列进度。
鸣谢
Cobblemon Tower Battle
Bring the classic Battle Tower to your Cobblemon server - as a real, physical building your players climb.
Build the tower. Anchor it once. From that moment on it runs itself: no commands, no tickets, no staff. Players right-click the entrance statue, their team is registered and locked, and that same statue is their first opponent. Beat it, climb the stairs, challenge the next statue. How high can you get before you fall?
What it does
- Physical towers, real climbing. Every floor of your building has its own battle spot. No teleport chains, no menu UIs - players walk up the tower you built.
- You battle the statues. Every floor has its stone-trainer statue - right-click it and it sends out that floor's team. Statues materialize on demand (entrance + each runner's active floors), so even a 50-floor tower idles at a single entity.
- Fully automatic. One-time setup by an admin; afterwards players start, fight, win, lose and leave without a single command. Entering is as simple as right-clicking the statue on the glowing pokeball ring at the door.
- Parallel solo runs. Any number of players can challenge the same tower at the same time - each with their own opponents, progress, timers and rewards. Same-floor clashes simply queue; every other floor runs in parallel.
- Classic Battle Tower rules. Full heal after every victory (like the official games) - the challenge is the streak, not attrition. Lose once and the run is over.
- A real team lock. Your party is fingerprinted when you enter (per-slot level, shiny, gender) and re-checked before every battle. Swapping party members at a PC, trading mid-run or popping Rare Candies voids the challenge - just like the official tower's locked teams. Experience earned in tower battles is absorbed legitimately.
- Boss floors. Every 5th floor: higher level, one extra pokemon, sharper AI, teams drawn from the strongest builds, and the trainer carries a Full Restore. Bonus loot if you take them down.
- Two towers included:
- Spawn Tower - 25 floors, levels 10-50, gentle AI. Infinite mode: clear the top and the tower loops back to floor 1, harder (4 difficulty laps, ending in an endless level-100 gauntlet). Scores are unbounded.
- Frontier Tower - 50 floors, levels 50-100, near-optimal AI, trainers with healing items. Reach the top to be crowned Champion (Master Ball prize).
- Slots for 2 more towers are ready to configure.
- 1,350+ curated opponents across 450 trainer files - 3 team variants per floor, picked at random per battle and never repeating the previous one on that floor, so back-to-back runs stay fresh.
Progression & flair
- Physical leaderboard: place a floating BEST RUNS top-3 board anywhere; it updates itself and announces new #1 records server-wide.
- Champions' podium: place 1st/2nd/3rd statues on a real podium - they automatically wear the skin and name of each record holder, restyling themselves after every new record.
- Live entrance sign showing how many challengers are inside right now.
- Per-tower records (
tower_best1..4) with an optional sidebar.
- Sound cues for battle start, victory, defeat, lap-ups, champions and records; fireworks for the big moments; pokeball-shaped particle ring at every entrance and a golden star ring on each tower's record floor.
Built to survive a public server
- Runs survive server restarts mid-climb (all state lives in scoreboards/storage, no schedules).
- Disconnect grace: leave and come back within 5 minutes to continue exactly where you were; otherwise the run disbands itself.
- Anti-cheese: 5-minute floor timeout, 48-block leash, death ends the run, and every ending returns the player to the entrance.
- Self-healing: orphaned NPCs are cleaned up, a vanished NPC respawns, and
/trigger tower_quit always gets a player unstuck.
Requirements
| Dependency |
Role |
| Cobblemon 1.7+ |
the pokemon |
| TBCS 0.13.0-beta+ (+ RCTApi) |
trainer battles |
| Easy NPC |
the physical trainers |
| Mega Showdown (optional) |
some trainers hold its items |
Minecraft 1.21.1 · server-side only · works on Fabric & NeoForge (wherever the mods above run).
How to install
- Drop the zip into
world/datapacks/ and /reload (or restart). Server side only - players install nothing.
- Make sure the mods from the requirements table are on the server.
Set up your first tower (2 minutes, no configs)
- Build or pick a tower: one battle spot per floor, floors stacked vertically.
- Run
/function tower:admin (as op). You become a tower admin and the chat menu opens. From then on, HIT any tower statue to reopen it (or run /function tower:menu).
- Stand at the door facing the tower and click [Entrance here]. This places the entrance marker, the floating sign and the entrance statue - which IS floor 1.
- Click [Anchor floors] and adjust
h (blocks between floors): floors 2+ anchor in a vertical stack straight above the entrance. [Anchor markers ON] shows them while you build; if your building is irregular, re-anchor any single floor with [One floor] standing at its battle spot.
- Optional: [Board] places the floating leaderboard where you stand, [Podium] gives you [Place 1st] [Place 2nd] [Place 3rd] buttons for the champion statues (they wear the record holders' skins automatically).
Done - forever. Towers 1-4 ship pre-generated (slots 5-8 are free, see the bundled README).
How players use it (zero commands)
- Right-click the entrance statue: the team is fingerprint-locked and the run starts - that same statue is the floor 1 opponent.
- Climb for real and right-click each floor's statue to battle. Full heal after every victory, rewards per floor, records on the board.
/trigger tower_quit forfeits (the only command a player might ever type).
Admin command reference
Everything below is also a menu button - the commands are listed for completeness.
| Command |
Effect |
/function tower:admin / tower:admin_off |
enter/leave admin mode (admins open the menu by hitting a statue) |
/function tower:menu |
open the admin menu |
/function tower:setupentry {t:1} |
place entrance + floor 1 where you stand |
/function tower:setupauto {t:1,h:6} |
anchor floors 2+ above the entrance, one every h blocks |
/function tower:setupfloor {t:1,f:7} |
re-anchor one floor where you stand |
/function tower:setupboard {t:1} |
place/move the leaderboard (records kept) |
/function tower:pod_place {t:1,r:1} |
place/move a podium statue (ranks 1-3) |
/function tower:board_reset {t:1} |
wipe a tower's top-3 |
/function tower:remove {t:1} |
full teardown of a tower |
/function tower:status |
live status of every tower and runner |
/function tower:top_on {t:1} / top_off |
records sidebar on/off |
/function tower:anchors_on / anchors_off |
show/hide anchor markers |
Statues respond to admins: HIT one for the config menu, right-click to play like a player, shift+right-click for Easy NPC's own editor (skin, pose, scale).
Customize everything
- Rewards are plain loot tables (
data/tower/loot_table/) - change prizes without touching a function.
- Difficulty (level curves, team sizes, AI, floor counts, laps) is generated by the included Python script - tweak the
TOWERS dict, re-run, /reload.
- Timeouts, leash range, grace periods and per-tower infinite mode are single values documented in the README.
FAQ
Do players need anything client-side? No. Pure server-side datapack.
Can two players fight on the same floor? They take turns - the statue is the opponent, so same-floor battles queue while every other floor runs in parallel.
What stops someone from swapping to counter-teams mid-run? The team fingerprint check before every battle. Change your party and the run voids on the spot.
Does it touch normal Cobblemon gameplay? No. Tower trainers never spawn in the wild (spawn weight 0) and never count toward RCT series progression.
Credits
评论 0
登录后参与评分
还没有评论,来抢沙发吧