Does anyone here know an easy way of getting the source code to Minecraft Bedrock Edition. I am attempting to make a client similar to Badlion on Java but for bedrock edition. If anyone could provide me a link to a GitHub or tell me how to get the code the that would be great because I have downloaded multiple source code viewers and Minecraft Bedrock Edition's code has been encrypted.
Bedrock is written in C++, which is directly compiled to native/machine code, unlike Java, which is compiled to intermediate bytecode which is in turn compiled to native code by the JVM at runtime, and it is generally regarded as exceedingly difficult to decompile native code to any semblance of the original source (you can't even tell what the original language was), and I'm not sure if it is even legal to do this (or distribute the result) since in order to mod Bedrock you'll need to produce an entire modded binary, not just some classes (Mojang's EULA permits distributing mods but not modded versions, meaning the whole game with the mods installed. I don't know how Bedrock is structured but even if it isn't a single .exe file much of the game is likely in a monolithic core library; for comparison, Java comes in a jar file which is basically a specially named zip file containing thousands of individual classes which can be modified independently of each other).
Also, native code has to be recompiled for every platform; a compiled C++ program for Windows will be different than one for Linux, Android, etc, as well as for 32/64 bit, even if they are all basically the same program, while for Java the exact same bytecode will work on any system that has a JVM built for it (and the necessary native libraries). Because of these issues, pretty much the only "mods" for Bedrock are all "data packs" (modifying the data for things like textures, models, NBT, ete without modifying any actual code).
https://www.minecraft.net/en-us/addons has the latest 1.17 Source for Bedrock. Has always had the latest for download from the little time I've watched it. I suggest using Notepad++ to read the json files as text.