NpcTexture
A two-part system that shows Citizens NPC dialogue in a Pokémon-style text box and makes the NPC walk up to you, on a Minecraft 1.21.1 hybrid
截图
介绍
A two-part system that shows Citizens NPC dialogue in a Pokémon-style text box and makes the NPC walk up to you, on a Minecraft 1.21.1 hybrid (Mohist/Arclight)
server running Cobblemon.
Part 1 — Client mod (npc-dialog-box, Fabric)
Installed in the client’s mods/ folder. It’s purely visual.
- Listens to incoming chat/system messages using Fabric’s message events.
- Matches a configurable regex pattern against each line. The default matches your server’s NPC speech format | : (e.g. ᴅᴏc | Toh: Hello!) and also the rank-less form Name: text, while ignoring normal player chat (which uses the » separator) and plugin broadcasts like [PokeHunt] ….
- When a line matches, it hides it from chat and opens a Pokémon-style box at the bottom of the screen, drawing the original KantoNPCs textures (dialog_box.png, arrow_down.png).
- Typewriter effect: text appears character-by-character.
- Auto-pagination: long text is split into pages of ~2 lines that fit the box; a bouncing arrow shows when there’s more. Click / Space / Enter advances; the last click closes it.
- Consecutive lines from the same NPC merge into extra pages of the same box.
- Config file config/npcdialogbox.json: pattern, charsPerTick (typing speed), scale, wrapWidth, linesPerPage, debug.
- Test command: /npcdialogtest opens the box directly.
Part 2 — Server plugin (npc-approach-plugin, Bukkit/Citizens)
Installed in the server’s plugins/ folder. It controls NPC behavior (the client can’t move server entities).
- Detects the nearest player within a radius, makes the Citizens NPC walk up to them, and when it arrives sends that player the dialogue line (in the [rank] | Name: text format the client mod reads).
- When the player leaves, the NPC walks back to its home spot (teleports back as a fallback), restoring its original facing — mirroring KantoNPCs’ behavior.
- Per-NPC setup in-game: select with /npc select, then /npcapproach set , plus add, enable/disable, radius, stop, cooldown, speed, info, clear, reload (with tab-complete).
- Global defaults in config.yml (radius 8, stop 2, cooldown 16s, speed 1.0 — matched to KantoNPCs).
常见问题
NpcTexture 支持哪些 Minecraft 版本?
NpcTexture 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
NpcTexture 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
MarcoErCarrozza 的其他作品
查看全部 →
Cobblemon:CRZMovesPokemon
这个模组通过从宝可梦中心Wiki(意大利宝可梦百科)获取准确的招式数据,为Cobblemon 1.7修复并扩展了宝可梦的招式学习表。
CobblemonOptimizer
CobbleOptimizer is a server-side Fabric mod that reduces lag caused by Cobblemon's Pokemon entities.
Cobbleboost
CobbleBoost is a client-side Fabric mod for Minecraft 1.21.1 that optimizes performance when playing with Cobblemon 1.7.
Cobblecasino
CobbleCasino is a feature-rich Minecraft Fabric mod for 1.21.1 that adds a fully functional casino experience to your Cobblemon server.
评论
登录后评论和评分