SimpleFabricScoreboardAPI 图标

SimpleFabricScoreboardAPI

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.1.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/simplefabricscoreboardapi
资源信息

Minecraft 版本: 26.1 26.1.1 26.1.2

平台: fabric

标签: game-mechanics library utility

资源介绍

SimpleFabricScoreboard

SimpleFabricScoreboard is a lightweight library for Minecraft Fabric that provides a simple way to create, update, and manage sidebar scoreboards.

The project is built for mod developers who want a clean and practical API for scoreboard handling without having to work directly with all of Minecraft's lower-level scoreboard logic. The goal is to keep the library small, easy to integrate, and straightforward to use in real Fabric projects.

What it does

SimpleFabricScoreboard helps you create sidebar scoreboards for players and update them dynamically during gameplay. It is designed for common use cases such as lobbies, minigames, player stats, event displays, and other situations where you want to show structured information on the side of the screen.

The library focuses on a developer-friendly Kotlin API and a compact workflow:

  • create a scoreboard
  • add lines
  • assign it to a player
  • update or remove it later

Features

  • Simple scoreboard creation
  • Dynamic line updates
  • Clean Kotlin-oriented API
  • Per-player scoreboard management
  • Packet-based sidebar updates
  • Easy integration into existing Fabric mods
  • Lightweight design with minimal overhead
  • Useful for both static and frequently changing sidebars

Example


val board = scoreboard("test_board", Component.literal("Test Board"), server) {
    +Component.literal("Line 1")
    +Component.literal("Line 2")
    +emptyLine()
    +Component.literal("Line 4")
    line(5, Component.literal("Special Line"))
}

ScoreboardManager.setPlayerScoreboard(player, board)

board.update {
    line(2, Component.literal("Updated Line 2"))
    +emptyLine()
    +Component.literal("Another Line")
}
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
SanchitGamerNP Texture Pack

价格:0 墨喵币
下载量:0

查看详情
Make Clay Valuable Again

价格:0 墨喵币
下载量:0

查看详情
God Apple

价格:0 墨喵币
下载量:0

查看详情
Eat Sounds - GoldenApple

价格:0 墨喵币
下载量:0

查看详情