跳到正文

Click Opener Mod

作者:hoid2

Fabric Mod that opens inventory screens when their items are clicked

收藏

介绍

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

* Development of this mod is on hold for the foreseeable future. *

Fabric Mod that opens the inventory screens of items when they are clicked in your inventory. Also allows other item functionality from the inventory.

Server Config Options (clickopener.json)

whitelist

Contains a list of allowed items specified by:

  • Id: minecraft:crafting_table
  • Item tag: item#minecraft:anvil
  • Or block tag: block#minecraft:shulker_boxes

Tags without prefix are treated as item and block tags.

blacklist

Contains a list of disallowed items specified by id. Useful for excluding a single item from a tag like minecraft:damaged_anvil

defaultClickType

  • The default for clickType in player configs.
  • Can be LEFT, RIGHT, SHIFT_LEFT, SHIFT_RIGHT, DROP, CTRL_DROP or NONE
  • Default: RIGHT

Player Config Options (clickopener_player.json)

Players can modify their configs through commands.

clickType

  • Determines how an item must be clicked to be opened.
  • Can be LEFT, RIGHT, SHIFT_LEFT, SHIFT_RIGHT, DROP, CTRL_DROP, or NONE
  • Default: defaultClickType in server config.

Commands

Commands start with /clickopener and require permission level 4.

reload

  • Reloads the config

whitelist

  • Lists the items/tags in the whitelist

whitelist add (item|itemtag|blocktag) <id>

  • Adds the specified item or tag to the whitelist.

whitelist add item

  • Adds the item in the player’s hand to the whitelist.

whitelist remove (item|itemtag|blocktag) <id>

  • Removes the specified item or tag from the whitelist.

whitelist remove item

  • Removes the item in the player’s hand from the whitelist.

blacklist

  • Lists the items/tags in the blacklist

blacklist add item <id>

  • Adds the specified item to the blacklist.

blacklist add item

  • Adds the item in the player’s hand to the blacklist.

blacklist remove item <id>

  • Removes the specified item to from the blacklist.

blacklist remove item

  • Removes the item om the player’s hand from the blacklist.

defaultClickType

  • Displays the defaultClickType config entry.

defaultClickType <defaultClickType>

  • Sets the defaultClickType config entry.

Commands start with /clickopener_player and require no permissions.

clickType

  • Displays the clickType config entry.

clickType <clickType>

  • Sets the clickType config entry.

Old

v3

#### Caution

Blocks that have permanent inventory (like chests) will probably void contents if added to config.

Blocks added by mods that retain contents when broken (like shulker boxes) will probably void contents unless explicit support is added. (Vanilla support is available for shulker boxes).

Most block items should just work, but for the ones that don’t:

Explicit Mod Support

  • Reinforced Shulker Boxes: shulker boxes
  • AdditionZ: fletching table
  • Supplementaries: sack
  • Supplementaries Squared: colored sacks
  • Carpet AMS Addition: large shulker boxes

v2

Config Options

clickType

  • Determines how an item must be clicked to be opened.
  • Can be LEFT, RIGHT, SHIFT_LEFT, SHIFT_RIGHT, DROP, or CTRL_DROP
  • Default: RIGHT

default

  • Determines the default for items not explicitly mentioned in the config
  • Can be true or false
  • Default: false

Items

  • You much have a line for each item you want to allow or disallow
  • Each item is specified by its Id (namespace not necessary for vanilla items)
  • Colon must be escaped e.g. minecraft\:anvil
  • These can be true or false
  • None are specified by default

Supported Vanilla Items

  • shulker_box
  • [color]_shulker_box
  • ender_chest
  • enchanting_table
  • smithing_table
  • crafting_table
  • grindstone
  • stonecutter
  • cartography_table
  • loom
  • anvil
  • chipped_anvil
  • damaged_anvil

Known Supported Modded Items

  • reinfshulker:[color]_[material]_shulker_box

Commands

All commands start with /clickopener and require permission level 4.

reload

  • Reloads the config

default <default>

  • Changes the default in config

clickType <clickType>

  • Changes clickType in config

entry <item> <enable>

  • Changes the config entry for the specified item

entry inhand <enable>

  • Changes the config entry for the item in the main hand

v1

Has support for :

  • shulker box
  • enderchest

(1.1.0+)

  • enchanting table
  • smithing table
  • crafting table
  • grindstone
  • stonecutter
  • cartography table
  • loom
  • anvil

All can be enabled or disabled in the config (1.1.0+). Only shulker boxes and ender chests are enabled by default (for compatibility with versions before 1.1.0).

常见问题

Click Opener Mod 支持哪些 Minecraft 版本?

Click Opener Mod 支持 Minecraft Java 版 1.18.2–1.20.3,共 9 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Click Opener Mod 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

hoid2 的其他作品

查看全部 →