跳到正文

Wrench Finder

作者:Polaris_Light

Lets you aim at a block and press a key to pull a matching item into your main hand from everywhere.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Banner

Wrench Finder

Wrench Finder lets you aim at a block and press a key (Default Z) to pull a matching item into your main hand from everywhere.

Storage

  • Supports using items from the Inventory, the armor slots and Curios accessory slots.
  • Supports using items from L2 Backpacks(1.21.1).
  • Supports using items from Applied Energistics 2: Portable cells, Wireless terminals, and Wireless crafting terminals.
  • Supports AE2WT.
  • Supports Tom’s Simple Storage wireless terminal, with access logic identical to the original.
  • Supports Refined Storage (RS) wireless terminal, consuming energy based on item count and RS configuration, while allowing unlimited distance and cross-dimensional access.
  • Supports Beyond Dimensions.
  • Enables nested reading for Shulker Boxes, Sophisticated Backpacks, and L2 Backpacks(1.21.1).

Block-Item

Wrench Finder uses an ordered Block-Item mapping table on the client side. It has a default rule that coves almost all tech mod.

  • Each rule contains one blockPattern and one ordered itemPatterns list.
  • When you press the key while aiming at a block, the mod compares the block id against lookupRules from top to bottom.
  • The first matching rule wins.
  • Inside that rule, itemPatterns are also checked from top to bottom.
  • The first item pattern that can be found in your inventory or supported remote storage is moved into the main hand.

The config data shape is effectively:

[
    {
      "blockPattern": "minecraft:bedrock",
      "itemPatterns": [
        {
          "value": "create:wrench"
        },
        {
          "value": "minecraft:barrier"
        }
      ]
    },
    {
      "blockPattern": "*create*:*",
      "itemPatterns": [
        {
          "value": "create:wrench"
        }
      ]
    }
]

Pattern matching uses simple glob syntax:

  • * matches any number of characters.
  • Matching is done against the full registry id, such as create:shaft or minecraft:crafting_table.
  • create:* matches every id whose namespace is exactly create.
  • *create*:* matches every id whose namespace contains create, such as create:shaft and createdeco:andesite_sheet.
  • minecraft:*_planks matches item or block ids like minecraft:oak_planks.

Examples:

  • minecraft:bedrock -> [create:wrench, minecraft:barrier] Trying bedrock will first search for create:wrench; if not found, it will try minecraft:barrier.
  • botania:* -> [botania:dreamwood_wand, botania:twigwand] Any Botania block can map to either wand, in priority order.
  • *ae*:* -> [ae2:network_tool, ae2:certus_quartz_wrench, ae2:nether_quartz_wrench] Any block whose namespace contains ae will try these three AE2 tools in order.

If no explicit rule matches and fallbackToBlockItem is enabled, Wrench Finder will try the block’s own item form.

常见问题

Wrench Finder 支持哪些 Minecraft 版本?

Wrench Finder 支持 Minecraft Java 版 1.20.1–26.1.2,共 3 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Wrench Finder 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Polaris_Light 的其他作品

查看全部 →