PokeBuilder
服务端 Cobblemon 伴侣插件,将宝可梦属性编辑转化为游戏内付费功能 —— 玩家通过完全可点击的 GUI 界面消耗 Impactor 货币来优化个体值(IV)、固定性格、更换特性、更改太晶属性、提升极巨化等级、重命名宝可梦、增加亲密度、治愈状态异常,甚至编辑存储在电脑中的宝可梦。无需记忆命令,无需分发 /op 权限,也没有半成品编辑工具。
PokeBuilder 1.3.3 — 适用于 Minecraft 1.21.1 / Fabric。需要 Cobblemon 1.7+ 和 Impactor 5.3+。推荐使用 Mega Showdown 以显示极巨化/超级极巨化/太晶属性的叠加层。
功能介绍
运行 /pb(或 /pokebuilder, /pokebuild)打开队伍屏幕 —— 每个槽位都会渲染你宝可梦的 真实 Cobblemon 模型,而非通用图标。点击任意一个进入编辑器,并通过消费构建你想要的配置:
核心属性:
- 个体值 (IVs) — 将任何单项属性设置为 31 或 0,或一次性将所有六项设为最大值
- 努力值 (EVs) — 将任何单项属性设置为 252 或 0,或彻底清除分布
- 性格 — 从 25 种性格中选择一种(每次更改定价固定)
- 特性 — 切换普通特性或解锁隐藏特性 (单独定价 + 权限要求)
- 闪光 — 开启或关闭闪光标志
- 性别 — 在物种允许的情况下交换为相反性别
- 捕获球 — 更改宝可梦被捕获时使用的精灵球类型
Mega Showdown gimmicks( gimmick 机制):
- 极巨化等级 — 将等级从 0 提升至服务器 Cobblemon 配置的最大上限 (按等级定价)
- G-Max 因子 — 授予或移除超级极巨化访问权限
- 太晶属性 — 将宝可梦重新转换为 19 种属性之一(18 种元素属性 + 星尘属性)
便利性功能 (1.3.0 新增):
- 昵称 — 聊天输入提示框,支持长度及颜色代码验证;输入
reset 可恢复为物种名称
- 亲密度 — 步进式 GUI(+10 / +50 / 最大值 / 重置),用于进化门槛以及归恩/怨恨技能
- 状态治愈 — 一键治愈中毒/灼伤/麻痹/冰冻/睡眠
所有修改均为真实的 Impactor withdraw() 操作 —— 不存在隐藏的钱包。大额购买会在超过可配置的阈值时弹出确认屏幕,防止玩家一键花光积蓄。
电脑存储访问 (1.3.0 新增,可选)
无需将宝可梦取出即可编辑存储在电脑中的宝可梦。队伍屏幕上有一个新的“切换到电脑”按钮,打开您箱子的分页浏览器 —— 点击任意宝可梦即可将其送入相同的编辑器流程。默认情况下该功能关闭;管理员需在配置文件中设置 features.pc-access = true,并赋予玩家 pokebuilder.use.pc 权限(启用功能后默认为真,可通过 LuckPerms 按组禁用以实现仅限 VIP 访问)。
同样的每笔交易安全网也保护着电脑编辑:如果宝可梦在“点击编辑”和“点击购买”之间被交易或在箱子间移动,交易将中止并自动退款。
全场景主题模组物品图标
PokeBuilder 使用来自 Cobblemon 和 Mega Showdown 的真实物品作为所有菜单的图标 —— 而非原版占位符。部分亮点如下:
- 队伍屏幕通过 Cobblemon 的
PokemonItem 渲染 真实宝可梦模型
- IV 编辑器对每项属性使用 超训练糖果
- EV 编辑器使用 维生素(HP 增强剂、力量、防御、特攻、特防、速度)
- 性格选择器为每一项显示对应的 性格薄荷
- 特性选择器使用 特性胶囊 / 特性补丁
- 球类选择器显示真实的 Cobblemon 精灵球物品
- 极巨化等级选择器是一个根据等级缩放的 极巨化糖果 堆叠
- G-Max 切换键显示为 极巨手环 + 极巨蘑菇
- 太晶属性选择器显示对应的 Mega Showdown 太晶碎片
- 昵称图标是 名牌,亲密度是 罂粟花,状态治愈是 蜂蜜瓶
- 当前宝可梦头部显示该物种的 捕获球
自定义选项
基于权限的价格层级 (1.3.0 新增) — config.conf 中每个层级的乘数:
tiers {
default = 1.0
vip = 0.80 # 20% 折扣
mvp = 0.60
}
玩家获得其声明顺序中第一个持有的 pokebuilder.tier.<id> 层级。层级解析是按每笔交易进行的 —— LuckPerms 的授予/撤销将在下一次购买时生效。审计日志同时记录标签和解析后的价格,以免 VIP 收据令人困惑。
i18n / 语言文件 (1.3.0 新增) — 所有 UI 字符串位于 assets/pokebuilder/lang/<locale>.json,可以通过将 config/pokebuilder/lang/<locale>.json 放入服务器配置目录进行覆盖。message-locale 配置键选择语言("auto" = JVM 默认语言,英语为后备)。管理员 GUI 的消息编辑叠加在区域设置基础之上,仅实际差异部分持久化到磁盘 —— 您的 config.conf 保持简洁。
游戏内管理面板 —— 每项设置均可点击
运行 /pokebuilder admin(默认为 OP 4 级或拥有 pokebuilder.admin.gui 权限)打开控制面板。每个部分都是可点击的 GUI,无需聊天刷屏配置:
- 价格 — 每项成本的 +/- 步进器,Shift+点击实现 ×10 跳跃
- 功能 — 开启或关闭各项购买;禁用的功能将从
/pb 中隐藏并在服务端拒绝。1.3.0 之后有 17 个开关(每个编辑器 + 每个快捷方式 + 昵称/亲密度/状态治愈/电脑访问的 4 个新功能)
- 安全性 — 点击冷却时间、每分钟最大修改次数、创造模式切换、濒死宝可梦切换
- 限制 — 阻止传说/神话/究极异兽/悖论宝可梦;通过聊天输入管理被封禁的物种列表
- 声音 — 主开关、音量、音高
- 消息 — 左击任何消息可在聊天中用
& 颜色代码重写;右击重置
- 保存到磁盘 — 原子
tmp + rename 写入,存在未保存编辑时会发光
- 从磁盘重载 — 丢弃内存中未保存的编辑,重新读取文件;实时重新绑定 Impactor 经济系统,使货币更改无需重启即可生效
修改会立即对所有玩家生效,但只有在你点击 保存到磁盘(或执行 /pokebuilder save)时才会持久化保存。
防御性构建
由于此模组允许玩家支付货币以进行不可逆的游戏状态变更,其交易层在设计上极度谨慎:
- 按玩家锁定 — 每次修改都在以玩家 UUID 为键的同步块内运行,因此两个同时点击不会导致重复消费
- 原子购买 — 顺序为 余额检查 → 扣款 → 变异 → 审计。如果 Cobblemon 变异抛出异常,货币将自动退款
- 余额变化验证 — 每次
withdraw(扣款)/ deposit(充值)都会检查玩家前后的余额,如果 Impactor 报告 SUCCESS(成功)但余额实际上没有变化(例如其他模组取消了事件、虚拟账户、缓存账户等),则会记录一条 WARN(警告)。这能捕获那些“看起来一切正常但货币并未扣除”的通常难以察觉的 bug
- 宝可梦身份检查 — 如果在编辑过程中目标宝可梦被交易、放生或存入盒子(无论是在队伍还是 PC 中),交易将以退款方式中止,而不是编辑一个过时的引用
- 点击冷却 + 每分钟速率限制 — 阻止快速点击和宏命令攻击
- GUI 槽位拦截 — 菜单中显示的物品无法被拖拽、交换、丢弃、复制或以任何方式提取到你的背包中
- 每次点击重新检查权限 — 如果在会话期间降级了玩家权限,会立即将其锁定
- **交易收据 (1.3.0 新增) — 每笔成功的购买都会生成一个唯一的 8 字符 base36 ID 写入审计日志。玩家在
/pb history 中可以看到它们;管理员在支持工单中可以引用它们
- 原子配置写入 — 使用临时文件 + 重命名机制,确保中途崩溃永远不会损坏配置文件
- 审计日志 — 每笔交易(玩家、宝可梦 UUID、物种、操作、成本、前后余额、成功/失败、折扣前的等级和贴纸价格)都会追加到
logs/pokebuilder-transactions.log。每次管理员 GUI 更改都会记录其旧值和新值
- 功能门控 — 禁用功能会在 GUI 层、子菜单层以及交易层进行检查 — 纵深防御,无单一绕过途径
权限 (Fabric Permissions API / LuckPerms)
| 节点 |
默认值 |
作用 |
pokebuilder.use |
true |
打开 GUI |
pokebuilder.modify.iv / .ev / .nature / .ability / .shiny / .gender / .ball |
true |
各功能编辑访问权限 |
pokebuilder.modify.ability.hidden |
true |
切换至隐藏特性 |
pokebuilder.modify.dynamax / .gmax / .tera |
true |
超级进化 / G-Max / 太晶化修改 |
pokebuilder.modify.nickname / .friendship / .status_cure |
true |
1.3.0 新功能 |
pokebuilder.use.pc |
true (启用 features.pc-access 后) |
通过 /pb 浏览自己的 PC |
pokebuilder.tier.<id> |
— |
价格等级会员资格(例如 .vip, .mvp) |
pokebuilder.bypass.cooldown |
false |
忽略点击冷却 |
pokebuilder.bypass.cost |
false |
免费修改(管理员测试用) |
pokebuilder.admin.gui |
OP 4 |
打开管理员面板 |
pokebuilder.admin.save |
OP 4 |
保存配置到磁盘 |
pokebuilder.admin.reload |
OP 3 |
从磁盘重新加载配置 |
pokebuilder.admin.debug |
OP 4 |
运行 /pokebuilder debug |
pokebuilder.admin.history |
OP 3 |
查看任何玩家的 /pokebuilder history |
Bypass(绕过)节点默认对所有人关闭。授予 OP 不会 自动授予 bypass 权限 — 如果需要请使用权限插件。
命令
/pokebuilder 打开队伍选择器
/pokebuild /pb 别名
/pb history [page] 玩家自身的购买历史及交易 ID
/pokebuilder version 显示已安装版本
/pokebuilder admin 打开管理员面板 (需要权限)
/pokebuilder save 将实时修改持久化到磁盘 (需要权限)
/pokebuilder reload 重新读取 config.conf + 重新挂钩经济系统 (需要权限)
/pokebuilder debug 转储实时经济状态以供诊断 (需要权限)
/pokebuilder history player <name> 任何玩家的购买历史 (需要权限)
配置
config/pokebuilder/config.conf 是一个 HOCON 文件。你可以手动编辑它并运行 /pokebuilder reload,或者使用管理员 GUI 并点击 保存到磁盘。该文件在首次启动时生成,带有合理的默认值。
值得注意的子部分:
economy — 货币 ID(留空 = 服务器主要货币)、显示名称覆盖、格式
prices — 每项操作的单独成本
features — 17 个开关
tiers — 基于权限的价格乘数
restrictions — 禁止传说 / 幻之宝可梦 / 究极异兽 / 悖论种 + 按物种禁止列表
security — 冷却时间、速率限制、创造模式 / 濒死状态开关
message-locale — "auto" 或特定区域设置如 "en_us" / "fr_fr"
审计日志位于 logs/pokebuilder-transactions.log。
依赖项
硬性依赖:
- Minecraft 1.21.1
- Fabric Loader ≥ 0.17.2
- Fabric API
- Cobblemon 1.7+
- Impactor (Fabric) 5.3+ — 提供经济后端
推荐安装(仅当你希望在宝可梦汇总屏幕上显示超级进化 / G-Max / 太晶化叠加层时需要;PokeBuilder 的购买流程无需它们即可工作,因为底层字段是原生的 Cobblemon 字段):
- Mega Showdown 1.7.3+
- Architectury API 13.0.8+ (Mega Showdown 的硬性依赖)
- Accessories 1.1.0+ (Mega Showdown 的硬性依赖)
- owo-lib 0.12.15+ (Accessories 的硬性依赖)
PokeBuilder 是 纯服务端 模组。玩家需要客户端安装 Cobblemon 和 Fabric API;他们不需要安装 PokeBuilder、Impactor、Mega Showdown、accessories、owo-lib 或 architectury 即可使用其任何功能。所有内容均通过标准库存数据包交付。
它故意不是
- 非客户端模组 — 仅在服务器端运行,无需安装客户端
- 非商店 — 不售卖宝可梦、道具或精灵球;仅修改你已拥有的宝可梦
- 非经济插件 — Impactor 是余额数据的唯一权威来源;PokeBuilder 不会铸造任何货币
- 非 PokéEditor 替代品 — 仅提供经过筛选的安全编辑子集。物种/等级/招式/携带道具/经验值等故意不在范围内,以防止玩家轻易 trivialize(使变得毫无价值)未通过努力获得的内容
目标用户
已经运行 Impactor 经济系统的 Cobblemon 服务器管理员,希望为玩家提供一种付费的自助方式来完成对战可用的宝可梦培养——无需编写自定义命令,无需授予 /op 权限,也无需依赖管理员手动在聊天中处理“50k 换 6IV”的请求。随着 1.3.0 版本加入 PC 访问功能和新版的生物特征编辑功能(昵称/亲密度/状态治疗),该模组现在实现了完整的自助“完善我的收藏”工作流程,且无需将宝可梦移出存储。
许可证: MIT
作者: souljagger
PokeBuilder
Server-side Cobblemon companion that turns Pokémon stat editing into a paid in-game feature — your players spend Impactor currency through a fully clickable GUI to polish IVs, lock in natures, swap abilities, change Tera types, raise Dynamax levels, rename their Pokémon, top up friendship, cure status conditions, and even edit Pokémon stored in their PC. No commands to memorize, no /op to hand out, no half-finished editing tools.
PokeBuilder 1.3.3 — for Minecraft 1.21.1 / Fabric. Requires Cobblemon 1.7+ and Impactor 5.3+. Mega Showdown is recommended for the Dynamax / G-Max / Tera display overlay.
What it does
Run /pb (or /pokebuilder, /pokebuild) to open the party screen — every slot renders the actual Cobblemon model of your Pokémon, not a generic icon. Click one to enter the editor and pay your way to the build you want:
Core stats:
- IVs — set any individual stat to 31 or 0, or max all six at once
- EVs — set any stat to 252 or 0, or wipe the spread entirely
- Nature — pick any of the 25 natures (priced flat per change)
- Ability — switch normal abilities or unlock the hidden ability (separate price + permission)
- Shiny — toggle the shiny flag on or off
- Gender — swap to the opposite gender when the species allows it
- Caught Ball — change which Poké Ball your Pokémon was captured in
Mega Showdown gimmicks:
- Dynamax Level — raise the level from 0 up to the server's Cobblemon-configured cap (price per level)
- G-Max Factor — grant or remove Gigantamax access
- Tera Type — re-type your Pokémon to any of the 19 types (18 elemental + Stellar)
Quality-of-life (new in 1.3.0):
- Nickname — chat-input prompt with length & color-code validation; type
reset to revert to the species name
- Friendship — stepper GUI (+10 / +50 / max / reset) for evolution gates and Return/Frustration
- Status Cure — one-click heal of poison / burn / paralysis / freeze / sleep
Every modification is a real Impactor withdraw() — there is no shadow wallet. Big purchases pop a confirmation screen above a configurable threshold so nobody one-clicks away their savings.
PC storage access (new in 1.3.0, opt-in)
Edit Pokémon stored in your PC without taking them out of the box. A new "Switch to PC" button on the party screen opens a paginated browser of your boxes — click any Pokémon to send it through the same editor flow. Defaults off; admins enable it with features.pc-access = true in config and the per-player pokebuilder.use.pc permission (defaults true once the feature is on, denyable per-group via LuckPerms for VIP-only access).
The same per-transaction safety net protects PC editing: if a Pokémon gets traded or moved between "click to edit" and "click to buy", the transaction aborts with an automatic refund.
Themed mod-item icons everywhere
PokeBuilder uses the actual items from Cobblemon and Mega Showdown for every menu — not vanilla placeholders. Some highlights:
- The party screen renders real Pokémon models via Cobblemon's
PokemonItem
- The IV editor uses hyper-training candies for each of the six stats
- The EV editor uses vitamins (HP Up, Protein, Iron, Calcium, Zinc, Carbos)
- The nature picker shows the matching nature mint for every entry
- The ability picker uses Ability Capsule / Ability Patch
- The ball picker shows the actual Cobblemon Poké Ball items
- The Dynamax level picker is a Dynamax Candy stack scaled to the level
- The G-Max toggle is a Dynamax Band + Max Mushroom
- The Tera type picker is the matching Mega Showdown Tera Shard
- The Nickname icon is a Name Tag, Friendship is a Poppy, Status Cure is a Honey Bottle
- The current-Pokémon header shows the caught ball for the species
Customization
Permission-based price tiers (new in 1.3.0) — multiplier per tier in config.conf:
tiers {
default = 1.0
vip = 0.80 # 20 % discount
mvp = 0.60
}
A player gets the first tier they hold pokebuilder.tier.<id> for, in declaration order. Tier resolution is per-transaction — LuckPerms grants/revokes take effect on the very next purchase. Audit log records both the sticker and the resolved price so VIP receipts aren't confusing.
i18n / language files (new in 1.3.0) — every UI string lives in assets/pokebuilder/lang/<locale>.json and can be overridden by dropping config/pokebuilder/lang/<locale>.json into the server's config dir. The message-locale config key picks the language ("auto" = JVM default with English fallback). Admin GUI message edits stack on top of the locale base and only the actual deltas get persisted to disk — your config.conf stays small.
In-game admin panel — every setting is clickable
Run /pokebuilder admin (default OP 4 or pokebuilder.admin.gui) to open the control panel. Every section is a clickable GUI, no chat-spam config:
- Prices — +/- steppers for every cost, shift-click for ×10 jumps
- Features — toggle individual purchases on or off; disabled features are hidden from
/pb and refused server-side. 17 toggles after 1.3.0 (every editor + every shortcut + 4 new ones for Nickname / Friendship / Status Cure / PC Access)
- Security — click cooldown, max modifications per minute, creative-mode toggle, fainted-Pokémon toggle
- Restrictions — block legendaries / mythicals / ultra beasts / paradox; chat-input managed blocked-species list
- Sounds — master toggle, volume, pitch
- Messages — left-click any message to rewrite it in chat with
& color codes; right-click to reset
- Save to Disk — atomic
tmp + rename write, glows when there are unsaved edits
- Reload from Disk — discards unsaved in-memory edits, re-reads the file; live-rebinds the Impactor economy so currency changes take effect without a restart
Edits go live immediately for all players but are only persisted when you click SAVE TO DISK (or run /pokebuilder save).
Built defensively
Because this mod lets players pay currency for irreversible game-state changes, the transaction layer is paranoid by design:
- Per-player locks — every modification runs inside a synchronized block keyed by player UUID, so two simultaneous clicks can't double-spend
- Atomic purchases — order is balance check → withdraw → mutate → audit. If the Cobblemon mutation throws, the currency is automatically refunded
- Balance-delta verification — every
withdraw / deposit checks the player's balance before and after, and logs a WARN if Impactor reports SUCCESS but the balance didn't actually change (another mod cancelling the event, a virtual account, a cached account, etc.). Catches the "everything looks like it works but currency isn't deducted" class of bug that's otherwise invisible.
- Pokémon identity check — if your target gets traded, released, or boxed mid-edit (whether in party or PC), the transaction aborts with a refund instead of editing a stale reference
- Click cooldown + per-minute rate limit — block rapid-click and macro exploits
- GUI slot interception — items shown in menus cannot be dragged, swapped, dropped, cloned, or extracted into your inventory
- Permission re-check on every click — demoting a player mid-session locks them out immediately
- Transaction receipts (new in 1.3.0) — every successful purchase gets a unique 8-character base36 ID written to the audit log. Players see them in
/pb history; admins reference them in support tickets.
- Atomic config writes — temp file + rename, so a crash mid-save can never corrupt the config
- Audit log — every transaction (player, Pokémon UUID, species, action, cost, balance before/after, success/failure, tier and sticker price if discounted) is appended to
logs/pokebuilder-transactions.log. Every admin GUI change records its old and new value
- Feature gating — disabled features are checked at the GUI layer, the submenu layer, AND the transaction layer — defense in depth, no single bypass
Permissions (Fabric Permissions API / LuckPerms)
| Node |
Default |
What it does |
pokebuilder.use |
true |
Open the GUI |
pokebuilder.modify.iv / .ev / .nature / .ability / .shiny / .gender / .ball |
true |
Per-feature edit access |
pokebuilder.modify.ability.hidden |
true |
Switch to a hidden ability |
pokebuilder.modify.dynamax / .gmax / .tera |
true |
Dynamax / G-Max / Tera modifications |
pokebuilder.modify.nickname / .friendship / .status_cure |
true |
New 1.3.0 features |
pokebuilder.use.pc |
true (once features.pc-access is on) |
Browse own PC via /pb |
pokebuilder.tier.<id> |
— |
Price-tier membership (e.g. .vip, .mvp) |
pokebuilder.bypass.cooldown |
false |
Ignore click cooldown |
pokebuilder.bypass.cost |
false |
Free modifications (admins testing) |
pokebuilder.admin.gui |
OP 4 |
Open the admin panel |
pokebuilder.admin.save |
OP 4 |
Save config to disk |
pokebuilder.admin.reload |
OP 3 |
Reload config from disk |
pokebuilder.admin.debug |
OP 4 |
Run /pokebuilder debug |
pokebuilder.admin.history |
OP 3 |
View any player's /pokebuilder history |
Bypass nodes default to nobody. Granting OP does not auto-grant bypass — use a permission plugin if you need it.
Commands
/pokebuilder Open the party selector
/pokebuild /pb Aliases
/pb history [page] Player's own purchase history with tx ids
/pokebuilder version Show installed version
/pokebuilder admin Open the admin panel (requires permission)
/pokebuilder save Persist live edits to disk (requires permission)
/pokebuilder reload Re-read config.conf + re-hook economy (requires permission)
/pokebuilder debug Dump live economy state for diagnostics (requires permission)
/pokebuilder history player <name> Any player's purchase history (requires permission)
Configuration
config/pokebuilder/config.conf is a HOCON file. Edit it by hand and run /pokebuilder reload, or use the admin GUI and click SAVE TO DISK. The file is generated on first launch with sensible defaults.
Notable subsections:
economy — currency-id (blank = server primary), display-name override, format
prices — every per-action cost
features — 17 on/off toggles
tiers — permission-based price multipliers
restrictions — block legendaries / mythicals / ultra beasts / paradox + per-species block list
security — cooldown, rate limit, creative / fainted toggles
message-locale — "auto" or a specific locale like "en_us" / "fr_fr"
Audit log lives at logs/pokebuilder-transactions.log.
Requirements
Hard dependencies:
- Minecraft 1.21.1
- Fabric Loader ≥ 0.17.2
- Fabric API
- Cobblemon 1.7+
- Impactor (Fabric) 5.3+ — provides the economy backend
Recommended (needed only if you want the Dynamax / G-Max / Tera display overlay on Pokémon summary screens; PokeBuilder's buy flows work without it because the underlying fields are native Cobblemon):
- Mega Showdown 1.7.3+
- Architectury API 13.0.8+ (hard dep of Mega Showdown)
- Accessories 1.1.0+ (hard dep of Mega Showdown)
- owo-lib 0.12.15+ (hard dep of Accessories)
PokeBuilder is server-side only. Players need Cobblemon and Fabric API on their client; they do NOT need PokeBuilder, Impactor, Mega Showdown, accessories, owo-lib, or architectury installed to use any of its features. Everything is delivered through standard inventory packets.
What it intentionally is not
- Not a client mod — runs server-side only, no client install required
- Not a shop — does not sell Pokémon, items, or Poké Balls; only modifies Pokémon you already own
- Not an economy plugin — Impactor is the only source of truth for balances; PokeBuilder mints nothing
- Not a PokéEditor replacement — exposes a curated subset of safe edits. Species / level / moves / held items / EXP / etc. are deliberately out of scope so players can't trivialize unearned content
Target audience
Cobblemon server owners who already run an Impactor economy and want to give their players a paid, self-service way to finalize competitively-viable Pokémon — without writing custom commands, without handing out /op, and without trusting moderators to manually honor "50k for a 6IV" requests in chat. With 1.3.0's PC access and the new bio-edit features (nickname / friendship / status cure), the mod now covers the full self-service "polish my collection" workflow without ever taking a Pokémon out of storage.
License: MIT
Author: souljagger
评论 0
登录后参与评分
还没有评论,来抢沙发吧