Commit Graph
135 Commits
Author SHA1 Message Date
Luis C.M 235ddaa1ea Implemented interpolation options for player model animations. 2023-01-07 13:38:44 -06:00
Luis C.M d6ed069862 Merge branch 'dev' into player-anims
# Conflicts:
#	src/api
2023-01-07 13:15:45 -06:00
KAMKEEL 6e92f08851 Config Overhaul 2023-01-07 00:21:08 -05:00
Luis C.M 2e745fbda1 IPlayerModelData:
-Regrouped functions in the interface, a little easier to follow.
-Rotation & Offset setters now use floats as parameters instead of ints.
2023-01-06 14:28:15 -06:00
Luis C.M 27b80037bd Added total model rotation functionality to player model data. 2023-01-06 13:43:49 -06:00
Luis C.M ad689440aa Implemented complete model rotations. 2023-01-05 18:18:28 -06:00
Luis C.M 3bb1b4fcb0 Added general model rotation functions to PlayerModelData. 2023-01-05 17:58:32 -06:00
Luis C.M 51263a9f82 Added player rotations/pivots/animations, similar to NPC's. 2023-01-01 23:50:38 -06:00
Luis C.M 699b24e467 More fixes to global NPC scripts not executing on servers, and added more functions to IEntityLivingBase. 2022-12-24 01:46:43 -06:00
Luis C.M 8d52e9356c Fixed Global NPC script tabs not working on the server-side after being errored. 2022-12-23 20:45:04 -06:00
Luis C.M a895c8bd24 NpcAPI:
-Added millisToTime(long) and ticksToTime(long) functions to return time formatted strings from long values.

IPlayerQuestData:
-Added last completed time functions for repeating quests.

IQuest:
-Added repeat functions for repeating quests.

ServerCloneController:
-Fixed cloned NPCs having identical UUIDs.
2022-12-20 09:21:39 -06:00
Luis C.M 7a715ef308 NpcAPI:
Added functions for adding keywords to global script running
++ addGlobalObject(String,Object)
++ removeGlobalObject(String)
++ getEngineObjects()
2022-12-14 17:53:57 -06:00
Luis C.M 3152cf2379 ScriptController:
-Fixed engine test null pointer exception.
2022-12-14 01:55:32 -06:00
Luis C.M 68600d7d00 Added additional GraalJS flags 2022-11-27 23:56:38 -06:00
Luis C.M 8e6f5b10d1 Implemented GraalJS support. 2022-11-27 21:43:29 -06:00
Luis C.M ed0290217f Added config to optionally enable/disable the ECMA6 Javascript standard in scripts. 2022-11-25 21:33:43 -06:00
Luis C.M c5d6179b95 Updated nashorn to use ECMA6 2022-11-25 20:53:03 -06:00
Luis C.M 0414817673 Implemented event interfaces, made more events cancellable. 2022-11-24 14:36:09 -06:00
Luis C.M aa02e5dcc3 Fixed API interface errors, added casts for custom item script handlers in EventHooks, and added some event interfaces. 2022-11-23 23:59:01 -06:00
KAMKEEL be9ae94163 Start API Branch 2022-11-15 15:25:53 -05:00
KAMKEEL c264c7c9d0 Merge branch 'master' into dev 2022-11-15 00:10:32 -05:00
Pétrus Pradella 85a01a40d7 Remove missed debug message from PlayerDataConller.savePlayerData() 2022-11-11 15:21:58 -03:00
Pétrus Pradella 79e20b07db Properly save PlayerData on json only on 'PlayerEvent.SaveToFile' 2022-11-11 15:15:42 -03:00
KAMKEEL 5ff3a3a1ba Player Logging 2022-11-07 01:49:54 -05:00
Luis C.M 8d3cd3fd82 Revert "Merge remote-tracking branch 'origin/dev' into dev"
This reverts commit 66edbcea80, reversing
changes made to 3fd962289c.
2022-11-06 01:25:28 -06:00
Luis C.M 66edbcea80 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	src/main/java/noppes/npcs/scripted/NpcAPI.java
#	src/main/java/noppes/npcs/scripted/ScriptWorld.java
#	src/main/java/noppes/npcs/scripted/interfaces/AbstractNpcAPI.java
2022-11-06 01:00:47 -06:00
Luis C.M 3fd962289c NpcAPI:
-Added getPlayer() function
-Added getChunkLoadingNPCs function
-Added getCurrentPlayerCount, getMaxPlayers, and kickAllPlayers, isHardcore, getFile(path), and getServerOwner functions
2022-11-06 01:59:34 -05:00
KAMKEEL 6ae465c5d0 Revert "Added several more functions to pre-existing classes:"
This reverts commit e9a8f8cebc.
2022-11-06 00:10:04 -04:00
KAMKEEL 7692c1b628 More Readable Logs with CNPC Level 2022-11-05 21:30:06 -04:00
Luis C.M e9a8f8cebc Added several more functions to pre-existing classes:
-Spawner, Transport, Healer, Guard, Bard jobs received more functions.
-Added more functions to the transporter role.
-IRole: Added getNpc() function.
-IAnimal, IEntityLiving, and IEntityLivingBase received more functions from their MC counterparts.
-Nearly every function with that takes position/vector parameters now has an equivalent with IPos as a parameter instead.
2022-11-05 20:19:14 -05:00
KAMKEEL 37da3f6069 NPC Script Logging Config V 1.0
Added V 1.0 (CNPC+ Script Logging)
> Logs Activities for when CNPC+ Scripts are called
(Writes to CustomNPCs-latest.log)

