Commit Graph

6931 Commits

Author SHA1 Message Date
Nathan V.
df69410e67 (Improvement) Implement playing sound by string ID (#5201)
* (improvement) implement playing sound by string ID

I've replaced enum-based sound playing events with string-based equivalents, which should open the door for server customization and other enhancements in the future

- Added SoundLookup class with different registry lookup methods depending on server version.
- Added the ability to configure what sounds are played depending on event, with a fallback built into SoundType.
- Removed getCrippleSound as SoundLookup can now fall back to the original default sound if the mace sound doesn't exist on the server's Minecraft version.
- Added a EnableCustomSounds config variable that will skip SoundLookup ID checking and just pass the sound string directly to the client, mainly due to the fact that it isn't possible to verify if resource pack values exist.
 - Cleaned up a few switch statements to match how the original getSound had it formatted.

I'd love to see/do a further expansion of sound configuration for each ability now that we can just fall back to generic, but that may be for another PR.

* Fix getIsEnabled using wrong key

* always use registry, simplify custom sound enabling logic, optimize reflection calls

* forgot we need this for legacy versions

---------

Co-authored-by: nossr50 <nossr50@gmail.com>
2025-08-30 11:15:26 -07:00
nossr50
99f7437d9d back to dev builds 2025-08-23 13:16:59 -07:00
nossr50
4bfbfa2de7 2.2.041 2025-08-23 13:12:58 -07:00
nossr50
724b66afaa expand Block Cracker to other blocks with cracked variants 2025-08-23 13:09:52 -07:00
nossr50
6ba4475a77 Fix Berserk block cracker not functioning Fixes #5207 2025-08-23 13:01:11 -07:00
nossr50
2c1c1fe53f update changelog 2025-08-23 12:38:30 -07:00
Warrior
ba673a02d0 Add early return for brewing stand hopper check (#5208) 2025-08-23 12:37:11 -07:00
handy
7cf4409c35 Add static to the method of the private class DatabaseAPI. (#5198) 2025-08-02 12:48:46 -07:00
Jake Ben-Tovim
f9513a8b40 fix(experience): parse diminished returns value from correct field (#5196) 2025-07-11 14:43:29 -07:00
nossr50
b12f86a04d update changelog 2025-07-09 14:24:43 -07:00
Techirion
c377544fa2 RepairManager: Fix unsafe enchantments being stripped, CombatUtils: Use instanceof for IronGolem (#5192)
* RepairManager: Fix unsafe enchantments being stripped

* CombatUtils: Use instanceof for IronGolem check to avoid cast exceptions for pets/npcs/...

---------

Co-authored-by: Dieu <info@l4b.org>
2025-07-09 14:23:34 -07:00
nossr50
e6c62beed9 update changelog 2025-07-09 14:21:12 -07:00
るんく君
0424a5dd12 When burnTime is less than or equal to 0, do not process (#5194) 2025-07-09 14:19:02 -07:00
nossr50
b91fa2cf37 back to dev 2025-07-08 13:08:08 -07:00
nossr50
6acc4b1ec6 2.2.040 2025-07-06 12:27:25 -07:00
nossr50
41b5667cd4 Some more unit test coverage for tree feller 2025-07-04 13:27:38 -07:00
nossr50
b60e478aec Fix parties unintentionally becoming leader-less Fixes #3771 2025-07-04 13:06:31 -07:00
nossr50
6aa4deedc0 oopsie 2025-07-04 12:25:08 -07:00
nossr50
4c578eb1c5 update changelog 2025-07-04 12:15:05 -07:00
nossr50
e6199c0a7a prevent simulateBlockBreak from calling itself fixes #5188 2025-07-04 12:13:37 -07:00
nossr50
87277a0d6f remove some unused code 2025-07-03 15:12:58 -07:00
nossr50
3c853a266a change enum format back to old style 2025-07-03 15:11:41 -07:00
nossr50
e52371aeb3 formatting applied to most of the source code to tidy things up, and misc refactors 2025-07-03 15:07:31 -07:00
nossr50
f322d05159 update changelog 2025-06-22 12:54:59 -07:00
GhostDC
c1ce6c84a5 Update Simplfied Chinese translation (#5185) 2025-06-22 12:53:36 -07:00
Ryota Abe
e891bf2067 Update ja_JP translation (#5189)
* Update locale_ja_JP.propaties

* Add missing keys

* Fix typos and mistranslations (ja_JP)
2025-06-22 12:53:17 -07:00
nossr50
ab79131485 Updated for 1.21.6 2025-06-22 12:51:33 -07:00
TechnicallyCoded
9eb8f4e918 Less hacky performance improvements (#5187) 2025-06-08 11:24:43 -07:00
nossr50
4def2be918 back to dev work 2025-06-07 15:27:48 -07:00
nossr50
547fc29c91 2.2.039 2025-06-07 15:23:23 -07:00
nossr50
3d16d9432d Added StackOverflow safeguards for dealDamage invocations Fixes #5129 Fixes #5029 Fixes #5186 2025-06-07 15:15:09 -07:00
nossr50
5e9ee1e275 2.2.038 2025-06-06 18:58:57 -07:00
nossr50
12127ff25b spigot safeguards 2025-06-06 18:57:44 -07:00
nossr50
382b86ad34 perf improvements and rupture improvements 2025-06-06 18:43:41 -07:00
nossr50
27a232d03e fix other places where locale might matter 2025-05-26 13:07:50 -07:00
nossr50
ce7461f459 fix potion matching for non-english locales Fixes #5174 2025-05-26 13:05:07 -07:00
nossr50
175526d3da 2.2.037 2025-05-25 11:37:35 -07:00
nossr50
1430ea2979 Merge branch 'master' of https://github.com/mcMMO-Dev/mcMMO 2025-05-25 11:23:31 -07:00
nossr50
b54db979f5 update changelog 2025-05-25 11:23:23 -07:00
Jake Ben-Tovim
045f1bdfb6 fix matchPotionType: correctly match extended and upgraded potions fixes #5181 2025-05-25 11:21:36 -07:00
nossr50
c3103beea2 back to the lab again 2025-05-11 15:00:59 -07:00
nossr50
f7dbd884f4 2.2.036 2025-05-11 14:54:45 -07:00
nossr50
8c89462b0a fix trickshot not applying potion effects or custom effects 2025-05-11 14:47:31 -07:00
nossr50
bcf0f06fb9 update changelog 2025-05-06 13:18:52 -07:00
Griffen
2ba67d1393 Adds locale entries for commands in "/mcmmo help" (#5137)
* Fixed issue where you chuld not modify the color of the commands in the main help command

* Changed the headers for more consistency
2025-05-06 13:10:09 -07:00
Josh Taylor
a8976ae953 fix spectral arrows (#5173) 2025-05-06 13:08:09 -07:00
Tommm
f3a2199fd6 Added spawners to illegal drops for blast mining (#5178) 2025-05-06 13:07:15 -07:00
Robert Alan Chapton
bea283e56c Update README.md
tweak the readme
2025-04-13 12:15:43 -07:00
nossr50
13a329d4ae update changelog 2025-04-13 12:04:25 -07:00
nossr50
65d4d2b059 Chimaera wing code is a little bit less disgusting now Fixes #5049 2025-04-13 12:03:52 -07:00