Inventory utils

资源包

· 作者 Player_X_YT

使用特殊的物品模型创建自定义界面

0 本站下载 0 关注 更新于 1 年前

最新 1.0 · 1.21.8 · Minecraft

一键开服(送7天)

这个资源包单独使用没有任何效果!它仅供数据包、地图和服务器制作者使用。

使用该资源包,你可以创建带有自定义物品的界面。要获得特殊物品,请运行:

/give @s <item>[minecraft:item_model="inventory:<type>"]

其中 <item> 是你想要的任意物品。<type> 的具体含义如下所示。

为了获得更好的兼容性,可以使用以下更多选项:

/give @s <item>[minecraft:item_model="inventory:<type>",minecraft:max_stack_size=1,minecraft:tooltip_display={hide_tooltip:true}]

<type> 可以根据所需的物品模型进行更改:

组别 可选值 示例
empty - -
inventory - -
inventory_plus - -
inventory_locked - -
locked - -
inventory_line_<direction> direction: h, v inventory_line_h
inventory_arrow_<direction> direction: up, down, left, right inventory_arrow_left
inventory_arrow_<from>_<to> from, to: up, down, left, right inventory_arrow_up_right
inventory_arrow_<from>_<to> from: up_down, left_right to: up, down, left, right inventory_arrow_up_down_right

如果 <type> 以 inventory_ 开头,它将占据整个槽位的大小;否则,它仅包含在槽位内部。请参阅 inventory_locked 与 locked 之间的区别。


我可以在我的 <thing> 中使用这个吗? 当然可以,这正是它的用途!

我可以将它嵌入到我的 <resource pack> 中吗? 没问题,只需将 data/inventory 文件夹移动到你的资源包中即可正常使用。如果你最终将其上传到 Modrinth,我希望你能将我添加为贡献者,但这仅在你特别慷慨的情况下才考虑!

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源