Home›Java›Mods›CNPCExtended
CNPCExtended
ModsJava

CNPCExtended

Java mod listed for Minecraft 1.20–1.21. Download on the author's site.

by AsianDoesMC · on CurseForge

Cnpc and Mcef integration that lets you display HTML browsers to players, this mod also adds client side queries like getting the players…

⬇ Download on CurseForge

CNPCExtended — Supercharge Your CustomNPCs

The missing toolkit for CustomNPCs. HTML browser GUIs, client-side queries, global script management, NPC data preloading, and a full server-to-client bridge -- all in one mod.

Minecraft 1.20.1 - Forge 47+ - Requires CustomNPCs Unofficial + MCEF


What Is This?

CNPCExtended adds everything CustomNPCs doesn't have out of the box. Query player settings from the server, open full HTML interfaces powered by an embedded Chromium browser, auto-deploy scripts and NPC data across all your worlds, and bridge your CNPC scripts with the client side -- no separate client mod needed.

This isn't just a GUI mod. It's a complete extension framework for CNPC.


See It In Action

 

 

 


Features

HTML GUI System

Client Bridge Queries

Read player client settings from the server -- no client mods needed beyond MCEF:

Global Scripts and NPC Data (NEW in v1.1)

Pre-configure every new world automatically:


Quick Example

NPC Script (server-side):

function interact(e) {
    var cnpcext = e.API.getIWorld(0).getTempdata().get("cnpcext")
    cnpcext.openHtmlGui(e, "shop.html", 0, 0, {
        shopName: "Adventurer's Shop",
        items: [{name: "Sword", price: 100}, {name: "Shield", price: 50}]
    })
}

function htmlGuiEvent(e) {
    if (e.eventName === "buy") {
        e.player.giveItem(e.data.get("itemId"), 1)
        e.bridge.sendToBrowser(e.player.getMCEntity(), "purchased", {success: true})
    }
}

Documentation

Full Documentation and API Reference

Covers installation, quick start guide, complete API reference, item overlays, client queries, event flow diagrams, and copy-paste examples.


Requirements

Mod Side Purpose
CustomNPCs Unofficial Server Script engine + NPC system
MCEF Client Embedded Chromium browser
CNPCExtended Both This mod -- bridges scripts with HTML

Security


Built for modpack creators, RPG server owners, and anyone who wants their NPCs to do more.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

CNPCExtended is a free Minecraft Java mod. Compatible with Minecraft 1.20.1, 1.21.1. Downloaded 7,882 times (via CurseForge). Download it and open it directly in the game.

Explore more