Переведи на русский с адаптацией: Some things I noticed: • I fell like I should point…
- User
Переведи на русский с адаптацией: Some things I noticed: • I fell like I should point out that you could drastically simplify your config. Respackopts can infer your entry type in most cases and for your enums, the default seems to be the first value, so they can be simplified too. • I noticed you have an option where users can enter their mod loader. That information is already available to you using something like to figure out the specifics). (use /rpoc execute to figure out the specifics). Also note that (for now) only Fabric is supported by Respackopts (though support for NeoForge is being worked on). • It seems like your handling of enableCustomTranslations is inverted: if the option is enabled, the original resource is used. If not, it uses the respackopts variant. That seems wrong. • Minecraft searches all namespaces of all resource packs for language files, so it is likely your fallback would be picked up even if it wasn't enabled. Personally, I'd recommend moving the fallback next to the actual file and naming it something like ru_ru_custom.json. I assume you are reloading your resources before looking at translations? This should happen automatically and be indicated by a reload screen when you exit your resource pack screen, but please confirm that this does in fact happen. Also, mods that interfere with language or resource pack loading might interfere with respackopts by using their own caches or similar. Does your translation load properly in an instance using only Respackopts? If yes, what mod is incompatible? Finally, a reproducer (or just your pack if it is small) and instructions for how to reproduce the issue would allow me to do my own debugging. The sample pack included in my repository does actually include translations using resource expansion, so maybe testing that in your environment would be helpful
- Assistant
Несколько наблюдений, которыми я хотел бы поделиться:
• Хочу отметить, что вы могли бы значительно упростить вашу конфигурацию. Respackopts может автоматически определить тип записи в большинстве случаев, и для ваших перечислений по умолчанию, как правило, используется первое значение, поэтому их тоже можно упростить.
• Я заметил, что у вас есть опция, где пользователи могут вводить свой загрузчик модов. Эта информация уже доступна вам с помощью команды (используйте , чтобы узнать подробности). Также обратите внимание, что на данный момент Respackopts поддерживает только Fabric (хотя поддержка NeoForge находится в разработке).