Download Apps
Setup Termux
- Open Termux and run these commands to update and initialize it:
pkg up -y && termux-setup-storage && pkg install nodejs-lts
npm install -g acode-lsp ts-loader typescript typescript-language-server
Set Up Acode
- Open Acode and install these three plugins:
- Eruda Acode
- Acode Language Client
- Typescript Language Client
Usage
- To access your phone's storage from Termux, change the directory by running:
cd /sdcard/ && touch undefined && pwd
- Create and open the "Acode" folder on your main storage with:
mkdir -p Acode && cd Acode
- Download the latest stable Minecraft typings by running:
npm install @minecraft/server @minecraft/server-ui
-
Open the same folder in Acode and create a test js file.
-
Start the server (LSP) in Termux by running:
acode-ls
You will start to see auto-completions for Minecraft typings.
Version info i tested with
Android 12 or 10
-
Apps
- Termux v0.118.0
- Acode v1.10.3
-
Termux Package
- Node v20.13.1
-
NPM packages
- acode-lsp v1.0.6
- ts-loader v9.5.1
- typescript-language-server v4.3.3
- typescript v5.5.3
Showcase video: Youtube
