|
| 1 | +# Custom Minecraft Launcher 1.21.1 |
| 2 | + |
| 3 | +Custom Minecraft Launcher for Server |
| 4 | +Launcher สำหรับ Minecraft 1.21.1 แบบ Offline Mode - เข้าเล่นเซิร์ฟเวอร์พร้อม Mod ครบชุด |
| 5 | + |
| 6 | +## English Description |
| 7 | + |
| 8 | +This is a custom Minecraft 1.21.1 launcher tailored for a specific server. It features an offline mode, pre-installed mods, auto-connect to the server, and a modern UI. |
| 9 | + |
| 10 | +**Features:** |
| 11 | +- ✅ **Offline Mode** - No Microsoft/Mojang account required |
| 12 | +- ✅ **Pre-installed Mods** - Mods are ready to use |
| 13 | +- ✅ **Auto-connect Server** - Automatically connects to the configured server |
| 14 | +- ✅ **Modern UI** - Clean and easy-to-use interface |
| 15 | +- ✅ **RAM Configuration** - Easy RAM allocation adjustment |
| 16 | + |
| 17 | +**Requirements:** |
| 18 | +- Windows 10/11 |
| 19 | +- Java 17 or higher |
| 20 | +- RAM 4GB+ (8GB+ recommended) |
| 21 | + |
| 22 | +**Installation:** |
| 23 | +1. Install Java 17+ from https://adoptium.net/ |
| 24 | +2. Run `npm install` to install dependencies |
| 25 | +3. Run `npm start` to open the launcher |
| 26 | + |
| 27 | +## คุณสมบัติ (Thai) |
| 28 | + |
| 29 | +- ✅ **Offline Mode** - ไม่ต้องมีบัญชี Microsoft/Mojang |
| 30 | +- ✅ **Pre-installed Mods** - Mod พร้อมใช้งาน |
| 31 | +- ✅ **Auto-connect Server** - เชื่อมต่อเซิร์ฟเวอร์อัตโนมัติ |
| 32 | +- ✅ **Modern UI** - อินเตอร์เฟซสวยงาม ใช้งานง่าย |
| 33 | +- ✅ **RAM Configuration** - ปรับ RAM ได้ตามต้องการ |
| 34 | + |
| 35 | +## ความต้องการของระบบ |
| 36 | + |
| 37 | +- Windows 10/11 |
| 38 | +- Java 17 หรือสูงกว่า |
| 39 | +- RAM 4GB+ (แนะนำ 8GB+) |
| 40 | + |
| 41 | +## การติดตั้ง |
| 42 | + |
| 43 | +### 1. ติดตั้ง Java 17+ |
| 44 | +ดาวน์โหลดจาก: https://adoptium.net/ |
| 45 | + |
| 46 | +เลือก: |
| 47 | +- Operating System: Windows |
| 48 | +- Architecture: x64 |
| 49 | +- Package Type: JDK |
| 50 | +- Version: 17 (LTS) |
| 51 | + |
| 52 | +### 2. ติดตั้ง Dependencies |
| 53 | +```bash |
| 54 | +npm install |
| 55 | +``` |
| 56 | + |
| 57 | +### 3. รัน Launcher |
| 58 | +```bash |
| 59 | +npm start |
| 60 | +``` |
| 61 | + |
| 62 | +## การใช้งาน |
| 63 | + |
| 64 | +1. **กรอกชื่อผู้ใช้** - ใส่ชื่อที่ต้องการ (3-16 ตัวอักษร a-z, A-Z, 0-9, _) |
| 65 | +2. **เลือก RAM** - แนะนำ 4GB สำหรับ Modded |
| 66 | +3. **กด START GAME** - Minecraft จะดาวน์โหลดและรันอัตโนมัติ |
| 67 | + |
| 68 | +## การตั้งค่าเซิร์ฟเวอร์ |
| 69 | + |
| 70 | +1. กดปุ่ม ⚙️ (มุมขวาล่าง) |
| 71 | +2. แก้ไข Server IP และ Port |
| 72 | +3. บันทึก |
| 73 | + |
| 74 | +## การใส่ Mods |
| 75 | + |
| 76 | +แก้ไขไฟล์ `renderer/app.js` ในส่วน `CONFIG.mods`: |
| 77 | + |
| 78 | +```javascript |
| 79 | +mods: [ |
| 80 | + { |
| 81 | + name: 'Fabric API', |
| 82 | + url: 'https://...', |
| 83 | + filename: 'fabric-api-0.92.0+1.21.1.jar' |
| 84 | + } |
| 85 | +] |
| 86 | +``` |
| 87 | + |
| 88 | +หรือวางไฟล์ .jar ลงในโฟลเดอร์ `.minecraft/mods/` เอง |
| 89 | + |
| 90 | +## การ Build |
| 91 | + |
| 92 | +สร้างไฟล์ Portable (.exe): |
| 93 | +```bash |
| 94 | +npm run build:win |
| 95 | +``` |
| 96 | + |
| 97 | +ไฟล์จะอยู่ใน `dist/` |
| 98 | + |
| 99 | +## โครงสร้างโปรเจกต์ |
| 100 | + |
| 101 | +``` |
| 102 | +├── main.js # Electron main process |
| 103 | +├── preload.js # Preload script (IPC) |
| 104 | +├── renderer/ |
| 105 | +│ ├── index.html # UI หลัก |
| 106 | +│ ├── styles.css # สไตล์ |
| 107 | +│ └── app.js # Logic หลัก |
| 108 | +├── package.json |
| 109 | +└── README.md |
| 110 | +``` |
| 111 | + |
| 112 | +## หมายเหตุ |
| 113 | + |
| 114 | +- โหมด Offline ใช้ UUID ที่สร้างจากชื่อผู้ใช้ (ไม่ใช่ UUID จริง) |
| 115 | +- ครั้งแรกจะดาวน์โหลด Minecraft ~500MB |
| 116 | +- Mod ติดตั้งใน `.minecraft/mods/` |
| 117 | + |
| 118 | +## License |
| 119 | + |
| 120 | +MIT |
0 commit comments