Giới thiệu mod Cryonic Config

- Công cụ cấu hình dễ chuyển đổi giữa các phiên bản với ít phụ thuộc nhất
- Đặc biệt hướng đến sự dễ sử dụng và khả năng chuyển đổi
- Cryonic vì nó ngầu cực kỳ
Giải thích chức năng
- Công cụ này sẽ lưu các json trong {minecraftdir}/config dưới dạng "modid.json"
- Tất cả tệp cấu hình sẽ được đọc bằng dictionary trong "cryonicconfig.json" khi khởi tạo sớm
- Cấu hình chỉ có thể thay đổi bằng cách chỉnh sửa trực tiếp các json, không có kế hoạch làm GUI cấu hình
- Để dễ chuyển đổi, các biến được đồng bộ sẽ được gửi trực tiếp đến người chơi trong chat và được chặn lại
- Hashmap được dùng để tra cứu Str sang ConfigStorage và Str sang Obj (biến)
API
Groovy (build.gradle) Thêm phụ thuộc
Thêm Maven:
repositories { maven { url "https://api.modrinth.com/maven" } }
Modern/Architectury: Đối với chỉ fabric hoặc neoforge, thay ${project.name} bằng fabric,forge,neoforge
dependencies { modImplementation "maven.modrinth:cryonicconfig:fabric-${project.name}:1.0.0+mc${rootProject.minecraftversion}" }
b1.7.3:
dependencies { modImplementation "maven.modrinth:cryonicconfig:babric:1.0.0+mcb1.7.3" }
Cách sử dụng đơn giản:
// Bạn có thể lưu trữ hoặc dùng ngay lập tức, có thể gọi ở bất cứ đâu ConfigStorage config = CryonicConfig.getConfig("modid"); // Bạn có thể lưu trữ int, double, boolean và string // Khi lấy chúng, bạn cũng đang đặt giá trị mặc định cho chúng // định dạng getter (tên biến, giá trị mặc định) // Bạn không thể dùng lại tên biến! Chúng sẽ bị ghi đè. config.getInt("varName", 3); config.getDouble("name", 3.3); config.getBoolean("var", true); config.getString("str", "Geronimo!") // Biến sẽ tồn tại cục bộ trên client và server // Nếu bạn muốn một người chơi đã kết nối đến server sử dụng cấu hình của server // Bạn phải gọi, khiến client dùng giá trị của server config.sync("varName", playerEntity); // Cứ thoải mái dùng định dạng này: CryonicConfig.getConfig("modid").getInt("varName", 3); // Bạn có thể đặt biến thủ công, thay vì để get tạo chúng // Điều này cũng hữu ích để ghi đè các giá trị cũ config.setInt("varName", 3); config.setDouble("name", 3.3); config.setBoolean("var", true); config.setString("str", "Geronimo!");
Đánh dấu phụ thuộc
Trong fabric.mod.json:
{ "depends": { "cryonicconfig": "" } }
Trong mods.toml/neoforge.mods.toml:
[[dependencies.cryonicconfig]] modId = "cryonicconfig" type = "required" versionRange = "[0,)"
Cách cài đặt Cryonic Config
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.20–26.3 on Fabric, Forge, NeoForge or Quilt automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge, NeoForge or Quilt
The loader must match the game version of the mod file, for example Minecraft 26.3. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file cryonicconfig-neoforge-1.0.0+mc26.3.jar (129 KB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: Cryonic Config should be in the list.
Phiên bản
Kèm phụ thuộc
| Minecraft | Loader | Tệp | Ngày | Hành động |
|---|---|---|---|---|
| 26.3 | NeoForge | [26.3] NeoForge 1.0.0129 KB | ||
| 26.3 | Fabric, Quilt | [26.3] Fabric 1.0.019.8 KB 1 | ||
| 1.20.1 | Forge | [1.20.1] Forge 1.0.0131 KB |
Câu hỏi thường gặp
Which Minecraft versions does Cryonic Config work on?
There are files for 26.3, 1.20.1, 1.20. The newest is 26.3.
Is Cryonic Config for Forge or Fabric?
There are files for Fabric: 26.3, for Forge: 1.20–1.20.1, for NeoForge: 26.3 and for Quilt: 26.3.
Does Cryonic Config need other mods?
The author lists no required dependencies: the Fabric, Forge, NeoForge or Quilt loader is enough.
Where can I download Cryonic Config safely?
On this page: the file cryonicconfig-neoforge-1.0.0+mc26.3.jar (129 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: ac470fed16c33467342e1686d6b58bf9320b74ad.
Đánh giá
Hãy là người đầu tiên đánh giá Cryonic Config

