Commit Graph
152 Commits
Author SHA1 Message Date
Luis C.M 864ce6befc NullPointerException fix when an NPC misses a projectile. 2023-03-29 22:13:58 -05:00
KAMKEEL a2af8ca0b2 Apply isKilled() to update AI Tasks if NPC dies 2023-03-22 11:52:33 -04:00
Luis C.M b04a35efc4 Added armwear functions 2023-03-17 04:34:14 -05:00
Luis C.M 58aaaa158a IModelData:
-Added hidePart() comment
2023-03-17 03:04:26 -05:00
Luis C.M 6913cadc79 IModelData:
-Implemented hidePart() abd hidden() functions
2023-03-17 02:59:33 -05:00
Luis C.M 9a77e2f146 Made setRotation() function in ModelRotatePart clamp float values. 2023-03-17 02:38:15 -05:00
Luis C.M f0b33cf913 Moved model scale parts into a single ModelScale class, similar to ModelRotate.
Added NPC model data interfaces to the API.
2023-03-17 02:36:28 -05:00
Luis C.M fe780d69ee Added target lost event. Added all new NPC events to the old 1.7.10 script system. 2023-03-16 04:56:33 -05:00
Luis C.M 29935a1c6d Implemented local NPC event scripts. 2023-03-16 04:27:19 -05:00
Luis C.M 46d668f44c Added IProjectile and its events. 2023-03-16 02:51:40 -05:00
Luis C.M 19e14983aa IWorld:
-Fixed isPlaceCancelled and isBreakCancelled functions
2023-03-15 23:10:03 -05:00
KAMKEEL 7db4d2649b Typo correction: "companion" 2023-03-02 16:10:22 -05:00
KAMKEEL bda76bafe6 Optimize Imports 2023-01-12 21:33:06 -05:00
Luis C.M 8905f5f42e Moved NPC puppet data to display data.
Improved mixin functionality, offsets and rotations always reset if the puppet "job" (not a job anymore, always in display) is disabled.
2023-01-11 19:12:53 -06:00
KAMKEEL 6e92f08851 Config Overhaul 2023-01-07 00:21:08 -05:00
Luis C.M d2611385de ITimers:
-Added timerIds() function, listing all active timer IDs
2023-01-03 19:30:15 -06:00
KAMKEEL be9ae94163 Start API Branch 2022-11-15 15:25:53 -05:00
KAMKEEL 0500cefa2a Limg Swing 2022-11-15 00:48:35 -05:00
KAMKEEL 244bde8586 Fix Indents 2022-11-15 00:48:31 -05:00
KAMKEEL ffbc261a32 Update EntityNPCFlying.java 2022-11-15 00:31:58 -05:00
KAMKEEL d520c98578 Merge branch 'louis-pathing' into dev 2022-11-15 00:23:11 -05:00
Luis C.M 69afa29e9c EntityNPCFlying:
-Fixed fly height limit
2022-11-14 20:22:50 -06:00
Luis C.M 51b412a0bf Pathing improvements.
EntityAIReturn:
-Fixed NPC still creating a new path when close to the NPC's home.

EntityNPCInterface:
-Fixed flying NPCs having their home Y position dip into the ground.
-NPCs update their move helpers and navigators when they can't breathe.

FlyingMoveHelper:
-Reduced calls to Math.atan2 (very expensive operation to be unnecessarily calling every tick)

FlyPathFinder:
-Water opens an OPEN path point iff the NPC can swim, not iff the NPC's drowning type != 1.

NPCPath:
-Made PathPoint occurrences use NPCPathPoint

