About CNPC: Dangerous Script Extension
From ModrinthThis mod adds some dangerous but map-appropriate script methods to CNPC.
Description
_This mod provides system-level window manipulation features. Improper or malicious use may negatively affect user experience. Use responsibly._
This is a script extension mod based on CustomNPCs Unofficial (1.20.1), designed to provide system-level operations that would otherwise require extensive use of Java.type. While this mod does not involve any form of malware, some features are potentially risky. It is strongly recommended that you only grant scripting permissions in CustomNPCs Unofficial to people you trust.
Script Methods
moveWindow(String, int, player) First parameter: direction (left, right, up, down) Second parameter: pixel offset Moves the player's game window in the specified direction.
shakeWindow(float, int, int, player) First parameter: frequency Second parameter: duration (seconds) Third parameter: maximum offset (pixels) Applies a shaking effect to the player's game window.
hideShowWindow(int, int, player) First parameter: interval (milliseconds) Second parameter: duration (seconds) Rapidly hides and shows the game window, creating a flashing effect.
resizeWindow(int, int, player) Parameters: width and height Resizes the game window.
crashGame(player) Immediately crashes the game. _(Warning: When used on a server, this may also crash the server.)_
Current Status
If you are creating a Minecraft map with “fourth wall breaking” effects similar to Doki Doki Literature Club!, this mod may be a good fit for your project.
The original purpose of this mod is to prevent the misuse of importing system classes via CNPC to create external shell scripts, which may pose security risks. This mod does not execute or rely on shell operations. All provided functions can be used directly within the native CNPC scripting environment after installation.
Highlights
From source dataGame versions
Supports 6 Minecraft versions, the newest being 1.20.6.
Loaders
Runs on Forge.
Footprint
Rated a light load on a server.
CNPC: Dangerous Script Extension on Nxeon
From our catalogue- One-click install
- Supported on Nxeon Minecraft servers. We download it from Modrinth, place it, and restart the server.
- Server side
- Required on the server
- Server type needed
- Forge
- Server load
- light
- Smallest plan we suggest
- Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
- Latest build
- 1.0.5, released 2026-05-23
Game versions by loader
| Loader | Game versions | Newest |
|---|---|---|
| Forge | 1.20.1 to 1.20.6 (6 versions) | 1.20.6 |
From 5 recorded builds of CNPC: Dangerous Script Extension.
Recent builds
| Build | Released | Game versions | Loaders |
|---|---|---|---|
| 1.0.5 | 2026-05-23 | 1.20.1 | Forge |
| 1.0.4 | 2026-04-25 | 1.20.1 | Forge |
| 1.0.3 alpha | 2026-04-03 | 1.20.1 to 1.20.6 (6 versions) | Forge |
| 1.0.1 | 2026-04-03 | 1.20.1 | Forge |
| 1.0.0 alpha | 2026-03-29 | 1.20.1 | Forge |
Dependencies
- Required: modrinth project vFAmwl6B (modrinth, not in our catalogue)
Declared by the newest build that lists any. Required ones are installed with it on one-click installs.
Run CNPC: Dangerous Script Extension on a Minecraft server
Pick a server or deploy a new one above; it is installed in one click.
What kind of mod it is
From the catalogTechnology & automation
Machines, power, logistics and automation.
Runs on your server
From source side supportModrinth lists CNPC: Dangerous Script Extension as required on the server. Check its Modrinth page to see whether players need it too.
Compatibility
- Game
- Minecraft
- Loaders
- Forge
- Runs on
- Serverrequired on the server
- Game versions
- 1.20.6 and 5 earlier
Verified at the source
- ✓ModrinthOfficial listing, checked 2026-10-02Open ↗
- ✓Authorxiaobiniaox, as published on Modrinth
- ✓LicenseLicenseRef-All-Rights-ReservedFree











