Commit Graph

1442 Commits

Author SHA1 Message Date
fullwall
ffea6bd2f4 Add /npc command -n 2024-09-03 22:57:52 +08:00
fullwall
f0105a578f Simplify skin.applyAndRespawn slightly 2024-09-02 23:34:23 +08:00
fullwall
ceb8d10cd2 Move from trove to fastutil to match Minecraft. Add /npc text speech bubbles duration. Fix old Java back compatibility. 2024-08-31 00:15:54 +08:00
fullwall
a1d208fe1e Move NPC_SPAWNING_IN_PROGRESS metadata 2024-08-26 23:45:11 +08:00
fullwall
efb590c45b Make tracker replacement more durable at the cost of adding a custom filter to all entity classes. Also fixes early player tracker replacement in 1.20.6 and above 2024-08-26 01:02:07 +08:00
fullwall
92628df235 Add /npc forcefield vertical strength 2024-08-25 23:23:17 +08:00
fullwall
067badad58 Mark pose dirty on NPC link to player 2024-08-25 23:17:03 +08:00
fullwall
310ebb1458 Add /npc bat 2024-08-25 17:19:09 +08:00
fullwall
82851e673c Add setTags method to scoreboard trait 2024-08-25 03:28:54 +08:00
fullwall
3c036f371f Move scoreboard tags outside of team code 2024-08-25 03:11:32 +08:00
fullwall
3cd096f84d Fix NPCShopItem cloning 2024-08-25 03:02:26 +08:00
fullwall
f71e9e47d9 Add /npc inventory [player name] and fix some NPEs 2024-08-22 23:13:57 +08:00
fullwall
2d8267a606 Try getting packet tracker directly, remove some unused string constants in Messages 2024-08-21 01:12:01 +08:00
fullwall
61f7560561 Make /npc skin -l (argless) work 2024-08-21 00:18:34 +08:00
fullwall
0dfbc33aec Update translations from translate.citizensnpcs.co - thanks to Arkyoh 2024-08-20 23:12:46 +08:00
fullwall
757691261c Add /npc shop show [name] (playername) 2024-08-20 23:05:18 +08:00
fullwall
73a5cfdee6 Update gravity trait methods to make sense 2024-08-19 20:56:13 +08:00
fullwall
44c697180f Make controllable inner classes static 2024-08-19 15:40:40 +08:00
fullwall
6bfb2a0dd7 Actually this is in a sync context so just null check is fine 2024-08-19 15:10:26 +08:00
fullwall
d0f7ba7695 Make hologram renderer variables volatile 2024-08-19 15:08:14 +08:00
fullwall
e45f4b784d Fix /npc breakblock not breaking the block 2024-08-19 15:00:40 +08:00
fullwall
412f67c4ef Remove noisy debug 2024-08-19 11:29:34 +08:00
fullwall
4f923c904a Fix axolotl/dolphin movement speed being too slow with minecraft AI, remove nonfunctional makeBrain override 2024-08-18 23:03:03 +08:00
fullwall
8ee9ecb5ed Fix text setting loading to allow empty text 2024-08-18 22:03:35 +08:00
fullwall
2caa1b360a Disable object pooling in PhTree 2024-08-16 21:02:06 +08:00
fullwall
b00e99fedb Update to setting type 2024-08-16 10:25:35 +08:00
fullwall
c66ff1eeee Remove hologram debug 2024-08-13 11:23:54 +08:00
fullwall
c291c0513d Make shift click default to moving items in the shop trait and shift right click to copy 2024-08-13 10:54:34 +08:00
fullwall
f43f919df9 Tweak unequipping wolf armor 2024-08-12 20:31:57 +08:00
fullwall
f78c87b576 Add some hologram debug 2024-08-12 08:04:43 +08:00
fullwall
57df21d13b Set wolf armor in BODY slot 2024-08-11 07:13:57 +08:00
fullwall
0bc5d870fb Make pausepathfinding trait reset pitch on unpause, fix trader shops 2024-08-11 07:01:03 +08:00
fullwall
fe2a9990d3 Add Wolf armor equipper 2024-08-08 10:19:19 +08:00
fullwall
103ecfd369 Fix /npc shop copyfrom 2024-08-03 18:01:09 +08:00
fullwall
c9696cc6c1 Change default name renderer to interaction instead of text displays 2024-07-20 22:20:35 +08:00
fullwall
3370fdde5d Fix interaction height on 1.19.4 2024-07-20 18:13:17 +08:00
fullwall
219e016ee7 Make scoreboard trait iterate over NPCs from all registries 2024-07-20 00:45:40 +08:00
fullwall
155d9c9730 Add inventory trait in horseequipper 2024-07-19 23:49:33 +08:00
fullwall
2c0c7bf8a0 Add skin fetching for bedrock players using skin prefix or -b flag in /npc skin. Hide the floodgate prefix for /npc mirror. Add NPCShopPurchaseEvent 2024-07-19 11:19:32 +08:00
fullwall
7a9a4db787 Move packet tracker unlinking to post-spawn 2024-07-14 22:24:37 +08:00
fullwall
6d18bc16c7 Replace entity tracked fields as well as chunk map ones 2024-07-12 17:25:26 +08:00
fullwall
ec51df24b5 Null check holograms (although they shouldn't be null in this location...) 2024-07-10 10:04:31 +08:00
fullwall
8571f3e163 Update comments method 2024-07-09 03:01:21 +08:00
fullwall
92cb74b7eb Entities don't spawn instantly 2024-07-09 01:06:08 +08:00
fullwall
ad6b47348c Add /npc collidable --fluids and backport fluid pushable to <1.13. 2024-07-08 00:35:03 +08:00
fullwall
4143097d05 Use new reflective access to OldEnum subclasses 2024-07-07 12:40:04 +08:00
fullwall
4ba83dd520 Add quotes around commands 2024-07-06 22:13:27 +08:00
fullwall
71eed123b2 Refactor new renderer creation code 2024-07-06 19:30:15 +08:00
fullwall
194c4baadb Fix setting default 2024-07-06 18:34:34 +08:00
fullwall
25db02649e Add name hologram renderer configuration 2024-07-06 18:33:10 +08:00
fullwall
957704dfc0 Set hologram line width 2024-07-06 17:38:21 +08:00
fullwall
30fed567e9 Add some hologram debugging to armorstand 2024-07-06 17:15:54 +08:00
fullwall
0ac2d3693a Fix compile errors, lowercase template keys 2024-07-06 16:36:53 +08:00
fullwall
aafdab2797 Update spanish translation 2024-07-02 20:28:17 +08:00
fullwall
ea74254cdd Use explicit locale for upper/lowercase. EXPERIMENTAL: may be bugs from this commit 2024-06-29 14:46:25 +08:00
fullwall
147df027bb Stop previous AStarTargeter nav strategy, usability tweaks for animation/chat triggers 2024-06-29 14:30:10 +08:00
fullwall
5620d3373f Use format instead of manual formatting in MoneyAction 2024-06-29 12:13:49 +08:00
fullwall
8cc2f0ea48 Use new inventoryview abstraction 2024-06-26 21:12:28 +08:00
fullwall
d291d259e2 Don't add MountTrait by default 2024-06-26 20:17:46 +08:00
fullwall
f659205d61 Attempt to fix falling with new pathfinder 2024-06-25 01:25:44 +08:00
fullwall
7bc0d82de7 Invert talk item pattern check to avoid null comparison 2024-06-23 09:51:13 +08:00
fullwall
ee9c67fc0c Hologram trait bugfix 2024-06-22 12:21:44 +08:00
fullwall
0fc644b21f Fix typo 2024-06-19 22:10:46 +08:00
fullwall
6eb9ae4235 Use new API, fix exp orb NPCs, make old waypoint markers use leash knot instead of eye of ender 2024-06-19 22:03:38 +08:00
fullwall
f86b387c82 Fix typo 2024-06-18 01:58:12 +08:00
fullwall
6d1aad513e Ensure new pathfinder iterates for the max iterations per tick 2024-06-18 00:54:54 +08:00
fullwall
5e9f04f141 Only listen to EntitiesLoad/UnloadEvent 2024-06-14 18:41:44 +08:00
fullwall
74df4818e4 Temporary workaround for exception spam 2024-06-14 16:43:31 +08:00
fullwall
6bcae0f7dd Initial 1.21 update 2024-06-14 16:06:11 +08:00
fullwall
81c666eca2 Fix some bugs with command errors 2024-06-12 10:56:05 +08:00
fullwall
6bb52c0515 Specify key type in attribute trait 2024-06-08 17:24:41 +08:00
fullwall
613770bd4e Text display component has a different index on 1.19.4 2024-06-06 18:48:29 +08:00
fullwall
d4b41bd0cd Fix protocollib integration and overwrite text display component 2024-06-06 18:22:56 +08:00
fullwall
468703fe79 Rework /npc controllable, add /npc shop copyfrom, add /npc entitypose, add /npc forcefield, add /npc display 2024-06-06 12:55:29 +08:00
fullwall
c6207e6d99 Added /npc hologram bgcolor 2024-06-05 20:04:27 +08:00
fullwall
b899e26c39 Fix initialisation order of locationlookup 2024-06-05 10:27:04 +08:00
fullwall
ff5b718a17 Make hologram renderer impl static 2024-06-05 10:10:51 +08:00
fullwall
f9e78c732d Move display holograms around 2024-05-31 11:31:22 +08:00
fullwall
224b43d75b Implement new /template generate command, bugfixes 2024-05-30 12:00:17 +08:00
fullwall
b12732d805 Manually update to adventure snapshots to fix 1.20.6 adventure 2024-05-08 21:32:43 +08:00
fullwall
2dd4a2001b Check for item meta presence as well 2024-05-08 03:21:53 +08:00
fullwall
bb43940a0a Make command item missing-item error use display name if present 2024-05-08 03:19:55 +08:00
fullwall
28e2e87a80 Rework command costs to split global and command costs up 2024-05-07 10:03:17 +08:00
fullwall
f2241cf104 Add /npc boat, misc cleanup 2024-05-06 02:11:34 +08:00
fullwall
26706f658d Add /npc attribute 2024-05-04 00:48:08 +08:00
fullwall
d1798eb8a2 extra line 2024-04-29 23:29:34 +08:00
fullwall
66c06fd641 Create and use EntityPoseTrait 2024-04-29 23:13:17 +08:00
fullwall
efd3ec54f5 Use new metadata 2024-04-28 20:23:59 +08:00
fullwall
194198a9ce Modify interaction render height for 1.19, use teleport display entities by default for 1.20+ 2024-04-27 20:06:21 +08:00
fullwall
73d0698d36 Rework item action NBT matching 2024-04-24 18:38:59 +08:00
fullwall
245d76a78c Add /npc wolf --variant and /npc armadillo 2024-04-24 06:04:02 +08:00
fullwall
70c40dcb22 Initial 1.20.5 update. TODO: refactor NBT to remove JNBT and work with trees instead 2024-04-24 05:34:31 +08:00
fullwall
5533961066 EXPERIMENTAL: trial not updating scoreboard every tick 2024-04-22 17:40:12 +08:00
fullwall
b09a8bae56 Null check hologram entity 2024-04-22 16:14:54 +08:00
fullwall
77d34b53e6 Fix inconsistency in canNavigate where flyable/living status was not respected 2024-04-21 23:24:37 +08:00
fullwall
59531a9bc8 Add /npc fox --pouncing/faceplanted/interested 2024-04-20 14:14:01 +08:00
fullwall
6368cb379e Fix to hologram, add /npc itemframe 2024-04-19 15:48:33 +08:00
fullwall
1b32596c37 Allow colors in money item shop editor 2024-04-15 22:30:53 +08:00
fullwall
d3c0205d9e Bugfix TextDisplayVehicleRenderer 2024-04-15 20:21:26 +08:00
fullwall
ccce76d9f0 Add some interaction debug for holograms 2024-04-15 15:47:59 +08:00