Commit Graph

312 Commits

Author SHA1 Message Date
fullwall 840ab30108 Don't cancel NPC - NPC mount events, NMS#mount uses optional boolean flag to force mount. /npc blockbreaker adds to NPC inventory by default 2023-11-05 02:03:57 +08:00
fullwall a42812c4c4 Add /npc skin -s 2023-11-04 12:47:07 +08:00
fullwall 401e34a4a3 Refactor PlayerAnimation to accept a collection of players rather than radius. Rework NPCLinkToPlayerEvent handling 2023-10-30 22:49:02 +08:00
fullwall 751e2a28ac Misc small changes 2023-10-29 02:09:08 +08:00
fullwall e889476e7b Fixes for hologram display entities 2023-10-23 01:58:06 +08:00
fullwall 7f6b6df4cf Bump deps
Del
2023-10-13 21:50:23 +08:00
fullwall 9bb88a6db1 Add some debug for navigation, add --at arg for /npc playsound 2023-10-03 23:06:25 +08:00
fullwall 05048be1f7 Initial 1.20.2 update 2023-10-01 17:27:38 +08:00
fullwall 97ddf858ce Full update 2023-09-20 22:05:05 +08:00
fullwall 28a3e0bf79 Simplify getAllNPCs() implementation 2023-09-03 23:41:38 +08:00
fullwall 63ef3cdc73 Remove /npc scoreboard and make scoreboard trait just persist entity tags 2023-08-28 01:57:30 +08:00
fullwall db6058bbd0 Reimplement hologram display entities using interaction entities as suggested by Owen1212055 2023-08-28 01:49:14 +08:00
fullwall 60e169f352 Remove imports 2023-08-14 01:32:27 +08:00
fullwall 82d841ad62 Add missing imports 2023-08-14 01:31:34 +08:00
fullwall a9f79deb2d Add /npc skin -e 2023-08-14 01:16:00 +08:00
fullwall 8719c1f182 Implement new metadata 2023-08-06 18:57:42 +08:00
fullwall 6fd768992a Tweak remove --owner 2023-08-01 23:18:45 +08:00
fullwall 5138dc615a Small fixes 2023-07-29 23:26:02 +08:00
fullwall 5003f0c367 Fix <item> hologram, cancel EntityTameEvent for protected NPCs 2023-07-19 23:53:43 +08:00
fullwall 0e9dcf210f Fix typo from /npc list change 2023-07-09 20:40:48 +08:00
fullwall a9fea94c61 Catch protocollib errors again, change /npc list to use uuid rather than id 2023-07-09 18:57:30 +08:00
fullwall 5b5811cfea Fix /npc item parsing behavior 2023-07-04 00:45:37 +08:00
fullwall 46f4444c10 Implement new PlayerFilter method, async-friendly chunk trackers 2023-06-25 21:58:09 +08:00
Brando! a2d7284fbc
individual costs for NPC commands (#3033)
* Add individual cost option for `/npc cmd cost`

* Add individual experience cost option for `/npc cmd expcost`

* Begin individual item cost impl

Everything is finished except for saving/loading the items. I just need to figure out how to properly save the ItemStacks either by using the DataKey or by somehow figuring out how to use the Persist API

* Add item saving and loading

* Add cost and exp cost to describe message

* Remove debug/todo things

* Make `-1` default to allow for cost-free commands

* Update `describe` function to have proper space alignment

* Change names of cost values

* Update parameter name
2023-06-25 13:41:19 +08:00
fullwall 6d5f881b91 Tweak /npc sound command to allow arbitrary sounds (as long as they are registered with NMS) 2023-06-19 20:55:16 +08:00
fullwall a551fe4890 Add /npc setequipment 2023-06-18 17:23:55 +08:00
Brando! da2ab6324a
`npc hologram margintop/marginbottom` command (#3027)
* Add `npc hologram margin` command

* Revert `mb` and `mt` declaration change.

* Change `margin` to `margintop` and `marginbottom`

Also fix mistake in usage syntax.
2023-06-18 00:08:44 +08:00
fullwall e64816eda2 Make triggers prompt pause the pathfinding to prevent difficult states to problem solve. Add CommandTrigger. 2023-06-14 23:45:36 +08:00
fullwall 9704f1493c Implement new push / knockback events 2023-06-12 21:20:51 +08:00
fullwall 3702b019cd Make some create flags require admin 2023-06-11 17:06:22 +08:00
fullwall 64b200837d Add sittable support to /npc sitting, disable array pooling for now 2023-06-11 16:51:28 +08:00
fullwall 9facad1b2a Initial 1.20 update 2023-06-08 22:37:50 +08:00
fullwall 5dc627ab49 Fix copypasta issue in /npc metadata set 2023-05-24 23:28:05 +08:00
fullwall 513a6c7cce Use new duration option 2023-05-14 22:54:45 +08:00
fullwall 46ccf0895f Implement playerfilter change 2023-05-11 21:40:01 +08:00
fullwall 232f5247f1 Rework /npc follow toggling 2023-05-06 00:45:57 +08:00
fullwall d9a4a3e5e2 Make /npc rotate use arm swing to fix rotation 2023-05-04 01:51:48 +08:00
fullwall 3fe2d189f4 Fix skinlayers trait, add /npc lookclose --linkedbody 2023-05-02 00:50:50 +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 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 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 4f9506ce7a Add /npc painting 2023-04-08 02:35:55 +08:00
fullwall e0a66ff67b Fix /npc follow <NPC ID> 2023-03-31 00:11:29 +08:00
fullwall e8a5a1ceb4 Fix mineskin API calls and hologram name height 2023-03-29 18:32:47 +08:00