Commit Graph

1117 Commits

Author SHA1 Message Date
fullwall
deb9976a9b Inline eventlistenchunk 2023-05-07 20:09:37 +08:00
fullwall
147a07f413 Simplify wander 2023-05-06 23:10:29 +08:00
fullwall
35af40a9c5 Implement wander changes 2023-05-06 23:06:33 +08:00
fullwall
232f5247f1 Rework /npc follow toggling 2023-05-06 00:45:57 +08:00
fullwall
3bd406a742 PermissionAction should be global operations 2023-05-05 00:08:43 +08:00
fullwall
d9a4a3e5e2 Make /npc rotate use arm swing to fix rotation 2023-05-04 01:51:48 +08:00
fullwall
71ab3d8dd2 Don't set body yaw if headonly true 2023-05-02 02:28:23 +08:00
fullwall
3fe2d189f4 Fix skinlayers trait, add /npc lookclose --linkedbody 2023-05-02 00:50:50 +08:00
fullwall
64bec7eb40 Add exception logging for reflection when debugging 2023-05-02 00:10:07 +08:00
fullwall
8b1550dc43 Adjust RotationTrait head yaw cone 2023-05-01 00:18:57 +08:00
fullwall
dd440ed653 Remove guava Function usage, track script extensions 2023-04-30 01:13:53 +08:00
fullwall
406bea7b53 Trial removing arm swing in favour of manual position packets 2023-04-30 00:18:24 +08:00
fullwall
6a8300980d Fix an issue with /npc metadata and enum keys, set lookclose target to null if not enabled 2023-04-27 18:55:42 +08:00
fullwall
7db27a3eee Add stuck action setting 2023-04-26 00:15:26 +08:00
fullwall
19b917e905 Add unstable API for hologramtrait 2023-04-25 23:56:50 +08:00
fullwall
7a345b2962 Convert /npc pose to flag yaw / pitch arguments 2023-04-25 23:29:22 +08:00
fullwall
17c3329b19 Allow extra arg for /npc pose 2023-04-25 23:12:55 +08:00
fullwall
e2e4b2a0c1 Implement basic stat tracking for traits 2023-04-25 23:11:20 +08:00
fullwall
c1ae7aa0d3 Add /npc pose [yaw] [pitch] --save [name] 2023-04-25 22:23:41 +08:00
fullwall
283a2a3381 Change EntityDamageEvent listenerpriority to lowest 2023-04-24 21:27:15 +08:00
fullwall
85c91780c9 Adjust hologram name NPC implementation 2023-04-24 17:55:04 +08:00
fullwall
ed4f43a5aa Implement player placeholders in hologram names 2023-04-23 23:46:20 +08:00
fullwall
798ec1c3aa Fix wrong registry name creation for /npc create 2023-04-23 16:38:12 +08:00
fullwall
b53955ebb2 Remove VocalChord/SpeechFactory 2023-04-20 23:42:48 +08:00
fullwall
fe0abfdcb5 Add /npc panda -e 2023-04-20 01:35:44 +08:00
fullwall
71ecc7086b Implement playerfilter api 2023-04-17 01:47:32 +08:00
fullwall
5bb73b3a95 Partially restore uuid version reset code 2023-04-16 02:21:30 +08:00
fullwall
f895169e92 Remove debug code 2023-04-11 01:02:24 +08:00
fullwall
fcb0c7d953 Tweak how equipment updates are detected 2023-04-11 00:10:45 +08:00
fullwall
155ffe522e Add missing NMSBridge default impl 2023-04-08 14:43:03 +08:00
fullwall
ef34ed2837 Fix a scoreboard issue when renaming NPCs 2023-04-08 14:24:16 +08:00
fullwall
4f9506ce7a Add /npc painting 2023-04-08 02:35:55 +08:00
fullwall
163499f219 Add shift click max buy/sell to the shop trait 2023-04-06 02:35:08 +08:00
fullwall
d6ffa085a0 Add guided waypoint msg 2023-04-03 22:40:04 +08:00
fullwall
a82e39fbbc Fix guided waypoint provider 2023-04-03 01:32:14 +08:00
fullwall
e0a66ff67b Fix /npc follow <NPC ID> 2023-03-31 00:11:29 +08:00
fullwall
f88c2771a8 Use armor stands for holograms 2023-03-30 23:13:38 +08:00
fullwall
efff2ff9ab Add /npc enderdragon --destroywalls 2023-03-29 20:01:07 +08:00
fullwall
e8a5a1ceb4 Fix mineskin API calls and hologram name height 2023-03-29 18:32:47 +08:00
fullwall
f29780874d Add /npc skin --file 2023-03-29 01:28:08 +08:00
fullwall
c171e3f29b Sync ender dragon parts 2023-03-29 00:30:56 +08:00
fullwall
84c581dd09 Allow on the fly /npc trackingrange 2023-03-27 02:52:56 +08:00
fullwall
bafc6df000 Delay protocollib loading 2023-03-26 13:28:23 +08:00
fullwall
82030a6534 Implement pitchable look control 2023-03-25 23:22:46 +08:00
fullwall
4a55753409 Improve triggers editor. 2023-03-25 21:49:30 +08:00
fullwall
bdc2264fc6 Enable text display by default 2023-03-20 17:28:17 +08:00
fullwall
f269019d56 Don't use text displays for holograms 2023-03-19 16:14:53 +08:00
fullwall
48a30c56ff Allow /npc follow to work with entities rather than just players 2023-03-18 23:28:33 +08:00
fullwall
14e90b11b3 Fix hologram trait on older minecraft version 2023-03-18 02:00:56 +08:00
fullwall
aef7d42327 Add new remapping 2023-03-18 01:36:53 +08:00
fullwall
46633409c3 Adjust command costs so that they are only charged after checking that the command can be used, adjust itemcost algorithm 2023-03-16 22:01:04 +08:00
fullwall
b35c815629 Fix no such method error on severely outdated minecraft versions, add InteractionController 2023-03-15 18:44:30 +08:00
fullwall
299f781308 Initial 1.19.4 update. Of note: sniffers are known to not be working 2023-03-15 03:37:05 +08:00
fullwall
e6f8a47f36 Add config comments, remove subplugins, remove NPCEnderTeleportEvent 2023-03-15 01:41:24 +08:00
fullwall
6a19f19aa9 Allow /npc select to work with blocks 2023-03-14 20:55:33 +08:00
fullwall
6d03d3ce62 Add PAPI nearest npc id placeholder 2023-03-14 20:40:02 +08:00
fullwall
2d8ea825a2 Fix time conversion code 2023-03-14 14:31:07 +08:00
fullwall
b9f10a2e0c Fix Java 8 compat 2023-03-13 21:46:52 +08:00
fullwall
f8c8b8af6e One more... 2023-03-13 02:44:21 +08:00
fullwall
4053795588 Fix a few more invalid ticks 2023-03-13 02:41:43 +08:00
fullwall
bd8d5a7f74 Fix NumberFormatException in latest builds 2023-03-13 02:26:13 +08:00
fullwall
af519a3af4 Remove debug 2023-03-13 02:11:48 +08:00
fullwall
74a861142b Add durations to settings, allow falling distance to be set for all mobs 2023-03-12 22:30:19 +08:00
fullwall
a29e7cb8e7 Fix compile error 2023-03-08 01:14:19 +08:00
fullwall
b02a3d8766 Implement player filtering, replace all entity trackers, compatibility update for async entity tracking 2023-03-07 23:58:03 +08:00
fullwall
248e9de2e6 Fix NPCs constantly trying to swim, relicense to LGPL 2023-03-06 00:28:44 +08:00
fullwall
cb6f8be7fc Add /npc packet 2023-03-02 23:08:03 +08:00
fullwall
c22916bb70 Use new method 2023-03-01 23:05:25 +08:00
fullwall
ef9220b5fd When-player-within rather than when_player_within 2023-03-01 00:21:08 +08:00
fullwall
fc66909ae0 isNavigating() considers paused status 2023-02-27 22:05:19 +08:00
fullwall
8235ed160f PICKUP_ITEMS now defaults to false rather than isProtected 2023-02-26 15:51:59 +08:00
fullwall
960e1036b4 Minor formatting change 2023-02-23 23:58:23 +08:00
fullwall
63f1013d46 Try fix controllable / sit trait issues 2023-02-23 23:52:27 +08:00
fullwall
5087ffb4bf Must be spawned for /npc equip 2023-02-22 23:17:16 +08:00
fullwall
d76841c319 Try harder to pause wander goal during editor 2023-02-22 01:03:41 +08:00
fullwall
585df3f696 Add simple /npc pausepathfinding command 2023-02-21 23:59:33 +08:00
fullwall
e140883287 Fix minor typo 2023-02-21 23:06:11 +08:00
fullwall
d35dcb8ae7 Trial teleporting players directly without calling PlayerTeleportEvent 2023-02-21 22:56:50 +08:00
fullwall
679873c7d4 Added a name update delay 2023-02-20 23:34:12 +08:00
fullwall
420005c6aa Add isPushable implementations for 1.17-1.19 2023-02-19 00:55:16 +08:00
fullwall
6f754d2594 Add basic /wp remove command 2023-02-18 15:24:09 +08:00
fullwall
c31624fba3 Ensure boss bar progress between 0 and 1 2023-02-18 01:23:42 +08:00
fullwall
27991c94f0 Fix commandaction grant not respecting op/server 2023-02-16 00:27:04 +08:00
fullwall
a09a54d4da Use teleportcause 2023-02-15 07:19:20 +08:00
fullwall
22e1821f24 Cancel item despawns for item NPCs 2023-02-15 06:02:00 +08:00
fullwall
dc384e42f8 Add some debug to shops saving 2023-02-15 05:36:51 +08:00
fullwall
e9c989bc55 Add /npc panda -n -r for rolling and sneezing 2023-02-14 23:26:21 +08:00
fullwall
9bf3194710 Add per-line margin to hologram lines for items 2023-02-14 23:19:45 +08:00
fullwall
f64e28f2e8 Simplify boundingbox api 2023-02-14 00:30:03 +08:00
fullwall
871c7c0259 More code refactoring 2023-02-13 22:20:13 +08:00
fullwall
3ae6c29493 Fix npcselector getBlockData error 2023-02-13 20:34:00 +08:00
fullwall
8f43ca70e5 Fix bug in item parsing for holograms, allow arbitrary bounding boxes for BoundingBoxTrait, attempt to unify common code across NMS implementations 2023-02-13 20:32:20 +08:00
fullwall
b0a2c51883 Fix /npc mirror with uuid change 2023-02-11 22:52:53 +08:00
fullwall
142931a86d Simplify skinupdatetracker 2023-02-11 10:47:31 +08:00
fullwall
dddabd13b8 Actually not an off by one 2023-02-10 23:44:54 +08:00
fullwall
0f6842991b Fix off by one command nUsed 2023-02-10 23:42:57 +08:00
fullwall
41ca21a131 Check world first in skin trackers 2023-02-10 21:13:32 +08:00
fullwall
fe4434de91 Don't clear uuid version 2023-02-09 21:09:53 +08:00
fullwall
7244834e34 Make NPCs more likely to swim, add speed setting in water 2023-02-08 22:07:15 +08:00
fullwall
bbfbc767dc Reorder npc update() 2023-02-08 21:06:10 +08:00
fullwall
8ba9d2ceb6 Reorder update() method 2023-02-06 23:28:00 +08:00
fullwall
504a38317c Add --distance argument 2023-02-06 00:43:42 +08:00
fullwall
a61befbdcc Add basic /npc home command 2023-02-06 00:40:01 +08:00
fullwall
ba04e4b05f Fix phantom bugs 2023-02-05 15:25:29 +08:00
fullwall
2a64529bb1 Further tweaks to using item animations 2023-02-03 00:24:02 +08:00
fullwall
f759c81763 Check NPC spawned 2023-02-02 18:48:27 +08:00
fullwall
b21af8dd6e Trial delaying scoreboard removal on death 2023-02-01 23:15:28 +08:00
fullwall
3b00f7718b Refactoring, add debug for shop trait onRemove(), add at argument for PlayerAnimation waypoint trigger 2023-01-31 22:50:25 +08:00
fullwall
c258ad1b9a Send entity teleport packet instead of look only for packet sessions, remove from tablist 2023-01-29 22:15:32 +08:00
fullwall
e828782be6 Snowman performance change 2023-01-27 01:54:13 +08:00
fullwall
52955febf1 Add null check for A* finder, clone itemstacks in drop trait 2023-01-19 18:11:42 +08:00
fullwall
72c136e97a Add /npc aggressive 2023-01-16 23:54:21 +08:00
fullwall
367cbd330f Replace NPC names in Placeholders rather than Chat trait 2023-01-16 23:39:59 +08:00
fullwall
8ad3a14b7c Check papi/plib enabled 2023-01-07 23:08:37 +08:00
fullwall
eed9170519 Add op/server toggles to shop 2023-01-06 23:34:47 +08:00
fullwall
12f507f89c Try not hooking into viaversion for protocol version 2023-01-06 07:45:13 +08:00
fullwall
aee977ebb3 Fix some 1.8.8 shop compat 2023-01-06 00:41:47 +08:00
fullwall
ffac34f734 Fix player ticking 2023-01-05 22:51:42 +08:00
fullwall
98c5c48c23 Implement new API 2023-01-05 20:05:15 +08:00
fullwall
d9e7ec4ca3 More 1.8.8 compatibility 2023-01-04 23:17:45 +08:00
fullwall
ffef42efb7 Packet NPCs now properly spawn, fix NPE in new pathfinder, fix 1.8.8 compatibility with /npc shop 2023-01-04 23:02:33 +08:00
fullwall
e21681fa26 Add /npc hitbox, WIP packet NPCs 2023-01-03 20:55:27 +08:00
fullwall
6165f4cb12 Null checks in scoreboard trait 2023-01-02 13:20:29 +08:00
fullwall
aa59e15002 Fix legacy skull texture loading 2023-01-02 12:54:19 +08:00
fullwall
fda3c9d5c9 Make default text cooldown range higher 2023-01-02 11:57:27 +08:00
fullwall
433121979c Add a random text delay default setting of 20-40ticks 2023-01-02 08:37:27 +08:00
fullwall
402095c946 Don't reload locationlookup 2023-01-02 00:49:39 +08:00
fullwall
b38a66dbfb Add /npc lookclose --headonly 2023-01-02 00:24:11 +08:00
fullwall
83040ed525 Add basic cost/result placeholders. 2023-01-01 23:28:21 +08:00
fullwall
fa5cdb9211 Cancel location lookup taskg 2023-01-01 21:33:25 +08:00
fullwall
36feecdc2b Fix sneak animation 2023-01-01 20:44:17 +08:00
fullwall
c706b17848 Refresh locationLookup on /citizens reload 2023-01-01 20:01:44 +08:00
fullwall
9103823ebb Fix per-player lookclose 2023-01-01 18:43:41 +08:00
fullwall
b4280103c1 Simplify PlayerUpdateTask 2023-01-01 18:15:10 +08:00
fullwall
b8e79b20cf Implement API, check for invalid Player references, remove Text min/max-cooldown settings and fix Text delay/right click cancellations, make SitTrait work with npc#teleport 2023-01-01 15:26:35 +08:00
fullwall
a669a8a256 Workaround protocollib not supported listed boolean, fix dolphins moving while on ground, add /npc bossbar --range, add /npc create --nameplate --temporaryticks 2022-12-29 23:26:02 +08:00
fullwall
cdb75dbc96 Add warning for npc select within commands 2022-12-27 19:57:48 +08:00
fullwall
027e4d27a9 Simplify command block logic 2022-12-27 19:24:42 +08:00
fullwall
ef49f0762e Set all connected command block sender selected 2022-12-27 19:20:18 +08:00
fullwall
b8a608ec5c Add /npc lookclose --targetnpcs 2022-12-27 14:22:27 +08:00
fullwall
4590193673 Upgrade skull saving 2022-12-27 13:07:12 +08:00
fullwall
550c72a234 getHand() removal 2022-12-26 20:07:16 +08:00
fullwall
36671daeae Check parsed name length 2022-12-26 00:20:21 +08:00
fullwall
27603afdf4 Add /npc mirror for skins 2022-12-25 01:37:54 +08:00
fullwall
886d83eeb4 Use new API 2022-12-24 21:43:08 +08:00
fullwall
8c10fe8b18 Use per player metadata API 2022-12-24 19:53:59 +08:00
fullwall
0e2dd23096 Use names consistently 2022-12-24 13:36:24 +08:00
fullwall
4c958b5e7c Fix custom name components in 1.8.8-1.12.2, 2022-12-22 23:17:28 +08:00
fullwall
45d7a072a1 Catch IllegalArgumentException from ProtocolLib 2022-12-21 18:43:54 +08:00
fullwall
1a102e7d1c Clear previousGlowingCOlor on despawn 2022-12-21 06:47:04 +08:00