Commit Graph

191 Commits

Author SHA1 Message Date
fullwall 74a861142b Add durations to settings, allow falling distance to be set for all mobs 2023-03-12 22:30: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 61fd34df0b Reformat pom 2023-02-23 00:06:13 +08:00
fullwall 8fa5a965e1 Fix logic error in allay reset, code cleanup 2023-02-23 00:00:47 +08:00
fullwall d35dcb8ae7 Trial teleporting players directly without calling PlayerTeleportEvent 2023-02-21 22:56:50 +08:00
fullwall bd50e42c52 Get rid of a second stack overflow 2023-02-14 00:46:30 +08:00
fullwall c66a5b53ad Fix fluid push stack overflow 2023-02-14 00:19:45 +08:00
fullwall 871c7c0259 More code refactoring 2023-02-13 22:20:13 +08:00
fullwall ad218261ff Code size reduction 2023-02-13 21:25:26 +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 7244834e34 Make NPCs more likely to swim, add speed setting in water 2023-02-08 22:07:15 +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 72c136e97a Add /npc aggressive 2023-01-16 23:54:21 +08:00
fullwall a0439a3272 Mirror result slot 2023-01-06 23:25:57 +08:00
fullwall aee977ebb3 Fix some 1.8.8 shop compat 2023-01-06 00:41:47 +08:00
fullwall 98c5c48c23 Implement new API 2023-01-05 20:05:15 +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 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 4590193673 Upgrade skull saving 2022-12-27 13:07:12 +08:00
fullwall 27603afdf4 Add /npc mirror for skins 2022-12-25 01:37:54 +08:00
fullwall 4c958b5e7c Fix custom name components in 1.8.8-1.12.2, 2022-12-22 23:17:28 +08:00
fullwall 8d202aa988 Implement metadata 2022-12-19 00:36:53 +08:00
fullwall e90096eebe Add /npc spellcast 2022-12-18 23:21:08 +08:00
fullwall 3ee17c6dae Fix /npc camel and /npc llama 2022-12-18 22:18:12 +08:00
fullwall c6e7ce65f5 Add /npc camel, minor code cleanup 2022-12-18 13:25:08 +08:00
fullwall 46b18eee49 Run cleanup 2022-12-10 13:31:11 +08:00
fullwall 139158cb48 Initial update to 1.19.3 2022-12-08 23:21:09 +08:00
fullwall d34fd48533 Make lookAtFunction use packets for yaw, tweak API further 2022-12-06 23:50:11 +08:00
fullwall ede598cc9b Fix some issues with ShopTrait item costs/results and add NBT filter API. Adjust /npc item to be more flexible. 2022-12-03 18:21:46 +08:00
fullwall 8a65d4a5a0 Add way to set custom name directly 2022-11-30 06:13:55 +08:00
fullwall b8050199f1 Add per-player rotation API 2022-11-28 23:10:50 +08:00
fullwall ed9230c680 Implement knockback event 2022-11-13 23:33:18 +08:00
fullwall 85dd78e582 Fix NMS#sleep 2022-11-12 19:50:05 +08:00
fullwall f8cdbc4515 Add SleepTrait 2022-10-25 17:07:11 +08:00
fullwall f6d7ebe809 Add STOP_ELYTRA PlayerAnimation, add a right click option to /npc shop to avoid having to make a command for it 2022-10-22 10:42:44 +08:00
fullwall fc83c28085 Consolidate sit implementation, persist sit location to avoid sinking over successive restarts 2022-10-04 23:42:23 +08:00
md5nake d29781e0b5
Make pathfinder max visited nodes configurable (#2902) 2022-10-02 02:44:06 +08:00
fullwall 7b3c0c8126 Add /npc allay 2022-07-28 06:36:51 +08:00
fullwall ddf5660c66 Stop anvil guis from giving out input items 2022-07-26 15:08:13 +08:00
fullwall b6eb42e07f Fix updateInventoryTitle on containers 2022-07-22 00:57:36 +08:00
fullwall 3fcf8931f7 Consolidate versioned trait commands 2022-07-10 01:53:34 +08:00
fullwall 98c2d3492a Add /npc piglin --dancing 2022-07-07 23:34:15 +08:00
fullwall bf532728d1 Set destination even for non NPCs 2022-06-22 12:35:01 +08:00
fullwall a64ad43d11 Fix block breaker on old versions not picking up the entity held item 2022-06-17 20:36:05 +08:00
fullwall 4768a4f76a Add SitTrait for NPCs 2022-06-14 21:38:15 +08:00
fullwall 2e2a83779e Implement anvil GUI 2022-06-12 19:49:21 +08:00
fullwall 21f3a7755a Implement new API 2022-06-12 01:37:38 +08:00
fullwall 2341ccfbf9 Update references 2022-04-28 13:47:50 +08:00
fullwall 8694603c85 Refactor PlayerControllerLook into RotationTrait 2022-04-25 02:22:39 +08:00
fullwall 324d94a21f Rename /npc pose --save to /npc pose --mirror and add /npc pose --save to save the current NPC pose 2022-04-24 19:22:55 +08:00
fullwall 53d7a23d9f Renamings from NMS 2022-04-19 15:37:35 +08:00
fullwall b0f1290b58 Change EAT_FOOD to LEAVE_BED in 1.18/17 2022-04-13 11:14:37 +08:00
fullwall 897c511757 Fix dragon yaw and make it same as rider yaw. Refactor out redundant calculation of yaw 2022-02-20 22:34:29 +08:00
fullwall 97d4c3b117 Make nonliving entities look at entities too, fix /npc lookclose with shulkers spamming noises 2022-02-20 21:56:51 +08:00
fullwall ecbab327ed Fix some bugs 2022-02-20 10:04:09 +08:00
fullwall be019c0e83 Refactor blockbreaker, add /npc blockbreak 2022-02-20 01:05:38 +08:00
fullwall b12ae2ee66 Improve underwater pathfinding, cleanup 2022-02-19 18:26:37 +08:00
fullwall b26dfb3d0f Implement new PathStrategy method, improve swimming navigation 2022-02-19 16:36:31 +08:00
fullwall bef0f16f3b Cancel current move destination when navigator paused 2022-02-02 21:40:19 +08:00
fullwall 77aa63f1ff Trial minor optimisation 2022-01-22 21:08:55 +08:00
fullwall 19ee0e2c19 Use metadata and track players if on the playerlist which should make mobs spawn nearby 2021-12-28 20:13:25 +08:00
fullwall 3da3cc2ae8 Fix /npc villager --profession error message, more sane boundingbox calculation 2021-11-27 12:19:19 +08:00
fullwall f9bb877e85 Explicit types for 1.14 and 1.15 2021-09-20 21:16:40 +08:00
fullwall db825cce72 Add rough impl of SneakTrait 2021-09-20 20:59:54 +08:00
Alex "mcmonkey" Goodwin 4dc123bb4b
Refactor scoreboard handling to use instant scoreboard application at spawn (#2544)
Full description in PR https://github.com/CitizensDev/Citizens2/pull/2544
2021-05-08 02:02:17 +08:00
fullwall c24ce1e1ed Use NMS methods for isSolid checking 2021-04-30 10:31:25 +08:00
fullwall 688ba3af8e Avoid errors with missing metadata 2021-01-20 17:55:34 +08:00
fullwall fe7f6e373f Add /npc polarbear -r and restore target and goal selectors 2020-12-17 13:13:23 +08:00
fullwall 556c58a7f6 Only jump with head height
distance of above
2020-12-16 01:16:04 +08:00
fullwall 8c1b51da98 Look more often even if target hasn't moved much 2020-09-16 21:58:15 +08:00
fullwall 7450c4db45 Use new getOrAddTrait methodf 2020-09-14 17:57:58 +08:00
fullwall 934f94e137 Add setting for max minecraft pathfinder fall distance 2020-09-05 15:13:34 +08:00
fullwall c4e4d2f300 Add tablist remove delay setting 2020-08-28 22:55:07 +08:00
fullwall d9762be13b Use head height for block breaker 2020-08-08 23:08:08 +08:00
fullwall d333c98823 Refactor getHeight for NMS 2020-07-06 08:42:46 +08:00
fullwall 9d2cad098a Implement new bounding box checker for pathfinding 2020-06-30 20:39:40 +08:00
fullwall c9564c4be2 Implement enderman methods 2020-06-27 15:41:47 +08:00
fullwall 1505ccfeca Extra NPE check 2020-06-27 15:17:29 +08:00
fullwall 04519d868b Initial 1.16 commit 2020-06-25 17:24:32 +08:00
fullwall c5bcfdc8cd Reformat 2020-06-12 20:02:48 +08:00
fullwall df2c7689fe Fix 1.14 2020-05-20 16:29:43 +08:00
fullwall 3a27dd79bf Fix compile error 2020-05-16 20:25:02 +08:00
fullwall e7368747c7 Rework packet sending to avoid replacing the entity tracker entry 2020-05-16 19:13:19 +08:00
fullwall 241810eedc Delay remove packet one tick 2020-05-12 23:50:54 +08:00
fullwall 0b922011bd Rework tablist for recent versions 2020-05-12 23:12:39 +08:00
fullwall 5e2a7efb9e Revert view distance tracking code 2020-05-12 22:33:54 +08:00
fullwall a044eed988 Attempted fix for /npc tphere - make NPCs tracked over a longer range than previously 2020-05-12 19:43:52 +08:00
fullwall 3cf8c7c256 Fix bug with /npc snowman /npc pufferfish and make /npc ocelot more descriptive 2020-05-07 16:29:45 +08:00
Alex "mcmonkey" Goodwin 981ade8974
patch the majority of potential scoreboard packet errors (#2128) 2020-05-01 01:39:07 +08:00
Alex "mcmonkey" Goodwin 0e31ffb9f8
Implement packet-based scoreboard team enforcement (#2127)
* Implement packet-based scoreboard team enforcement

This should fix incompatibility with scoreboard plugins that break the main scoreboard

* impl to 1.8-1.12, move event logic, fix Setting usage

* pull setting if to outside of foreach loop

* fix return vs continue, minor opti as requested
2020-04-30 20:51:10 +08:00
fullwall 8109a90440 Fix saving of body vs head yaw 2020-04-30 19:11:56 +08:00
fullwall 32429f140d Run clientside player ticking at a different time 2020-04-29 20:56:39 +08:00
fullwall a269bf1ccc Revert entity looking changes for now 2020-04-26 21:28:51 +08:00
fullwall fe8eb4e85d Change how npc looking works 2020-04-25 16:57:31 +08:00
fullwall 655bdf0001 Change how NPC looking works so that body yaw matches head yaw after a tick 2020-04-21 22:24:13 +08:00
fullwall 14ebf26935 Try to avoid water more 2020-04-08 23:59:49 +08:00