Commit Graph

330 Commits

Author SHA1 Message Date
fullwall 3d85ad4ea8 Add /npc chunkload 2021-05-07 01:46:59 +08:00
fullwall 9562345a7a Fix /npc sound dependency being removed 2021-04-17 21:34:46 +08:00
fullwall 979d6f95fa Fire NPCTeleportEvent in all cases to allow cancelling 2021-04-13 12:06:22 +08:00
fullwall 643e42f4ba Add basic named parameters for time purposes in command trait 2021-03-13 22:17:55 +08:00
fullwall 8afaf23c1d Add /npc create -t and make named registry autocreate 2021-02-27 14:41:05 +08:00
fullwall 6c26f98080 Add /npc create --registry 2021-02-22 19:26:12 +08:00
fullwall 441923191f Add /npc endercrystal 2021-02-18 23:29:15 +08:00
fullwall 9bbe9ae3c4 Add simple /npc drops GUI and add NPC selection to /npc follow 2021-02-07 18:45:10 +08:00
fullwall cd436cb6da "/npc select" should respect clickredirects 2021-02-02 22:33:16 +08:00
fullwall e03d65aeb4 Add /npc command itemcost 2021-02-01 22:35:28 +08:00
fullwall 918fcb9ca7 Fix skin trait and text bugs 2021-01-15 19:00:30 +08:00
fullwall 97fae0a7e4 Add UUID to /npc 2021-01-04 00:18:34 +08:00
fullwall 37e6414b13 Fix some off-by-one errors 2021-01-02 20:25:29 +08:00
fullwall 040930bcde Add /npc command --gcooldown 2020-12-16 18:12:37 +08:00
fullwall da5a611014 Add --registry arg to /npc select 2020-11-17 09:12:41 +08:00
fullwall e8cdba65df Fix /npc hologram remove off by one 2020-10-26 17:20:09 +08:00
fullwall a944c3ca9c Make mob entity uuids the same as their NPC uuid 2020-10-18 18:32:33 +08:00
fullwall 1d314fba7a Append waypoints in the waypoint editor 2020-10-12 20:44:11 +08:00
fullwall 8f009d5598 Add /npc ai command 2020-10-05 15:59:14 +08:00
fullwall 84ec48078d Add global settings for command error messages 2020-10-05 12:18:19 +08:00
fullwall ace484636a Add /npc pathto 2020-09-17 23:31:44 +08:00
fullwall 7450c4db45 Use new getOrAddTrait methodf 2020-09-14 17:57:58 +08:00
fullwall 2f6395884a Make /npc tphere center and cursor work consistently 2020-08-10 18:02:35 +08:00
fullwall d579fcbb53 Add cursor argument and center flag to /npc tphere 2020-08-03 20:30:50 +08:00
fullwall d46aad717f Backport boat movement to 1.15 2020-07-27 17:42:30 +08:00
fullwall 8639c0ab27 Add /npc hologram direction 2020-07-27 17:34:07 +08:00
fullwall e8c57acac1 Add boat movement to 1.16, include ID in default selection message 2020-07-27 10:44:13 +08:00
fullwall 5907c1c8b2 Make /npc tphere include the coordinates it was teleported to 2020-07-22 00:54:49 +08:00
fullwall 7081002f1f Add some error messages for invalid /npc hologram commands 2020-07-21 11:15:05 +08:00
fullwall b571debec1 Add -s(ilent) flag to /npc create 2020-07-18 01:00:23 +08:00
fullwall 3ecd3300ce Add location cloning to setTarget and Waypoint 2020-07-07 22:22:34 +08:00
fullwall 29e6e20feb Add /npc hologram clear 2020-07-07 01:07:01 +08:00
fullwall c68ba08f9d Fix missing change 2020-07-06 21:27:48 +08:00
fullwall 942b354967 Fixes for /npc hologram, add /npc command random 2020-07-03 22:59:18 +08:00
fullwall 878263359a Flesh out hologram impl more 2020-07-03 15:14:55 +08:00
fullwall 381f303023 Add very basic /npc hologram command 2020-06-30 18:17:14 +08:00
fullwall 05cc8de3c7 Implement /npc command cost 2020-06-30 15:20:02 +08:00
fullwall 0293ac17df Add default poses 2020-06-29 15:32:37 +08:00
fullwall c9564c4be2 Implement enderman methods 2020-06-27 15:41:47 +08:00
fullwall 99c7155a7a Make debug-mode show /npc skin exception 2020-06-27 10:52:54 +08:00
fullwall d6df589b23 Implement new event 2020-06-26 12:16:13 +08:00
fullwall 40bf7444dd Add some detailed help for /npc command 2020-06-11 16:47:55 +08:00
fullwall 1fd6ccbad9 First pass of /npc command sequential 2020-06-11 02:24:03 +08:00
fullwall ef03e224c2 -o implies -p in /npc command 2020-05-21 18:36:59 +08:00
fullwall 4633b75c24 Use new util method 2020-05-15 12:26:21 +08:00
fullwall c1a89984a3 Rework mounted pathfinding 2020-05-12 20:28:41 +08:00
fullwall 03064a55f5 Increase read timeout of /npc skin --url 2020-05-11 14:15:48 +08:00
fullwall aa0752f7a2 Change /npc sound -s to a toggle and make -d reset silent to false 2020-05-08 13:36:58 +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
fullwall 41a3673a9f Make /npc pathopt more usable 2020-05-05 18:40:58 +08:00
fullwall e6cf9b8b08 Clean up multiworld permission check for /npc tphere and don't respawn NPCs who were spawned for another reason 2020-05-04 16:21:34 +08:00
fullwall a9ddebd8f8 Controllable should allow donkeys/mules to use horse physics, and delay skin respawning by a tick 2020-05-04 16:09:07 +08:00
fullwall 521c1d3fda Add /npc command permissions for temporary permissions during the command 2020-04-30 21:32:38 +08:00
fullwall 12ffd56981 Add delay argument to /npc command and add a builder-style API for creating new commands 2020-04-30 21:15:24 +08:00
fullwall f9b0397cab Add --eid option to /npc remove 2020-04-22 23:46:36 +08:00
fullwall 4bbe797120 QoL change for /npc glowing --color to enable if not previously enabled 2020-04-22 18:00:15 +08:00
fullwall 725adb009f Cast command cooldowns manually 2020-04-20 00:54:35 +08:00
fullwall 2c1ef04614 Migrate /npc skin properly and deprecate skinnable entity methods 2020-04-19 02:13:00 +08:00
fullwall 93af872e93 Ensure /npc skin works while not spawned 2020-04-19 02:09:46 +08:00
fullwall 80011eed41 Revamp SkinnableEntity into SkinTrait 2020-04-19 02:07:03 +08:00
fullwall a535cea8bc Pretty print location in /npc moveto 2020-03-31 21:44:04 +08:00
fullwall 4cc3c40c87 SpawnReason.COMMAND should try to load the destination spawn location 2020-03-28 01:20:20 +08:00
fullwall f0000cdf3b Allow placeholder API in /npc create, fix float persistence bug 2020-03-27 18:50:14 +08:00
fullwall 1e507a1d57 Use old logic for glowing colour in 1.12, remove unnecessary respawn in /npc rename for non-Player NPCs 2020-03-21 15:19:46 +08:00
fullwall 5f6026f50b Add --url parameter to /npc skin 2020-03-20 17:29:23 +08:00
fullwall f345ef3f16 Restore PR, add --n to /npc command to allow a maximum number of uses per command 2020-03-03 23:40:42 +08:00
fullwall 188c65f203 Add --permissions to /npc command 2020-03-02 23:40:13 +08:00
fullwall efc41dc492 Add cooldown option to /npc command 2020-02-22 12:57:03 +08:00
fullwall 0e043843e4 Adjust NPC_NAME_TOO_LONG message 2020-02-21 23:52:53 +08:00
fullwall b9a08d609a Reformat project 2020-02-14 22:48:40 +08:00
fullwall 36ff6730fd Allow both hands in /npc command 2020-01-17 18:11:23 +09:00
fullwall 52e288e43f Add -o option to /npc command 2019-12-29 22:14:38 +09:00
fullwall 1a0282d970 Fix /npc metadata remove and forward getOptional call to avoid default entity type issue 2019-12-23 11:03:08 +09:00
fullwall 0a748c7825 Load /npc spawn --at chunk 2019-12-03 19:01:29 +08:00
fullwall 7715232bb3 Add missing p flag to the annotation 2019-12-02 11:28:34 +08:00
fullwall 0d558c8ee1 Add -p flag to /npc command to run as the clicking player 2019-12-02 11:27:15 +08:00
fullwall 798c82536c Fix bug in tpto 2019-11-28 16:14:29 +08:00
fullwall d0dcb235b3 Various fixes and features 2019-11-28 16:10:35 +08:00
fullwall 94733ddb81
Update NPCCommands.java 2019-11-18 23:55:11 +08:00
fullwall 771281ef89 Allow tpto to work with 2 arguments 2019-10-19 13:42:37 +08:00
fullwall dabe4bb43e Add error colour setting, don't over-paginate for console commands 2019-09-24 22:05:10 +08:00
fullwall c072a0887a Add a super simple command - /npc command. More features as required 2019-09-23 20:29:31 +08:00
fullwall ccdb7b8d92 Add explanatory message for /npc glowing --color 2019-09-17 19:48:21 +08:00
fullwall b3589e40f9 Further fix to /npc sound 2019-09-17 19:44:43 +08:00
fullwall 3cef996a24 Fix /npc sound -n bug 2019-09-17 19:30:09 +08:00
Alex 'mcmonkey' Goodwin 783fe7ad2e
fix defaulting of "/npc sound" ambient 2019-07-23 04:38:20 -07:00
fullwall 673ee02542 Migrate glowing stuff to new scoreboard trait, add /npc scoreboard 2019-07-12 15:39:38 +08:00
fullwall d0b358a27c Change /npc mount permission, force chunk load on spawning due to chunk load 2019-06-12 21:06:06 +08:00
fullwall 04daf1c053 Allow /npc horse -c | -b to be used on chestedhorse entities 2019-05-24 18:32:51 +08:00
fullwall 4a73b0faf6 Fix typos for path-distance-margin 2019-04-27 18:31:16 +08:00
fullwall 53efb60b68 Add random looking feature to lookclose 2019-04-26 21:14:15 +08:00
fullwall 0922694604 Allow users to set the path distance margin as well 2019-04-26 18:10:23 +08:00
fullwall 2d05ca134e Preliminary 1.14 update 2019-04-24 21:01:22 +08:00
fullwall d08f56e6b1 Implement events 2019-04-23 22:39:51 +08:00
fullwall 068b85a647 Add extra look call to /npc moveto 2019-03-28 22:46:26 +08:00
fullwall 3feaf43f48 Add unmount flag to /npc mount 2019-03-01 20:50:44 +08:00
Silthus 52b3902aca refactor(api): dynamically fetch the current default npc registry (#1672)
The api now allows setting the default NPC registry therefor commands
and listeners need to fetch the latest version of the NPCRegistry.

#1671
2019-01-19 00:18:43 +08:00
Alex "mcmonkey" Goodwin f7b03d27e0
fix follow command max args value 2018-11-30 11:33:45 -08:00
fullwall 3ca12de138 Add GameModeTrait 2018-11-12 14:53:52 +08:00
fullwall a3c99e63e7 Use UUID instead of name in followtrait 2018-10-06 18:31:16 +08:00
fullwall 787e114faa Add a super simple follow trait 2018-10-06 17:11:57 +08:00
fullwall 505ef8a926 Use new spawnreason 2018-08-08 16:08:38 +08:00
fullwall dfb5b90b38 Preliminary 1.13 update - some known issues 2018-07-19 20:18:47 +08:00
fullwall 23f03c1fd8 Add PlayerAnimation.START_ELYTRA 2018-06-29 22:35:13 +08:00
Alex "mcmonkey" Goodwin 42fda25ceb Patch skin command, rename command (#1524)
* Fix npc skin -t argument order

Command input is doc'd as (and should function as) data then signature, but the called method was signature then data... update calls it in correct order. Also, fixes doc to indicate that a name is valid input, not just uuid (not entirely sure how that is handled when sent out in a packet, but it seems to be correct to feed a name)

* Ensure rename command will handle scoreboard changes

Always update prefix/suffix, not just only when team is newly created
Guarantee removal entity from scoreboard team on remove
Also removes a fileheader screwup (first line changed in 1_12_R1 file)
Also removes non-used code bits (the two coloredName lines - they don't actually functionally do anything)
Also removes a duplicated data get call

* patch gamemode command

Uppercase + unique permission node

* patch for names of length 30
2018-06-27 12:00:03 +08:00
Julian v.d Berkmortel 4ae8a19b33 ( Patch for #1509 ) support zombie villagers in the villager profession trait (#1510) 2018-06-07 17:08:29 +08:00
fullwall 2b422c1b65 Edit /npc skin -t 2018-04-18 19:29:20 +08:00
fullwall f4d5f02f34 Fix /npc skin 0t 2018-04-18 09:25:26 +08:00
fullwall 111d3889fe Add /npc skin -t 2018-04-17 15:50:12 +08:00
fullwall 4c99dc0e7c Initial 1.8.8 support 2018-04-07 16:02:35 +08:00
fullwall 33568b24c2 Merge branch 'master' of github.com:CitizensDev/Citizens2 2018-03-26 12:06:38 +08:00
fullwall 4b95ebb427 Properly validate shulker color in command 2018-03-26 12:06:20 +08:00
mcmonkey4eva ec8a16c30b ( Patch for #1453 ) proper wolf command output
"i" flag is left in as a way to get info output but not actually checked (as info output should also appear if changes are made)
2018-03-23 04:34:51 -07:00
fullwall f8a8a19b9c Allow /npc mount --onnpc to work in console 2018-03-19 15:02:07 +08:00
fullwall 32e71968e0 Add new permissions nodes to plugin.yml 2018-03-15 15:22:20 +08:00
fullwall 73ff01c774 Add color to /npc shulker 2018-03-09 23:30:28 +08:00
fullwall 3fafa7a255 Update skins to be persistent by default (this is retroactive) - use /npc skin -l instead for continuously updating skins 2018-03-09 22:15:26 +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 a787465c29 Add error message when a skin name is missing from /npc skin 2018-03-09 16:41:01 +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 15569c529f Add /npc shulker 2017-09-04 19:16:49 +08:00
fullwall eb5ca54807 Increase y velocity for flyable NPCs 2017-06-09 20:31:43 +08:00
fullwall 5552bff4cf Fix /npc age for zombies 2017-04-03 01:18:13 +08:00
fullwall 59f67c02b9 Add /npc llama 2016-12-27 00:38:59 +08:00
fullwall 2f7e4ea786 Add -h option to /npc name 2016-11-22 15:41:51 +08:00
fullwall ef0bc3d4e7 Force skin update on /npc skin 2016-11-17 17:10:38 +08:00
fullwall dccfadb846 Fixes for 1.11 2016-11-17 17:00:16 +08:00
fullwall 2dab3d338d Null check signature 2016-08-24 22:15:13 +08:00
fullwall 73854b8107 Remove debugging code and make vehicle enter blocked for boats/minecarts if Controllable is not enabled 2016-08-19 21:47:44 +08:00
fullwall 449a7bd46a Convert to multi module 2016-08-03 19:19:24 +08:00