跳到正文

CobbleBashScreen

作者:P1nero

Replaces the Training Simulator interaction with a compact, technology-themed screen

收藏

截图

介绍

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

CobbleBash Screen

CobbleBash Screen is a NeoForge add-on for CobbleBash. It replaces the Training Simulator interaction with a compact, technology-themed screen without replacing CobbleBash classes, registrations, or resources.

Features

  • Separate tabs for all 18 gyms and the Elite Four
  • Nine gym cards visible at once with smooth continuous scrolling
  • Permanent per-player challenge unlocks using the original CobbleBash Training Discs
  • Separate unlock and challenge confirmation interactions
  • Elite Four access remains locked behind completion of all 18 gyms
  • Per-gym successful clear counts and total challenges started
  • Persistent player progress backed by a NeoForge data attachment
  • Cobblemon GUI click and PC unlock sounds
  • English and Simplified Chinese interface translations, including a Simplified Chinese translation for CobbleBash

Requirements

  • A compatible Minecraft and NeoForge installation
  • CobbleBash
  • CobbleBash’s own required dependencies

The development build expects the local CobbleBash dependency and other dependency jars declared in build.gradle.

Integration API

Other server-side mods can unlock challenges without consuming a disc through TrainingSimulatorApi:

TrainingSimulatorApi.unlockGym(player, GymType.FIRE);
TrainingSimulatorApi.unlockAllGyms(player);

if (TrainingSimulatorApi.isEliteFourAvailable(player)) {
    TrainingSimulatorApi.unlockEliteFour(player);
}

unlockEliteFour always preserves CobbleBash’s progression order and returns false until the player has completed all 18 gyms.

The same API exposes server-safe progress queries without requiring access to attachments or NBT:

int clears = TrainingSimulatorApi.getGymClearCount(player, GymType.FIRE);
boolean completed = TrainingSimulatorApi.hasClearedGym(player, GymType.FIRE);
int uniqueGyms = TrainingSimulatorApi.getClearedGymCount(player);
int started = TrainingSimulatorApi.getChallengesStarted(player);

Other mods can subscribe to these events on NeoForge.EVENT_BUS:

  • TrainingSimulatorOpenEvent.Pre, cancellable before the screen opens
  • TrainingSimulatorChallengeStartedEvent.Post
  • TrainingSimulatorGymClearedEvent.Post
  • TrainingSimulatorEliteFourCompletedEvent.Post

Compatibility Design

The add-on opens its menu through NeoForge’s block interaction event and calls CobbleBash’s public GymCommand entry methods. One narrowly scoped Mixin observes successful returns from CobbleBash’s private gym completion method so the UI can record repeat clear counts; it does not cancel or alter CobbleBash behavior.

Player UI progress is stored on each player in the serializable cobblebash_screen:training_simulator NeoForge attachment. The attachment is copied when the player respawns after death. Screen values remain server-authoritative and are synchronized through the menu rather than exposing the attachment to clients.

The add-on owns the cobblebash_screen registry namespace. Its assets/cobblebash resources only provide missing Simplified Chinese translations for CobbleBash and do not replace CobbleBash registrations or gameplay data.

常见问题

CobbleBashScreen 支持哪些 Minecraft 版本?

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

CobbleBashScreen 怎么安装?

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

评论

登录后评论和评分

P1nero 的其他作品

查看全部 →