PathNavigateFlying:
-A slightly larger area of blocks with respect to width is checked om rayTraceBlocks(), and the function now also correctly checks for liquids.
2022-11-13 23:49:49 -06:00
Luis C.M d86f571df6 PathNavigateFlying:
-Fixed pathfinder running into lava & water when it shouldn't.
FlyPathFinder:
-Simplified nodeTypeToOffset switch statement, removed unused function, and made air always return an open path node type.
EntityNPCInterface:
-Fixed "In Air" drowning type. Breathes underwater now.
EntityNPCFlying:
-Fixed NPCs still using flight movement when not being able to breathe.
ICustomNpc:
-Added canBreathe() function
2022-11-12 15:53:20 -06:00
Luis C.M 7425e935f1 EntityNPCInterface:
-Fixed flying NPCs not returning to mid-air start y positions.
2022-11-11 16:57:06 -06:00
Luis C.M 2c1a5d330a Improved pathfinding, and made NPCs able to traverse through lava/fire sources and water if immune to fire or able to breathe in water respectively. 2022-11-10 17:38:37 -06:00
KAMKEEL 5a1be375a0 Refactor Fly Code 2022-11-10 12:34:05 -05:00
Luis C.M 081c47b0aa Path optimizations 2022-11-10 03:26:32 -06:00
Luis C.M 83db114a0d Decreased max safe point tries for flight pathing, and added limit to pathfinding while loop. 2022-11-10 01:18:25 -06:00
Luis C.M 8e023eacfd Fixed flight pathing, merged with some 1.7.10 code. 2022-11-10 00:31:14 -06:00
KAMKEEL cc39e62bd4 Fix Reset Flying NPC to Spawn POINT 2022-11-07 21:23:46 -05:00
Luis C.M 219d0f1802 Fixed strange flight behavior in flying NPCs with sizes below 5. 2022-11-07 13:32:31 -06:00
Luis C.M a1eb8ff91b Fixed odd NPC bobbing and NPCs with fly height limits not being able to path 2022-11-07 13:01:57 -06:00
Luis C.M 267bc8b239 Flying NPCs no longer hover slightly above the ground 2022-11-07 12:24:33 -06:00
KAMKEEL 6c20ff2d14 Fix Fly Remote Reset 2022-11-07 01:40:11 -05:00
Luis C.M 9c82e60a6e EntityNPCFlying:
-Re-implemented flying gravity (woops)
2022-11-05 04:10:00 -05:00
Luis C.M 4bad48352c NPCs no longer constantly pathfind when set to return to their home, and already there.
Flying NPCs:
-Pathfinding has a cooldown to decrease the amount of times they create a new path.
-Fly height limit implemented using getTopSolidOrLiquidBlock instead of iterating through blocks below the NPC.
2022-11-04 23:56:09 -05:00
KAMKEEL b749ba1dec Add Override to EntityNPCInterface 2022-08-26 15:50:58 -04:00
c0508383 5cbbecf751 Fixed NPCs ignoring knockback resistance when attacked by players that are sprinting or have enchanted items. 2022-08-16 12:30:58 -05:00
c0508383 2819c76d0a ICustomNpc:
-Fix for setRetaliateType
2022-07-27 18:47:20 -05:00
c0508383 87818a3dbe EntityNPCInterface & EntityAIReturn:
-Fixed follower role
2022-07-20 13:33:21 -05:00
c0508383 84958cfd02 DataTimers:
-Prevented concurrent modification error when removing a ticking timer.
2022-07-06 15:28:25 -05:00
Luis C.M 8e0b5d042c Fixed null error when sending skin overlay data to update players' clients. 2022-07-05 14:18:40 -05:00
Luis C.M 34dd42f0db Removed redundant loop variables and casts. 2022-07-04 13:13:08 -05:00
Luis C.M 948fc4f497 Some timer functions now throw an exception when the timer they're trying to access does not exist. 2022-07-04 13:05:43 -05:00
Luis C.M 91ac09d8d9 EntityNPCInterface:
-Fixed looping error in setAir() and updateAITasks()
2022-06-29 14:36:17 -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 9794ab80d1 Fix for NPC flight on cloned NPCs. 2022-06-29 03:48:00 -05:00
Luis C.M 58932ffe55 Fixes to scripted item rendering.
IItemCustom:
-Removed unnecessary setters.
2022-06-28 04:39:50 -05:00
KAMKEEL eb3dd66871 Merge DEV 2022-06-15 02:00:11 -04:00