bigguy345 e13c6762f3 Added Scheduled Tasks system for NPC scripting.
Allows for scripting the scheduling of runnable methods in sequence within the NPC's AI

An example sequence of tasks:
1. Dashes towards player (might take 3-5 seconds, doesn't matter, task durations are dynamic so it can take as long as it needs).
2. Punches player away
3. Waits 10 ticks - Fires a ki blast
4. Teleports behind player
5. Knocks player out
2025-03-03 23:59:48 +02:00
2023-05-13 17:26:34 -04:00
2022-11-25 00:53:22 -05:00

CustomNPC-Plus-API

External API for scripting and to allow mods/plugins to hook into CustomNPC+

How to use in a Mod

Basically just download the api code and include it in your mod.

In your mod you can check if CustomNPC+ is installed with NpcAPI.IsAvailable()

To use the events, register your events with NpcAPI.Instance().events().register(youreventclass)

Extra

JavaDocs: https://kamkeel.github.io/CustomNPC-Plus/

Discord Badge

Download CustomNPC+

S
Description
Pull mirror of github.com/KAMKEEL/CustomNPC-Plus-API - nested submodule src/api of CustomNPC-Plus (branch dev).
Readme MIT
1,003 KiB
0 Stars 2 Watchers 0 Forks
Languages
Java 100%