MenuKit: Containers 图标

MenuKit: Containers

作者:rebot | 分类:模组

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

Minecraft 版本: 1.21.11

平台: fabric

标签: library

资源介绍

MenuKit: Containers

MenuKit: Containers is a slot extension for MenuKit. It lets mods add slots that persist, whether in custom container menus or placed where vanilla never had them.

What it does:

  • Creates slots as UI components, placed like any other: a pocket, an extra equipment slot, a satchel, each real and server-synced.
  • Adds custom container menus that integrate with MenuKit's panels.
  • Attaches per-slot state to any slot: server-authoritative, auto-synced, and either per-player-private or shared across all viewers.
  • Makes created slots behave like vanilla ones: identical in creative and survival; correct on death (drop, keep with keepInventory, or destroy with Curse of Vanishing) and grave-mod aware; with optional Curse of Binding and XP Mending.
  • Shows a registered slot on every container screen (creative, survival, and foreign menus) without per-screen setup.
  • Reaches placed containers: double-chest resolution, server-side reads with no open menu, and a client-capability check.
  • Stores each slot's state on its natural owner (the player, block, entity, or item), readable with /data get.
  • Exposes every slot it creates to any MenuKit consumer, so other mods can see and address your slots, and you theirs. Slots and menus from different mods register cleanly and coexist, keeping mods compatible with each other.

MenuKit: Containers is universal (runs on client and server) and depends on MenuKit, which it pulls in automatically. Requires Fabric.

Install

repositories {
    maven { url 'https://api.modrinth.com/maven' }
}
dependencies {
    modImplementation 'maven.modrinth:menukit-containers:2.0.0'
    // MenuKit comes in transitively, no need to declare it separately
}

Declare both in fabric.mod.json:

"depends": { "menukit": "*", "menukit-containers": "*" }

Working examples

The validator-mkc mod is the honest reference consumer, with real, compiling usage of created slots, per-slot state, death/binding/mending, and the rest. The full surface is documented in the javadoc.

License

MIT. See LICENSE.

Issues

github.com/trevorschoeny/menukit-containers/issues.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
CTOV - Monobank compat

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

查看详情
DailyEvents

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

查看详情
Aqua Cobweb

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

查看详情
MCD: Illusioner

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

查看详情