Commit Graph

3302 Commits

Author SHA1 Message Date
fullwall
5b5811cfea Fix /npc item parsing behavior 2023-07-04 00:45:37 +08:00
fullwall
d39c198956 Cache old waypoint providers in memory to enable switching 2023-07-04 00:16:22 +08:00
fullwall
58655fc45e Implement wander worldguard region change 2023-07-03 02:12:40 +08:00
fullwall
eb1af71429 ClickRedirectTrait should also check for PlayerFilter on init 2023-06-26 00:39:33 +08:00
fullwall
952c18efde Make shop actions ordered 2023-06-26 00:37:07 +08:00
fullwall
a06b2ed2c6 Pushed missing file 2023-06-26 00:13:20 +08:00
fullwall
309b1d7b65 Implement NPCPistonPushEvent 2023-06-25 22:37:30 +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
053438bfbf Add /npc bossbar --viewpermission 2023-06-25 00:25:49 +08:00
fullwall
6d6cc40efa Make REQUIRES_SYNC volatile 2023-06-23 02:32:49 +08:00
fullwall
f3b7ba0e52 ClickRedirectTrait is respected for playerfilter 2023-06-20 23:29:36 +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
ad023c3bd5 Various bugfixes including for /npc sitting, item action, event listening to push/knockback events 2023-06-19 20:39:50 +08:00
fullwall
c001b65988 More item tweaks 2023-06-19 02:27:13 +08:00
fullwall
ad442e4bd3 ItemAction tweak 2023-06-19 01:44:29 +08:00
fullwall
cd550e634e Cancel use item twice 2023-06-18 17:53:47 +08:00
fullwall
0acda96bff Clear the old tracker before replacing it 2023-06-18 17:33:09 +08:00
fullwall
a551fe4890 Add /npc setequipment 2023-06-18 17:23:55 +08:00
fullwall
130dc42e5f Use new method 2023-06-18 17:07:08 +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
3571c05d9d Reduce NPCSeenByPlayerEvent allocations 2023-06-17 22:00:26 +08:00
fullwall
c2e4f93416 Drop 1.12 from spigot builds 2023-06-17 16:14:19 +08:00
fullwall
3cb63f5ab5 Reduce allocation pressure from fluid push 2023-06-17 15:46:07 +08:00
fullwall
3e263bed97 Modernise runTriggers 2023-06-17 00:15:19 +08:00
fullwall
b1b7f17861 Try again 2023-06-15 00:33:11 +08:00
fullwall
b51785b754 Bump some dependency versions 2023-06-15 00:32:01 +08:00
fullwall
98cb901a79 Add a development build profile 2023-06-15 00:23:33 +08:00
fullwall
6750225f5d Update protocollib version 2023-06-15 00:13:09 +08:00
fullwall
8e4c38ded1 Implement /npc knockback 2023-06-14 23:47:42 +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
2082a98a79 Add shift click to edit special shop page items 2023-06-14 23:19:05 +08:00
fullwall
a7c6195b37 1.20.1 (nil changes) 2023-06-13 20:26:05 +08:00
fullwall
8b107587e7 QoL fix for npc players with death messages 2023-06-13 20:13:21 +08:00
fullwall
9704f1493c Implement new push / knockback events 2023-06-12 21:20:51 +08:00
fullwall
ff736ebd4b Backport some Llama controllable changes, minor camel fixes 2023-06-12 09:47:03 +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
ddc938a38c Simplify mount trait 2023-06-11 16:00:33 +08:00
fullwall
9facad1b2a Initial 1.20 update 2023-06-08 22:37:50 +08:00
fullwall
f164494cde Make registry type less specific in 1.19.4 to try and be more compatible with arclight 2023-06-08 21:09:15 +08:00
fullwall
f6f946fcf8 Manually detect equipment updates in 1.16.5 2023-06-08 21:04:51 +08:00
fullwall
e3e1aed1b0 Add isSneaking to SneakTrait 2023-06-08 20:57:44 +08:00
fullwall
2466677cc3 Add workaround for async entity tracker server forks 2023-06-08 20:53:38 +08:00
fullwall
0473887462 Fix path debugging for mc pathfinder 2023-06-01 23:51:05 +08:00
fullwall
eb10e76ca7 Continue to update paused in lookclose 2023-05-29 23:40:53 +08:00
fullwall
735a947475 Backwards compatibility fix for ItemAction 2023-05-29 01:08:48 +08:00
fullwall
8ce9ec357c Check for attack damage attribute for mob attacks 2023-05-29 01:01:08 +08:00
fullwall
5dc627ab49 Fix copypasta issue in /npc metadata set 2023-05-24 23:28:05 +08:00
fullwall
ee77512185 Add new setting for global shop view permission, add insert after selected waypoint functionality 2023-05-20 17:10:53 +08:00