Backpack Display
A mod to show what's in your backpacks, drawers, or any similar containers
截图
介绍
BackpackDisplay
Adds a tooltip to show what’s in your backpack, shulker box or other container item.
Configurable of how to get contents for the container item.
The mod has out-of-the-box support for vanilla shulker boxes, storage drawers drawers, and forestry backpacks. You can add support to more items by writing custom rules in the mod’s config.
Configurable options(See the mod’s config):
- The items that the mod’s tooltip should be shown for
- Position and color of the tooltip
- Optional hold or release a keybind to show the tooltip
Config Format
displayRules is the main config of the mod. It lets you to add new container items to display the backpack tooltip, with the following format:
Format: <modID>:<itemID>[:meta]#<rule type>#<rule definition>
meta is a comma-separated list for meta-values to match.
For example,1,2,5-8 allows tooltip to show on the item with metadata 1,2,5,6,7,8.
When meta is absent, tooltip to show on the item ignoring meta.
Rule definition is according to the rule type selected.
Paths
Path is commonly used in the rules, and have a format like path.to.the.item.
For example, in this NBT structure:
{"list":[{"key1":"value"},{"key2":"item"}]}
The path list.1.key2 will get the tag “item” from it.
List rule
Rule type: list
In this rule, items are all under a NBTTagList or a NBTTagCompound.
Rule definition:path.to.the.list[;path.to.the.itemstack[;path.to.the.counts]]
The last 2 paths is relative to the tag item in the list.
If the counts is absent, the count in the itemstack is used instead.
Example: Show contents when hovering a purple shulker box
minecraft:purple_shulker_box#list#BlockEntityTag.Items
Single rule
Rule type: single
In this rule, an item is under a fixed path, with an optional external count value.
Rule definition:path.to.the.itemstack[;path.to.the.counts[;calculations for the counts]]
If the counts is absent, the count in the itemstack is used instead.
Example: Show content for every basic drawers in storage drawers mod
storagedrawers:basicdrawers:0#single#BlockEntityTag.Drawers.0.Item;BlockEntityTag.Drawers.0.Count
storagedrawers:basicdrawers:1,3#single#BlockEntityTag.Drawers.0.Item;BlockEntityTag.Drawers.0.Count
storagedrawers:basicdrawers:1,3#single#BlockEntityTag.Drawers.1.Item;BlockEntityTag.Drawers.1.Count
storagedrawers:basicdrawers:2,4#single#BlockEntityTag.Drawers.0.Item;BlockEntityTag.Drawers.0.Count
storagedrawers:basicdrawers:2,4#single#BlockEntityTag.Drawers.1.Item;BlockEntityTag.Drawers.1.Count
storagedrawers:basicdrawers:2,4#single#BlockEntityTag.Drawers.2.Item;BlockEntityTag.Drawers.2.Count
storagedrawers:basicdrawers:2,4#single#BlockEntityTag.Drawers.3.Item;BlockEntityTag.Drawers.3.Count
This rule supports further calculation to get the real item count if it’s not in the tag directly but can be calculated from the values in the tag.
Calculations are a string starting with a operator in +-*/^% and followed by a path. The order of calculation is like that on a basic calculator that cannot input expressions.
All calculations is done in integer.
Example: Show content for compact drawers in storage drawers mod
storagedrawers:compdrawers#single#BlockEntityTag.Drawers.Items.0.Item;BlockEntityTag.Drawers.Count;/BlockEntityTag.Drawers.Items.0.Conv
storagedrawers:compdrawers#single#BlockEntityTag.Drawers.Items.1.Item;BlockEntityTag.Drawers.Count;/BlockEntityTag.Drawers.Items.1.Conv
storagedrawers:compdrawers#single#BlockEntityTag.Drawers.Items.2.Item;BlockEntityTag.Drawers.Count;/BlockEntityTag.Drawers.Items.2.Conv
###
常见问题
Backpack Display 支持哪些 Minecraft 版本?
Backpack Display 支持 Minecraft Java 版 1.12.2–1.20.1,共 2 个版本,可用的加载器:Fabric / Forge。下载时注意选择和你游戏版本一致的文件。
Backpack Display 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
Blue-Beaker 的其他作品
查看全部 →No Block Particles
移除1.8~1.18版本中的大部分方块粒子效果。
Better Trading Menu
Enhance the villager GUI for legacy versions of Minecraft.
MTE Patches
Fix bugs and add useful patches for various mods.
LegoBricks RoundStuds
Replaces normal blocks with LEGO bricks.
评论
登录后评论和评分