Commit Graph

290 Commits

Author SHA1 Message Date
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
fullwall f29780874d Add /npc skin --file 2023-03-29 01:28:08 +08:00
fullwall bafc6df000 Delay protocollib loading 2023-03-26 13:28:23 +08:00
fullwall 82030a6534 Implement pitchable look control 2023-03-25 23:22:46 +08:00
fullwall 4a55753409 Improve triggers editor. 2023-03-25 21:49:30 +08:00
fullwall 48a30c56ff Allow /npc follow to work with entities rather than just players 2023-03-18 23:28:33 +08:00
fullwall 46633409c3 Adjust command costs so that they are only charged after checking that the command can be used, adjust itemcost algorithm 2023-03-16 22:01:04 +08:00
fullwall e6f8a47f36 Add config comments, remove subplugins, remove NPCEnderTeleportEvent 2023-03-15 01:41:24 +08:00
fullwall 6a19f19aa9 Allow /npc select to work with blocks 2023-03-14 20:55:33 +08:00
fullwall b9f10a2e0c Fix Java 8 compat 2023-03-13 21:46:52 +08:00
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 cb6f8be7fc Add /npc packet 2023-03-02 23:08:03 +08:00
fullwall ef9220b5fd When-player-within rather than when_player_within 2023-03-01 00:21:08 +08:00
fullwall 585df3f696 Add simple /npc pausepathfinding command 2023-02-21 23:59:33 +08:00
fullwall b0a2c51883 Fix /npc mirror with uuid change 2023-02-11 22:52:53 +08:00
fullwall 504a38317c Add --distance argument 2023-02-06 00:43:42 +08:00
fullwall a61befbdcc Add basic /npc home command 2023-02-06 00:40:01 +08:00
fullwall e828782be6 Snowman performance change 2023-01-27 01:54:13 +08:00
fullwall 72c136e97a Add /npc aggressive 2023-01-16 23:54:21 +08:00
fullwall e21681fa26 Add /npc hitbox, WIP packet NPCs 2023-01-03 20:55:27 +08:00
fullwall b38a66dbfb Add /npc lookclose --headonly 2023-01-02 00:24:11 +08:00