CNPC-Additions
🟠 Updated over a year ago⚠️ Install Order · 2 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
🖼️ Gallery (4 images)
🔍 Analysis
- 👍 0.5% endorsement rate
- 🏆 #279 of 326 forge mods in this game by downloads
📋 About This Mod
Here's the English translation for your mod description on CurseForge:
This mod adds new features to the CNPC mod and more.
### Features: - New scripting methods for NPCs. - Ability to open CNPC dialogues with a new interface. - Option to block the breaking and placing of blocks. - Messages above the player's hotbar: ": Message".
### Scripting:
- Method to send messages from NPCs within a 15-block radius:
- ```java
- eSay(String message, String color);
- ```
- Example:
- ```java
- eSay("Hello!", "E9967A");
- ```
- The color is in hex format, and if not specified, the default color is #C0C0C0.
- Method to send messages from NPCs to a specific player:
- ```java
- eSayTo(IPlayer player, String message, String color);
- ```
- Example:
- ```java
- eSayTo(event.player, "Hello " + event.player, "E9967A");
- ```
- Method to make NPCs glow:
- ```java
- eSetGlowing(boolean);
- ```
- `boolean` can be `true` or `false`.
- Method to send a message above the player's hotbar:
- ```java
- eSayBar - with the option to set an icon for the character;
- eSayBarI - without a character icon.
- ```
### Types of eSayBar: ```java eSayBar(IPlayer IPlayer, String message, String fakeName, String hexColor, String icon, int maxSymbolsFirstLine, int maxSymbolsOtherLines); eSayBar(IPlayer IPlayer, String message, String fakeName, String hexColor, String icon); eSayBar(IPlayer IPlayer, String message, String hexColor, String icon); eSayBar(IPlayer IPlayer, String message, String hexColor, String icon, int maxSymbolsFirstLine, int maxSymbolsOtherLines); ``` Example: ```java eSayBar(e.player, "Hello my friend", "Sigma228", "9370DB", "npc"); ```
Types of icons (icon): - `npc` - `non` - `invisible` - ResourceLocation — allows you to set a custom icon for the character. The icon file can be placed in the `.minecraft/customnpcs/assets/customnpcs/textures/icons/myicon.png` folder.
In-game: `"customnpcs:textures/icons/myicon.png"`.
### Types of eSayBarI (without character icon): ```java eSayBarI(IPlayer IPlayer, String message, String fakeName, String hexColor, int maxSymbolsFirstLine, int maxSymbolsOtherLines); eSayBarI(IPlayer IPlayer, String message, String fakeName, String hexColor); eSayBarI(IPlayer IPlayer, String message, String hexColor); eSayBarI(IPlayer IPlayer, String message, String hexColor, int maxSymbolsFirstLine, int maxSymbolsOtherLines); ```
These are the same methods as eSayBar but without a character icon.
### Commands:
- Open a dialogue from CNPC with a new interface:
- ```text
- /shine dialog show player id name
- ```
- Example:
- ```text
- /shine dialog show Dev 13 "MrBest"
- ```
- Opens a dialogue with ID 13 for player Dev under the name MrBest.
- Block breaking restriction:
- ```text
- /shine blockbreak block player boolean
- ```
- `false` — blocks breaking, `true` — allows it.
- Block placing restriction:
- ```text
- /shine installingBlocks player boolean
- ```
- `false` — blocks placing, `true` — allows it.
### Current mod features:
- [✔] New scripting methods.
- [✔] New dialogue interface.
- [✔] Messages above the hotbar.
- [✔] Block breaking and placing restrictions.
- [✘] Quest changes (menu).
- [✘] New ChatBubbles (messages above NPCs' heads).
📊 Mod Details
- Game
- Minecraft Mods
- Author
- Aha_Shine
- Version
- 1.20.1-1.5
- Downloads
- 4,327
- Endorsements
- 22
- Category
- forge
- Created
- 9/30/2024
- Updated
- 10/25/2024
- Game Versions
- 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5
- Tags
- game-mechanics, social, utility
🔧 How to Install Minecraft Mods Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Mods →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Mods versions does CNPC-Additions support?
The author lists 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6. Other versions may work but are untested by the author.
What is the latest version of CNPC-Additions?
Version 1.20.1-1.5, published 2024-10-25 with 4,327 downloads recorded at the source.
Keep browsing — more Minecraft Mods mods await



