You can install mods in "Minecraft" by playing the "Java Edition" and using the third-party app Minecraft Forge.
To reallocate RAM to "Minecraft," you'll have to edit the game's settings through whatever launcher app you use.