Commit Graph

99 Commits

Author SHA1 Message Date
fullwall 2c8b1864d8 Null check enderdragon bossbar again, set blank hologram names to hover 2022-03-23 20:57:18 +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 927d27e09c List profession/rabbit type values using the pretty formatter 2022-01-27 10:48:52 +08:00
fullwall 7683516d62 Avoid setting NPC.COLLIDABLE_METADATA on Player NPCs 2022-01-20 17:10:52 +08:00
fullwall 1ee92a07ea Implement cross-world teleporting for NPCs 2022-01-16 14:05:23 +08:00
fullwall 3da3cc2ae8 Fix /npc villager --profession error message, more sane boundingbox calculation 2021-11-27 12:19:19 +08:00
fullwall caff1e9ba4 As a safety measure limit maxY <0.6D 2021-11-21 22:14:01 +08:00
fullwall 61c6863d5f Trial collision box checking for pathfinding to assist with half blocks - needs testing especially with doors 2021-11-21 22:12:17 +08:00
fullwall 9c8d26e73b Use new waterlogged methods 2021-06-25 17:01:18 +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 352ec56f5e Add more fallback material 2021-02-10 22:02:14 +08:00
fullwall e6eac4e675 Fix push events with listeners 2021-01-17 07:05:35 +08:00
fullwall 97fae0a7e4 Add UUID to /npc 2021-01-04 00:18:34 +08:00
fullwall c366b5f79e Add missing Util changes 2021-01-03 00:14:00 +08:00
fullwall 7743763d3c Refactor common code, add missing condition 2020-11-14 18:41:21 +08:00
fullwall 002b2b61ff Also cancel push event if not collidable 2020-07-06 21:48:57 +08:00
fullwall c2467b7a25 Adjust horse pathfinding 2020-05-12 16:48:21 +08:00
Alex "mcmonkey" Goodwin 30f2dee4d7
Reduce potential for errors with packet teams (#2138)
* Reduce potential for errors with packet teams

Move scoreboard removal out of NMS to event method, and make more unique names

* remove unneeded isCancelled check
2020-05-05 18:20:56 +08:00
Alex "mcmonkey" Goodwin 2c24671ae3
simplify scoreboard patch to be 100% packet based (#2129)
* simplify scoreboard patch to be 100% packet based

which fixes edge case client errors

* fix edge cases of respawning and multinpc boards
2020-05-01 17:49:25 +08:00
fullwall a2208f0d32 Minor style changes 2020-05-01 01:47:07 +08:00
Alex "mcmonkey" Goodwin 981ade8974
patch the majority of potential scoreboard packet errors (#2128) 2020-05-01 01:39:07 +08:00
fullwall a535cea8bc Pretty print location in /npc moveto 2020-03-31 21:44:04 +08:00
fullwall efc41dc492 Add cooldown option to /npc command 2020-02-22 12:57:03 +08:00
fullwall fca5dc21e0 Make bee always flyable 2020-02-21 17:40:27 +08:00
fullwall b9a08d609a Reformat project 2020-02-14 22:48:40 +08:00
fullwall 529855bd6d Deregister event handlers in deregisterAll(), empty talk item is now equivalent to * talk item 2020-01-16 17:17:58 +09:00
fullwall 0e747889e7 Add wander delays 2019-05-26 15:40:54 +08:00
fullwall 04daf1c053 Allow /npc horse -c | -b to be used on chestedhorse entities 2019-05-24 18:32:51 +08:00
fullwall b02bcbe38b Temp fix for chunk unloading problem 2019-04-29 15:58:07 +08:00
mcmonkey 043b9e87e5
NPC name coloration quick-patch
this section of code could really stand a total rewrite. Fixes issues with longer-than-16-character coloration, doesn't fix trouble with longer-than-32 if there is any (based on Discord reports)
2019-04-13 07:08:07 -07:00
Alex "mcmonkey" Goodwin 7c348bff13 Update quick-select and talk items to material names (#1710)
also add back-support for if the original IDs are used (there's no good generic legacy ID upverter, but recognizing the old default numbers should suffice for 99% of servers). Should be cross-compatible with all supported minecraft versions, but is *required* in particular for 1.13
2019-03-09 14:19:31 +08:00
Alex "mcmonkey" Goodwin 9e0b4e0ab9 Improve handling of NPC names, fixes #1640 (#1642)
* Improve handling of NPC names, fixes #1640

Moves the logic to a Util method (instead of duplicated in each module), and adds the "prefixColors" portions (replacing just a static 'RESET' code).
If colors and effects are combined, using only the most recent effect is sufficient (eg reapplying bold) as that should produce effectively no change while still having a color code stuck into the name as is needed to break NPCs looking like real players internally.

* Additional NPC name improvement: fix color code splliting

a name consisting of a color code followed by 15 letters would get split in the middle of the color code, rather than around it. This fixes that.
2018-12-20 04:44:06 +08:00
fullwall a545c318a7 Use 1.8.8 API 2018-10-14 21:50:19 +08:00
fullwall 0ecd480790 Stop pathfinding on pause 2018-10-08 23:25:40 +08:00
fullwall ecfc4f451c Preliminary 1.13 update 2018-07-22 14:27:08 +08:00
fullwall 9adf755b8b Add some 1.13 traits, fix an issues with backwards API compatibility 2018-07-20 21:57:45 +08:00
fullwall dfb5b90b38 Preliminary 1.13 update - some known issues 2018-07-19 20:18:47 +08:00
fullwall 4c99dc0e7c Initial 1.8.8 support 2018-04-07 16:02:35 +08:00
fullwall 01f00960d7 Change /npc wolf to be toggle-based instead of clearing the command and make /npc ocelot throw an exception instead of doing nothing silently 2018-03-09 17:28:20 +08:00
fullwall f33804609e Add -l flag to /npc spawn and add /npc metadata
Add /npc remove --owner
2018-01-01 14:41:10 +08:00
fullwall 8145751136 Bump version, first pass at 1.12 2017-06-02 17:36:25 +08:00
fullwall cf5beab4c5 Add immediate parameter to Util.faceLocation and fix a bug in it 2016-12-16 17:03:11 +08:00
fullwall bc9374d30c Remove villager force head yaw setting 2016-11-26 23:42:23 +08:00
fullwall 002d7b71d2 Fix entities looking at feet instead of eyes 2016-11-26 22:38:14 +08:00
fullwall b695afdcd5 Fix mob NPC not using pitch 2016-11-22 16:04:48 +08:00
fullwall dccfadb846 Fixes for 1.11 2016-11-17 17:00:16 +08:00
fullwall c0a3f0b1de Implement new API 2016-08-08 17:26:27 +08:00
fullwall 449a7bd46a Convert to multi module 2016-08-03 19:19:24 +08:00