跳到正文

TCTB Services

作者:_heh_1

TCTB Services is the required core / service library for TCTB

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

TCTB Services (tctb-services)

Overview

TCTB Services is the low-level core service library for TCTB.

Due to Java’s single inheritance model, and the fact that Tetra’s tool capabilities rely heavily on its abstract classes, bytecode rewriting must be performed during the early launch stage so that Tetra can recognize Tinkers’ Construct tools as its own modular weapons at runtime. This JAR file provides that core functionality.

Core Features

  • Hooks into the low-level class-loading process (Phase.BEFORE) to rewrite bytecode before classes are loaded by the JVM.
  • Transparently replaces instanceof and checkcast instructions targeting ItemModularHandheld across Tetra and third-party mod code with TCTB’s bridge checks and proxy casting.
  • Allows Tinkers’ Construct’s ModifiableItem to retain its native characteristics while seamlessly passing all of Tetra’s type checks.

Installation

Requires TCTB version 1.0.2 or higher.

  1. Ensure the compatible versions of Minecraft Forge, Tinkers’ Construct, and Tetra are installed.
  2. Place tctb-services.jar into your mods folder.
  3. Place the main mod tctb-[version].jar into your mods folder as well.
  4. Launch the game.

FAQ

  • Q: What happens if I only install the main tctb.jar?
    A: Tool abilities and interactions will fail to trigger.

  • Q: Why aren’t both JARs merged into one?
    A: JARs that declare ModLauncher services cannot be loaded as standard Forge mods simultaneously.

常见问题

TCTB Services 支持哪些 Minecraft 版本?

TCTB Services 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

TCTB Services 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

_heh_1 的其他作品

查看全部 →