Configuration Options Available in Config
2022-11-03 02:47:55 -04:00
KAMKEEL 29b716a25c Fix isEnabled 2022-11-02 14:00:03 -04:00
KAMKEEL e6dbfaa4f5 ScriptingEnabled Fix 2022-11-02 13:38:20 -04:00
Luis C.M 45bda8ffe1 NPC Natural Spawning:
-Further small fixes to natural spawning.
-Fixed "Skipping Entity with id " console spam.
-Entity entries can now be set to null.
-Fixed incorrect event bus logic.
2022-10-31 17:48:53 -05:00
Luis C.M a8d9285ce5 Very small fix to reading spawn data NBT. 2022-10-29 16:46:53 -05:00
KAMKEEL 5799167129 SkinOverlay Blend | Default 2022-08-25 03:46:49 -04:00
c0508383 41a6803e2e PlayerQuestData:
-Fixed concurrent modification error
2022-07-20 16:26:09 -05:00
c0508383 9fc408e598 Added a configurable expansion to scripts' length, adding 65535 more characters with every additional increase. 2022-07-12 11:58:54 -05:00
c0508383 5e0b1282f7 Faction:
-Removed unnecessary CustomNPCsException throw in addEnemyFaction.
2022-07-07 01:15:22 -05:00
c0508383 a3b5f5993e IWorld:
-Implemented spawnClone() with a boolean parameter to check entity protection from mods & plugins correctly (for real this time).

ICloneHandler:
-Implemented ignoreProtection boolean value for the spawn() function.
2022-07-06 01:29:43 -07:00
Luis C.M 256ba5c599 Removed ScriptFaction in place of IFaction. 2022-07-01 23:26:47 -05:00
Luis C.M e65088f796 INaturalSpawnsHandler:
Added a way to add and remove specific spawn data.
2022-06-29 14:51:09 -05:00
Luis C.M dd700c677b Natural Spawn Entries:
-Added GUI options for new natural spawn attributes.
-Added 4 more entity options
-Fixed natural spawning not working at night
2022-06-29 14:21:55 -05:00
Luis C.M 55b21de050 Added drowning types:
In Air,
In Water,
or
Never
to CNPCs.
2022-06-29 12:21:30 -05:00
Luis C.M 4094f3e851 Added 4 different spawning options, and spawning height max and mins to natural spawn entries. 2022-06-29 03:36:52 -05:00
Luis C.M 7d0b124422 Npc API:
-Added natural spawn controller support
2022-06-29 00:06:38 -05:00
Luis C.M 1ca5a306fc IDBCPlayer:
-Items can be set in vanity or armor slots, based on a "vanity" boolean value in setItem().

ISkinOverlay:
-Renamed setScale to setTextureScale.
2022-06-19 15:18:13 -05:00
Luis C.M b45cad77dd Added CustomGuiEvent.SlotClickEvent. 2022-06-18 12:52:23 -05:00
KAMKEEL 938ff3e496 Fix Mob Cloner Recipe 2022-06-15 19:48:43 -04:00
Luis C.M 4cae85e50b Added configurable dialog image limit to IDialog.addImage(id,image) 2022-06-14 23:28:55 -05:00