Commit Graph

3423 Commits

Author SHA1 Message Date
fullwall
a96d800c91 Make Minecraft navigation canNavigateTo non destructive 2024-12-21 12:39:59 +08:00
fullwall
b58a7a2040 Sync translations from @SNWCreations - thanks! 2024-12-19 22:07:38 +08:00
fullwall
e393764880 Use new metadata and parse components per line in shop trait description 2024-12-19 21:48:07 +08:00
fullwall
a675406eae Use /npc item for minecarts, and add /npc hologram textshadow 2024-12-17 01:08:30 +08:00
fullwall
8d492ff0b2 Use parseItemstack 2024-12-16 23:13:37 +08:00
fullwall
ce41609139 Attempt to fix #3196 2024-12-16 04:00:52 +08:00
fullwall
e1d701050b Rework attribute fix 2024-12-16 03:23:20 +08:00
ZX夏夜之风
0239d5c8de
fix: attribute issues (#3193)
* fix: NPEs from attribute related stuff

* chore: clarify comment

* fix: issues when using attribute key as argument

Changes:
Added argument parsing backward compatibility for /npc attribute command but also introduces more time cost (although it might be not so long, so we can assume it as zero)
Make OptionalAttributeCompletions return attribute keys for now as old enum names are too legacy.

* fix: rewrite attribute trait load logic
2024-12-16 03:12:15 +08:00
fullwall
329275ea0a Remove debug for same-tick player entity de and re registration 2024-12-13 00:57:46 +08:00
fullwall
b2cedaf36c Fix players waiting for 60 ticks client timeout delay before becoming interactable in 1.21.4 2024-12-10 19:01:36 +08:00
fullwall
d8cc7b6f94 Simplify noDamageTicks 2024-12-10 18:51:51 +08:00
fullwall
fb300c38fa Fix JAR version label 2024-12-05 00:00:59 +08:00
fullwall
baa629a1e0 Update to 1.21.4 2024-12-04 21:41:23 +08:00
fullwall
3f80ad1cd9 Adjust API usage 2024-12-03 21:37:27 +08:00
ZX夏夜之风
cc17c48df3
fix: hologram issues (#3195)
* fix: force hologram entity names to be updated

* fix: possibly NPE

* fix: delay placeholder computing
2024-12-03 21:33:31 +08:00
fullwall
d068180179 Delay hologram replacement 2024-11-30 13:53:00 +08:00
fullwall
d3107b5caa Backport pressure plate change 2024-11-28 19:49:58 +08:00
fullwall
f8cc30d7f2 Use speedModifier in a few more places 2024-11-28 19:44:16 +08:00
fullwall
2773304f47 Misc bugfixes 2024-11-28 19:37:49 +08:00
fullwall
8b4a4dd48c Don't compute a global npc shop if absent 2024-11-19 05:26:24 +08:00
fullwall
2c25291676 Add applyEffectsFromBlocks 2024-11-19 03:49:07 +08:00
fullwall
cd98ed3539 Split speech bubble text into newlines 2024-11-19 03:34:55 +08:00
fullwall
17cd2d742a Fix skeleton horse spawning in 1.21.3 2024-11-19 01:09:21 +08:00
fullwall
817df76468 Trial treating 403 Forbidden as too many requests 2024-11-10 07:51:12 +08:00
ZX夏夜之风
695baf4481
fix: backport of #3177 (#3179)
* fix: backport of #3177

1.8 backport may not work well because no DataWatcher for fuse in that version, and we can't support it as it is really an old version. It is just a theoretical fix.

* fix: leave fuse ticks very long in MC 1.8 fix
2024-11-08 23:54:05 +08:00
ZX夏夜之风
080bf9ce3d
fix: backport of #3172 (#3180)
* fix: partial backport of #3172

MC ver <= 1.16.5 is not considered as they are no longer supported officially. Fork devs pls do your own backport.

* fix: different way to get level in different MC version

* fix: finished missing backport for all other MC versions we support
2024-11-08 23:53:33 +08:00
ZX夏夜之风
7cc2b0658d
fix: search attributes using different key for backwards compatibility (#3178) 2024-11-06 00:13:41 +08:00
ZX夏夜之风
63b0125be7
fix: TNT NPCs disappear while reached vanilla life limit (#3177) 2024-11-05 22:59:21 +08:00
ZX夏夜之风
601068c117
feat: NPC move event (#3172) 2024-11-05 22:53:37 +08:00
fullwall
52556f560e Use new API 2024-11-02 22:58:23 +08:00
fullwall
93b87d35ad Backport a few more methods 2024-11-02 19:33:55 +08:00
fullwall
b6214c1bff Backport some forwarding methods to 1.19 2024-11-02 19:16:48 +08:00
fullwall
f92fb4373f Implement a lot more methods in custom entity registry to fix tags 2024-11-02 19:05:36 +08:00
fullwall
b7842183f8 Delay scoreboard creation slightly 2024-11-02 15:52:34 +08:00
fullwall
5283905be9 Merge branch 'master' of github.com:CitizensDev/Citizens2 2024-11-02 13:50:48 +08:00
fullwall
f31d986c27 Update for API changes, add /npc scaledmaxhealth, use new API 2024-11-02 13:50:19 +08:00
ZX夏夜之风
969d5cd396
fix: manually boxing for targetable boolean state to prevent NPE (#3174)
* fix: manually boxing for comparison is necessary as the targetable state may undefined

* chore: remove unused import
2024-11-02 13:15:08 +08:00
fullwall
7f400dc672 Cleanup 2024-11-01 23:36:08 +08:00
ZX夏夜之风
5c5cf51b3e
feat: targetable trait (#3173) 2024-11-01 23:27:04 +08:00
fullwall
69acf89ff9 Cleanup, return the navigation destination from NMS.getDestination in case external plugins miss the timing to get it 2024-11-01 20:27:16 +08:00
ZX夏夜之风
81d54bba57
fix: stop mobs from targeting NPCs when they are no longer targetable (#3171) 2024-10-31 22:08:39 +08:00
fullwall
c1def34749 Use BLOCK_MARKER instead of BLOCK for 1.19 compat 2024-10-29 23:09:45 +08:00
fullwall
385b9691d5 Merge 2024-10-29 20:37:25 +08:00
fullwall
8878c238c0 Add back compat for attribute 2024-10-29 20:35:25 +08:00
ZX夏夜之风
05ebf99d37
fix: sync with latest API change (#3169) 2024-10-29 19:57:35 +08:00
fullwall
1579aa0e9e Updated controllable for 1.21.3 2024-10-28 19:57:36 +08:00
fullwall
0b978f6322 Support blank cosmetic 2024-10-28 01:19:30 +08:00
fullwall
72dabc2c2d Incorrect pom change 2024-10-27 21:28:24 +08:00
fullwall
8111ba387f Add cosmetic equipper implemented using protocollib, currently doesn't refresh equipment manually 2024-10-27 21:27:27 +08:00
fullwall
4cf042eb3f Add /npc pausepathfinding --lockout, fix /npc text speech bubbles duration 2024-10-27 20:14:43 +08:00