Skip to content

Architectury API Mod cho Minecraft 1.20.1, 1.21.1

Một api trung gian nhằm giúp phát triển các mod đa nền tảng dễ dàng hơn.

Trên máy chủ
lượt tải
812 lượt tải
lượt xem
4.367 lượt xem
Đã cập nhật
Đã cập nhật 10.10.2026

Giới thiệu mod Architectury API

Trò chuyện với chúng tôi trên Discord!

Một api trung gian nhằm giúp việc phát triển các mod đa nền tảng trở nên dễ dàng hơn.

Architectury API là gì

Architectury API là một api giúp trừu tượng hóa các lệnh gọi tới fabric api và forge api vì cả hai loader đều có cách triển khai khác nhau cho những thứ có thể được coi là giống nhau.

Architectury API được cập nhật thường xuyên, với các hook và tính năng mới. Hiện tại chứa hơn 90 event hook, trừu tượng hóa mạng, trừu tượng hóa lệnh gọi loader, trừu tượng hóa đăng ký game và annotation @ExpectPlatform dễ sử dụng (Chỉ hoạt động trên các phương thức static).

Tôi có thực sự cần API này không?

Architectury API chỉ là một phần của hệ sinh thái architectury, Architectury Plugin là gradle plugin cho phép tất cả các hành động đa nền tảng này.

Architectury API là tùy chọn cho các dự án được xây dựng trên architectury, bạn có thể tạo dự án architectury của mình chỉ với Architectury Plugin.

Ưu điểm của Architectury

  • Mã nguồn mở
  • Ít mã mẫu dư thừa hơn cho mod đa nền tảng của bạn

Bắt đầu tạo mod đa nền tảng

Architectury Loom: https://github.com/architectury/architectury-loom (một bản fork của Fabric Loom bổ sung khả năng phát triển đa nền tảng)

Gradle Plugin: https://github.com/architectury/architectury-plugin (bao gồm Architectury Injectables, dành cho annotation @ExpectPlatform)

Mod mẫu: https://github.com/architectury/architectury-example-mod (một mod mẫu đã ngừng phát triển sử dụng Architectury, nếu có thể, hãy dùng các template thay thế)

Mod Template: https://github.com/architectury/architectury-templates (một bộ template để bắt đầu sử dụng bộ công cụ Architectury)

Ví dụ: Cách sử dụng @ExpectPlatform

Ghi công

Trong một số phiên bản cũ hơn, thư viện này từng đi kèm typetools; bạn có thể tìm giấy phép của nó tại đây

Cách cài đặt Architectury API

With Millida Launcher

  1. Install Millida Launcher

    The launcher is free: download it at millida.net/launcher and sign in with any nickname.

  2. Click “Install” on this page

    The launcher opens and installs the mod for Minecraft 1.16–26.3 on Fabric, Forge or NeoForge automatically, together with its dependencies: Fabric API.

  3. Launch the game

    A profile with it appears in the launcher: click “Play”.

Manually

  1. Install Fabric, Forge or NeoForge

    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.

  2. Download the file for your version

    In the version list above, pick the file architectury-fabric-22.0.5.jar (608 KB) for your game version and loader.

  3. Put it in the mods folder

    The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it. Required dependencies go there too: Fabric API.

  4. Launch the loader profile

    Open “Mods” in the main menu: Architectury API should be in the list.

On a server

  1. A server on Fabric, Forge or NeoForge

    The mod only works on a server with the same loader and game version, for example 26.3.

  2. File goes into the server’s mods folder

    Stop the server, put the mod file into the mods folder and start the server again.

  3. Use the “To server” button

    On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.

Phiên bản

Kèm phụ thuộc

MinecraftLoaderTệpNgàyHành động
26.3Fabric26.3608 KB 161
26.3NeoForge26.3608 KB 15
26.2Fabric26.2610 KB 65
26.2NeoForge26.2607 KB 1
26.1.2NeoForge26.1.2604 KB
26.1.2Fabric26.1.2608 KB 22
26.3NeoForge26.3608 KB 1
26.3Fabric26.3608 KB 20

Đánh giá

Hãy là người đầu tiên đánh giá Architectury API

Bình luận 0

Đăng nhập để bình luậnĐăng nhập

Mod tương tự

Tất cả mod

Thêm về điều này

Tác giả: shedanielGiấy phép: LGPL-3.0-onlyMã nguồn

Bạn là tác giả? Liên hệ với chúng tôi — chúng tôi sẽ gỡ xuống trong vòng 48 giờ.