promotional bannermobile promotional banner

CustomNPC+

CustomNPC+ is an expansion from the original CustomNPCs to backport features from newer versions while also adding features of its own.
Back to Files

CustomNPC+ v1.7

File nameCustomNPC-Plus-1.7.jar
Uploader
KAMKEELKAMKEEL
Uploaded
Nov 27, 2022
Downloads
119.9K
Size
12.2 MB
Mod Loaders
Forge
File ID
4119952
Type
R
Release
Supported game versions
  • 1.7.10

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:customnpc-plus-480951:4119952")

Learn more about Curse Maven

What's new

CustomNPC+ 1.7

The next version of CNPC+ is finally out! It features a bunch of fixes, improvements, and quality-of-life changes!

 

CNPC+ Changes

 

Flying Improvements

  • Finally! I am happy to announce that FLYING has BEEN **EXTREMELY** improved! The AI is not only intelligent but resource efficient! So do not be afraid to SPAM flying NPCs! As always, if you find bugs please report them!

 

Saving PlayerData
*(please backup, just in case)*

  • Improvements have been MADE to Saving *(and will not result in the crazy compression fiasco we had)*. It has reduced the amount of PlayerData calls and pushed them to a separate Thread to reduce SERVER LAG and improve PERFORMANCE for Large PlayerData files! Thanks to @EverNife

 

CNPC+ Logging

  • I have decided to implement a clean logging system for servers to use! There are 2 Formats for Logging! *(must be enabled in config)*
    ---ALL LOGS are printed to the **CustomNPCs Log** files. And if on a SERVER, WILL ONLY print to **SERVER CUSTOMNPCs LOG FILEs**

 

Examples ----
- Player Logging

[21:51:50][CNPC][SCRIPTER] Kam OPEN NPC Asher (-46, 39, -1103) [World]
[21:51:50][CNPC][SCRIPTER] Kam SAVED NPC Asher (-46, 39, -1103) [World]
[21:59:20][CNPC][WAND] Kam OPEN NPC Asher (-46.5, 39.0, -1103.5) [World]
[21:59:21][CNPC][WAND] Kam CLOSE NPC Asher (-46, 39, -1103) [World]


- Script Logging

[TICK] NPC Bob (World) (-8301, 90, -7848)
[INTERACT] NPC Joe (World) (-8301, 90, -5423) | Objects: [EntityPlayer, Kam]
[DAMAGED] NPC Bill (DIM-1) (-1304, 90, 3021) | Objects: [EntityPlayer, Kam]

 

Fixes

  • Fixed ForgeGradle not downloading in `build.gradle`
  • Fixed Height off the Ground for Flying
  • Fixed Unused Wing Textures not in selector
  • Fix `ScriptingEnabled` not actually disabling scripts
  • Fixed Null Tile Entities Crash
  • Various Crashes

 

API

  • There is NOW an official **CNPC+ API** This API can be hooked onto by other mods and plugins that you all wish to develop! We will continue to update this API and add even more diverse functionality to it than the original!

    <https://github.com/KAMKEEL/CustomNPC-Plus-API&gt;

 

API Fixes

  • All functions that take double values for positions now have functions that take IPos objects as well.
  • IBlock, IPos, IEntity, and IWorld now have readalbe toString functions.
  • NpcAPI: Added getAllInBox(IPos,IPos) function, returns all IPos objects inside the box created by the two positions.
  • Added getPlayer() function
  • Added getChunkLoadingNPCs function
  • Added getCurrentPlayerCount, getMaxPlayers, kickAllPlayers, isHardcore, getFile(path), and getServerOwner functions added
  • IPos: Added crossProduct(IPos), divide(scalar), and to/FromLong functions.
  • IBlock: Added setPosition functions
  • Spawner, Transport, Healer, Guard, Bard jobs and transporter role received more functions.
  • IAnimal, IEntityLiving, and IEntityLivingBase received more functions from their MC counterparts.
Type
Name
Game Versions
Mod Loaders
Size
Downloads
Uploaded