diff --git a/main/config/yosbr/config/shulkerboxtooltip.json5 b/main/config/yosbr/config/shulkerboxtooltip.json5 new file mode 100644 index 0000000..1d9c882 --- /dev/null +++ b/main/config/yosbr/config/shulkerboxtooltip.json5 @@ -0,0 +1,161 @@ +{ + "colors": { + /* Controls whether the preview window should be colored. + (default value: true) + */ + "coloredPreview": true, + "colors": { + "shulkerboxtooltip:shulker_boxes": { + // (default value: 0x976797) + "shulker_box": 0x976797, + // (default value: 0xf9fffe) + "white_shulker_box": 0xf9fffe, + // (default value: 0xf98026) + "orange_shulker_box": 0xf98026, + // (default value: 0xc74ebd) + "magenta_shulker_box": 0xc74ebd, + // (default value: 0x3ab3da) + "light_blue_shulker_box": 0x3ab3da, + // (default value: 0xfed83d) + "yellow_shulker_box": 0xfed83d, + // (default value: 0x80c726) + "lime_shulker_box": 0x80c726, + // (default value: 0xf38baa) + "pink_shulker_box": 0xf38baa, + // (default value: 0x474f52) + "gray_shulker_box": 0x474f52, + // (default value: 0x9d9d97) + "light_gray_shulker_box": 0x9d9d97, + // (default value: 0x269c9c) + "cyan_shulker_box": 0x269c9c, + // (default value: 0x8932b8) + "purple_shulker_box": 0x8932b8, + // (default value: 0x3c44aa) + "blue_shulker_box": 0x3c44aa, + // (default value: 0x835432) + "brown_shulker_box": 0x835432, + // (default value: 0x5e7c26) + "green_shulker_box": 0x5e7c26, + // (default value: 0xb02e26) + "red_shulker_box": 0xb02e26, + // (default value: 0x262626) + "black_shulker_box": 0x262626 + }, + "shulkerboxtooltip:default": { + // (default value: 0xffffff) + "default": 0xffffff, + // (default value: 0xb4b41) + "ender_chest": 0xb4b41 + } + } + }, + "controls": { + /* Press this key when hovering a container stack to open the preview window. + (default value: key.keyboard.left.shift) + */ + "previewKey": { + "code": "key.keyboard.left.shift" + }, + /* Press this key when hovering a container stack to open the full preview window. + (default value: key.keyboard.left.alt) + */ + "fullPreviewKey": { + "code": "key.keyboard.left.alt" + }, + /* Hold this key when previewing a stack to lock the tooltip. + (default value: key.keyboard.left.control) + */ + "lockTooltipKey": { + "code": "key.keyboard.left.control" + } + }, + "preview": { + /* Toggles the shulker box preview. + (default value: true) + */ + "enable": true, + /* Swaps the preview modes. + If true, pressing the preview key will show the full preview instead. + (default value: false) + */ + "swapModes": false, + /* If on, the preview is always displayed, regardless of the preview key being pressed. + (default value: false) + */ + "alwaysOn": true, + /* In compact mode, how should items with the same ID but different component data be compacted? + IGNORE: Ignores component data + FIRST_ITEM: Items are displayed as all having the same component as the first item + SEPARATE: Separates items with different component data + (default value: SEPARATE) + */ + "compactPreviewNbtBehavior": "SEPARATE", + /* The max number of items in a row. + May not affect modded containers. + (default value: 9) + */ + "defaultMaxRowSize": 9, + /* If on, the client will try to send packets to servers to allow extra preview information such as ender chest previews. + (default value: true) + */ + "serverIntegration": true, + /* The theme to use for preview windows. + SHULKERBOXTOOLTIP: ShulkerBoxTooltip's default look and feel. + VANILLA: Mimics the style of vanilla bundle previews. + (default value: SHULKERBOXTOOLTIP) + */ + "theme": "SHULKERBOXTOOLTIP", + /* The position of the preview window. + INSIDE: Inside the item's tooltip. + OUTSIDE: Outside the item's tooltip, moves depending on the screen borders. + OUTSIDE_TOP: Always at the top of the item's tooltip. + OUTSIDE_BOTTOM: Always at the bottom of the item's tooltip. + (default value: INSIDE) + */ + "position": "INSIDE", + /* If on, large item counts in compact previews will be shortened. + (default value: true) + */ + "shortItemCounts": true + }, + "tooltip": { + /* Controls whether the key hints in the container's tooltip should be displayed. + (default value: true) + */ + "showKeyHints": true, + /* The tooltip to use. + VANILLA: The vanilla tooltip (shows the first 5 items) + MOD: The mod's tooltip + NONE: No tooltip + (default value: MOD) + */ + "type": "MOD", + /* Shows info about the current loot table of the item if present. + Visible only when Tooltip Type is set to Modded. + HIDE: No loot table info, default. + SIMPLE: Displays whether the stack uses a loot table. + ADVANCED: Shows the loot table used by the item. + (default value: HIDE) + */ + "lootTableInfoType": "HIDE", + /* If on, the mod hides the custom text on shulker box tooltips. + Use this option when a server-side preview data pack clashes with the mod. + (default value: false) + */ + "hideShulkerBoxLore": false + }, + "server": { + /* If on, the server will be able to provide extra information about containers to the clients with the mod installed. + Disabling this option will disable all the options below. + (default value: true) + */ + "clientIntegration": true, + /* Changes the way the ender chest content preview is synchronized. + NONE: No synchronization, prevents clients from seeing a preview of their ender chest. + ACTIVE: Ender chest contents are synchronized when changed. + PASSIVE: Ender chest contents are synchronized when the client opens a preview. + (default value: ACTIVE) + */ + "enderChestSyncType": "ACTIVE" + } +} \ No newline at end of file diff --git a/main/index.toml b/main/index.toml index b7a0b60..45cd872 100644 --- a/main/index.toml +++ b/main/index.toml @@ -374,6 +374,11 @@ file = "mods/shoulder-surfing-reloaded.pw.toml" hash = "f8b7bd7d4ca00ed1163608a3ac5b58f2db30f8961507daacb8b215042b5d45ea" metafile = true +[[files]] +file = "mods/shulkerboxtooltip.pw.toml" +hash = "b37736264053318c097954ab3005fa72253794db2e7a3d4bcd3dc7a5ea4310aa" +metafile = true + [[files]] file = "mods/skinshuffle.pw.toml" hash = "c37edc2336271418fa06c83ff1251b9ecf2509576b66284302343537addcd86f" diff --git a/main/mods/shulkerboxtooltip.pw.toml b/main/mods/shulkerboxtooltip.pw.toml new file mode 100644 index 0000000..51c5ab4 --- /dev/null +++ b/main/mods/shulkerboxtooltip.pw.toml @@ -0,0 +1,13 @@ +name = "Shulker Box Tooltip" +filename = "shulkerboxtooltip-fabric-5.2.4+1.21.4.jar" +side = "client" + +[download] +url = "https://cdn.modrinth.com/data/2M01OLQq/versions/idZLXMFh/shulkerboxtooltip-fabric-5.2.4%2B1.21.4.jar" +hash-format = "sha1" +hash = "a69e6b5da9157389a94c1275a5ef9f01bbd80f70" + +[update] +[update.modrinth] +mod-id = "2M01OLQq" +version = "idZLXMFh" diff --git a/main/pack.toml b/main/pack.toml index 9599cd0..dabbfe2 100644 --- a/main/pack.toml +++ b/main/pack.toml @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "3c09dd1240a05a182cfdef843939236d9165490116ba970b7f2346b30754e605" +hash = "a1d779daf0a3a57174c91415c6ab007d7cfb6f42510b8b551030558d549fc59e" [versions] fabric = "0.16.10"