Commit Graph

793 Commits

Author SHA1 Message Date
fullwall
0f156caf6a Make sure that players are removed from the playerlist every so often 2013-07-16 23:29:11 +08:00
fullwall
705c894c7c Update version incompatible version to be more clear 2013-07-15 19:58:30 +08:00
fullwall
99c32d932f Implement /npc respawn command 2013-07-14 17:28:35 +08:00
fullwall
e1e05c6728 Print the root cause of any exceptions while updating NPCs 2013-07-14 16:38:06 +08:00
fullwall
e21d6daf48 Remove Util#parseLocation 2013-07-14 13:47:57 +08:00
fullwall
ff50cd761d Locations are mutable, fix toggle path altering the waypoints 2013-07-12 21:09:45 +08:00
fullwall
2d973e7575 Add PlayerAnimation#CRIT and MAGIC_CRIT 2013-07-12 20:32:10 +08:00
fullwall
870825d212 Add /npc horse, /npc ocelot, make /npc wolf persist 2013-07-11 12:29:46 +08:00
fullwall
26d79436d7 Work around traits removing themselves or adding traits during onSpawn iteration 2013-07-10 17:35:20 +08:00
fullwall
d0d2f0fc1f Set player position before and after 2013-07-10 00:14:38 +08:00
fullwall
fd51c577ce Remove leash if leashable is false in entities 2013-07-10 00:08:19 +08:00
fullwall
c7057656a3 Add leashable command 2013-07-09 22:01:00 +08:00
fullwall
9b8bef597d Add /npc copier command 2013-07-09 18:07:37 +08:00
fullwall
54eb4e31da Allow 50,000 iterations of A* 2013-07-09 15:21:23 +08:00
fullwall
3e1a15e347 Catch throwable 2013-07-09 12:36:29 +08:00
fullwall
7f6251b709 Don't fail to spawn if a trait has an exception when onSpawn() is called 2013-07-09 12:17:57 +08:00
fullwall
e370fedd3c 1.6.2 2013-07-09 11:32:55 +08:00
fullwall
bfe891495a Fix speed modifier for players 2013-07-07 15:57:21 +08:00
fullwall
af40da3c0e Respect plugin setting of useNewPathfinder better 2013-07-07 13:39:49 +08:00
fullwall
3c08d3c5b6 Fix mistranslated field 2013-07-06 12:04:11 +08:00
fullwall
65bb8f202a Implement new parameter, default USE_NEW_PATHFINDER to true 2013-07-06 12:02:17 +08:00
fullwall
01ede533f8 Fix default pathfinding range and updating pathfinding range 2013-07-05 15:44:18 +08:00
fullwall
a381c3e12d Test 2013-07-05 13:59:13 +08:00
fullwall
c98162c20d Change navigation back to MC navigation and fix duplicate NPCs clientside 2013-07-05 13:46:39 +08:00
fullwall
1ebbe6fe64 Fix server crash 2013-07-03 18:34:53 +08:00
fullwall
6e5f77be62 Fix player line of sight checking and make the A* targeting more robust (10 retries before cancelling target) 2013-07-03 18:29:57 +08:00
fullwall
350a63f0b8 Validate target NPC in /npc tp 2013-07-03 18:05:18 +08:00
fullwall
676d2658dd New way to move air controllable NPCs - hold space to ascend, right click air to descend 2013-07-03 17:51:44 +08:00
fullwall
ea85682d67 Fix entity speeds, targeting 2013-07-03 17:24:00 +08:00
fullwall
fe1956a5fa Test for wolv 2013-07-03 16:44:33 +08:00
fullwall
5b1a73f4d8 Fix target in navigation 2013-07-03 16:38:08 +08:00
fullwall
a064a28aab More cleanup, fix mistranslated field breaking head yaw for players 2013-07-03 14:21:30 +08:00
fullwall
9c4b0f41d2 Clean up jump implementation and remove left click to jump 2013-07-03 14:08:13 +08:00
fullwall
b6b160e99b Ground controllable NPCs can now jump using spacebar 2013-07-03 13:50:34 +08:00
fullwall
fde461489a Fix controllable NPCs and add -m flag to instamount 2013-07-03 12:36:52 +08:00
fullwall
c6e9cfa58a Fix Navigation for non-new AI NPCs - thanks kumpelblase2 2013-07-03 11:38:27 +08:00
fullwall
df97053e91 Preliminary update to MC 1.6.1: NOTE THAT PLAYER PATHFINDING DOES NOT WORK FULLY YET 2013-07-03 11:31:52 +08:00
fullwall
73ec77eaa0 Call new NPCDataStore method 2013-06-29 23:47:46 +08:00
fullwall
f123b2f44e Remove /tc alias 2013-06-29 23:32:36 +08:00
fullwall
59996b44af Fix Sheared trait 2013-06-28 17:39:58 +08:00
fullwall
8d7d8a7261 Fix bug with /npc playerlist, add some mob-specific methods 2013-06-08 18:43:19 +08:00
fullwall
c9f51bca26 Add more waypoint manipulation flags 2013-06-01 16:37:14 +08:00
fullwall
34c61dcc07 Implement NPC#getStoredLocation 2013-06-01 16:11:55 +08:00
fullwall
a47e05728a Extract attack range to a setting 2013-05-18 13:19:33 +08:00
fullwall
005ed48216 Add setting for new boat controls for controllable NPCs. Fixes CITIZENS-556 2013-05-16 12:04:21 +08:00
fullwall
b0519f05b4 Allow /npc spawn to use the selected NPC 2013-05-15 12:08:54 +08:00
fullwall
96c8f0d86a Add debug for navigation, make sure that destination is in range before calling waypoint triggers 2013-05-15 11:58:09 +08:00
fullwall
9797d4cdeb Add some arguments to the /npc path command allowing for pausing and immediate waypoint placing 2013-05-15 11:45:56 +08:00
fullwall
0e4a85bc4a Fix /npc wolf collar parsing 2013-05-08 21:08:12 +08:00
fullwall
684d1e0ff0 Whoops. MC 1.5.2 should be working now 2013-05-03 12:35:31 +08:00
fullwall
77fa6f56d8 Update NMS.java 2013-05-03 12:30:39 +08:00
fullwall
9f953a81ed Update to MC 1.4.2 2013-05-03 12:25:24 +08:00
fullwall
7b1005a1a7 Fix /npc gamemode 2013-04-28 21:31:53 +08:00
fullwall
de74b5c848 Update AI for Giants 2013-04-22 11:25:58 +08:00
fullwall
d5c4ae337d NPC limit is now inclusive rather than exclusive 2013-04-18 22:40:11 +08:00
fullwall
cfeabdff0d Check for both types of NPCCreateEvent 2013-04-18 22:03:27 +08:00
fullwall
26fee2eccc Add citizens.npc.createall permission for PEX users 2013-04-17 11:41:51 +08:00
fullwall
cfefa87081 Changes to world unloading 2013-04-14 18:23:21 +08:00
fullwall
1a80036bd5 Fixed debug output 2013-04-14 14:55:09 +08:00
fullwall
623430451f Controllable NPCs now have correct yaw 2013-04-13 15:49:17 +08:00
fullwall
e75c167da3 Implement new type API 2013-04-12 23:56:18 +08:00
fullwall
c7d75687c4 Use XORShiftRNG directly 2013-04-12 20:12:03 +08:00
fullwall
a38516e27a Possible fix pt. 2 2013-04-12 18:31:45 +08:00
fullwall
44ce564609 Possible fix for Vec3D error 2013-04-12 17:57:15 +08:00
fullwall
569c4a4c51 Remove behaviours and /script command 2013-04-01 20:04:40 +08:00
fullwall
32f745a7d0 Implement new setTarget 2013-03-30 20:47:10 +08:00
fullwall
14b0387c04 Compile fix 2013-03-26 22:08:38 +08:00
fullwall
a3231176bf MC 1.5.1 2013-03-21 12:32:54 +08:00
fullwall
eb5006b74b MC 1.5.1 2013-03-21 12:27:29 +08:00
fullwall
578839b5da Fix bats 2013-03-18 18:52:45 +08:00
fullwall
f55d5e845a Merge branch 'master' of https://github.com/CitizensDev/Citizens2 2013-03-17 22:41:18 +08:00
fullwall
7a030885e8 BlockBreaker is now a Goal/Behavior 2013-03-17 22:40:37 +08:00
fullwall
11cc5d83d2 citizens.npc.* now grants citizens.npc.create.* 2013-03-17 14:12:59 +08:00
fullwall
94c16c4efc Allow non-players to have anchors and poses 2013-03-17 11:28:04 +08:00
fullwall
5a74a02f33 Head yaw method update 2013-03-16 16:13:35 +08:00
fullwall
41b4004a37 Rename /npc nameplate to /npc name (may change later) 2013-03-16 15:17:42 +08:00
fullwall
76b2bc3864 add /npc nameplate command 2013-03-16 15:06:04 +08:00
fullwall
482eb05766 Misc. fixes 2013-03-16 13:28:26 +08:00
fullwall
d8e7c79c89 Mob NPCs have names 2013-03-16 13:10:10 +08:00
fullwall
6a7744859b Misc. translation fixes 2013-03-16 12:43:33 +08:00
agentkid20@gmail.com
dba652bb96 Updated reflection. 2013-03-15 23:39:04 -04:00
agentkid20@gmail.com
630f97074c Attempt fix for bad CB version number. 2013-03-15 23:17:50 -04:00
agentkid20@gmail.com
2f734ce598 Update for Minecraft 1.5. Untested. 2013-03-15 23:05:45 -04:00
fullwall
131453f775 Fix CITIZENS-485 (require per-mob type permission in /npc create) 2013-03-15 18:39:18 +08:00
fullwall
aa022f8fae Cancel navigation on despawn: Navigation isn't carried over so CitizensNavigator would be left in an inconsistent state 2013-03-14 23:29:41 +08:00
fullwall
5f093276f1 Using /npc despawn now removes from the respawn list 2013-03-14 21:38:10 +08:00
fullwall
c10a41b395 Fix some pathing bugs 2013-03-14 21:03:33 +08:00
fullwall
8bf6917fd3 Set handle.ax for head yaw 2013-03-12 22:49:24 +08:00
fullwall
be24157951 Fix typo 2013-03-11 21:13:05 +08:00
fullwall
deba96875c Controllabe NPCs stop only on shift-left/right click now 2013-03-11 19:35:21 +08:00
fullwall
bcb7672246 Refactor out WanderGoal 2013-03-11 16:22:14 +08:00
fullwall
8930e25fbe /npc wolf command 2013-03-08 17:47:25 +08:00
fullwall
1b1851cdf1 Better defaults for /npc text cooldowns 2013-03-07 10:38:42 +08:00
Jeremy Schroeder
3ceb5d884e Add setRange(...) and setRealisticLooking(...) to LookClose. Add getPose(...) to Pose. 2013-03-03 00:42:20 -05:00
fullwall
330565340a Add sendPacketNearby back for Sentry compatibility 2013-03-01 10:29:38 +08:00
fullwall
8dd2a9b8d4 Fix for server providers without random entropy 2013-02-23 17:30:56 +08:00
fullwall
6e0fe92c51 Fix NPEs in bB(), add more .* permissions 2013-02-23 12:27:00 +08:00
fullwall
8023034a8c Reuse object 2013-02-20 22:59:10 +08:00
fullwall
69d7db688c Optimisation to packet sending 2013-02-20 22:56:28 +08:00
fullwall
7e20713f7c NPCSelector impl 2013-02-20 21:58:57 +08:00
fullwall
7291f873d2 Update head yaw every 20 ticks, add a setGravityEnabled method 2013-02-19 10:45:14 +08:00
fullwall
550dfbd6a2 Possible fix, pt. 2 2013-02-19 10:32:33 +08:00
fullwall
1946c1a7db Possible fix for NPCs looking south 2013-02-19 10:25:59 +08:00
fullwall
6f290d8ea7 Possible fix for the head yaw bug?? 2013-02-18 23:00:32 +08:00
fullwall
73fb5b3b62 Fix stack overflow (CITIZENS-457) 2013-02-18 21:55:53 +08:00
fullwall
f5a9f3794a Add blockbreaker, navigator callback 2013-02-18 16:54:52 +08:00
fullwall
155022e82b Fix case-sensitive poses 2013-02-18 08:42:43 +08:00
fullwall
b6983ead75 Fix CITIZENS-454 2013-02-17 22:49:45 +08:00
fullwall
f523f375b6 Implement new method 2013-02-17 22:46:56 +08:00
fullwall
67574400e6 Whoops 2013-02-17 22:42:00 +08:00
fullwall
a287071beb Add some config to BlockBreaker 2013-02-17 22:12:48 +08:00
fullwall
121bdbd9c4 Working block breaker 2013-02-17 21:47:20 +08:00
fullwall
968d325a15 Fix speed modifier, add preliminary BlockBreaker class 2013-02-17 20:30:18 +08:00
fullwall
b58f91a7a2 Restrict /npc age dynamically for future 2013-02-17 17:35:58 +08:00
fullwall
e790a08821 Add mooshrooms to /npc age 2013-02-17 17:32:30 +08:00
fullwall
666642a3e3 The /npc equip command shouldn't be type-restricted anymore (whoops) 2013-02-17 17:31:23 +08:00
fullwall
3971a03842 Don't use value flags for /npc tpto 2013-02-17 13:26:05 +08:00
fullwall
f50cd089ec Add tpto permission to npc.* 2013-02-17 13:06:40 +08:00
fullwall
580dd6a19e The /npc tpto command defaults from entity to selected NPC 2013-02-17 12:47:26 +08:00
fullwall
a9bbf875eb Set head yaw before NPCSpawnEvent 2013-02-17 11:13:40 +08:00
fullwall
70851c4bfd Don't allow player-player teleports in tpto 2013-02-17 11:03:14 +08:00
fullwall
8c35992ac7 Add /npc tpto command 2013-02-17 10:58:27 +08:00
fullwall
5fa8d94de9 Possible fix for CITIZENS-443 2013-02-15 17:27:45 +08:00
fullwall
a86968bcd9 Possible fix for CITIZENS-443 2013-02-13 22:25:59 +08:00
fullwall
de445ff1b2 Fix CITIZENS-436 (can't pathfind between worlds) 2013-02-11 11:45:28 +08:00
fullwall
da03a3cd26 Fix CITIZENS-425 2013-02-10 22:34:56 +08:00
fullwall
1cb9c7b057 Fix EnderDragon NPC movement 2013-02-10 22:26:58 +08:00
fullwall
be4a9fba85 Move update call down 2013-02-06 21:19:47 +08:00
fullwall
f25c806aa3 Better playerlist emulation 2013-02-06 21:17:44 +08:00
fullwall
5184ded750 Implement new NPCRegistry creation methods 2013-02-06 19:43:28 +08:00
fullwall
c3ca4656f8 Implement new events 2013-02-06 16:04:26 +08:00
fullwall
43c02b72a1 Move @Requirements to API, move command.command to commands 2013-02-06 15:17:21 +08:00
fullwall
0fb3757c8d Remove deprecated Command API and getHandle method 2013-02-06 14:26:49 +08:00
fullwall
5b6f55ec50 A* jumping fix 2013-02-05 16:32:06 +08:00
fullwall
02cc53d2a2 Don't cancel pathfinding when despawned 2013-02-04 10:14:50 +08:00
fullwall
d354f51052 Load settings earlier (Fix CITIZENS-402, CITIZENS-417) 2013-02-02 22:27:12 +08:00
fullwall
30a0316bd8 Fix CITIZENS-403 2013-01-30 22:51:41 +08:00
fullwall
c3344f243a Fix CITIZENS-402 2013-01-30 22:46:30 +08:00
fullwall
fed0f1d576 Avoid using blocking sources of randomness 2013-01-30 22:37:05 +08:00
fullwall
b428167210 Promote Message and CommandAPI to CitizensAPI, deprecate Citizens2 command API 2013-01-25 21:48:28 +08:00
fullwall
1dc12ccf9b Promote Translator to API, move to Colorizer 2013-01-23 22:35:29 +08:00
fullwall
f58bac5cd0 Refactor 2013-01-23 15:31:22 +08:00
fullwall
c44e60ae01 Fix EventListen processing bug 2013-01-19 23:26:19 +08:00
fullwall
c09a3b9db4 Fix build 2013-01-19 20:42:03 +08:00
fullwall
5116acd7c9 Update compatible version to 1.4.7 2013-01-18 11:00:37 +08:00
fullwall
7b5f304933 1.4.7 compat 2013-01-17 20:46:56 +08:00
fullwall
64103414f4 Use combined Set instead of just traitnames 2013-01-14 22:57:07 +08:00
fullwall
b3f151da09 Some javadocs, fix type coercion when checking for enabled 2013-01-10 22:40:46 +08:00
fullwall
1c59e2c30a Bump up the step value for player NPCs to 1 2013-01-07 20:56:36 +08:00
fullwall
8c3e50a25c Switch to new methods in TraitInfo 2013-01-05 23:48:47 +08:00