All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Click Opener Mod

Click Opener Mod

by hoid2 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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).

How to Install Click Opener Mod (Mod)

Click Opener Mod by hoid2 is verified for Fabric across Minecraft versions 1.18.2, 1.19, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2 (latest release: 4.0.1-alpha+1.20.1, file size: 113 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.18.2, 1.19, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded Click Opener Mod file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20
Fabric
last yr. 1
1.19.4
Fabric
last yr. 1
1.19.4
Fabric
last yr. 1
1.19.3
Fabric
last yr. 1
1.19.3
Fabric
last yr. 1
1.19.2
Fabric
last yr. 1
1.19.2
Fabric
last yr. 1
1.19.2
Fabric
last yr. 1
1.18.2
Fabric
last yr. 1
1.18.2
Fabric
last yr. 1
1.19
Fabric
last yr. 1
1.19
Fabric
last yr. 1
1.18.2
Fabric
last yr. 1
1.18.2
Fabric
last yr. 1
## Fixed
  • Compat with shulker mods (specifically Reinforced Shulkers)
Featues better default compatibility: permanent inventories (like shulker boxes) should update their itemstack nbt when contents change, semi-permanent inventories (like chests) should drop contents on close, and stats, sounds, etc. should work.

### Added
  • ability to use items from inventory (like fireworks)
  • can be stacked
  • cursor stack is used on block if default block behavior fails
  • axes can strip logs, hoes can till dirt, etc.
  • NONE clickType can now be used to disable the mod (by default or per player)

### Changed
  • items are tested with the other hand if the first fails
  • block items must be a single itemstack to use
  • DEFAULT OPENER
  • fake clicks on a block (blockstate.onUse)
  • when the blocks state changes, the block entity is modified, or the screen is closed, the itemstack is replaced with the result of pick block
  • blocks are fake broken on close to drop non-permanent stacks
  • commands are updated
  • config allows items besides block items

### Removed
  • explicit support removed for most mods (as default now works for them)
### Add
  • Compat for Carpet AMS Addition largeShulker
### Fix
  • Player configs not reloading with /clickopener reload

### Add
  • defaultClickType config option
Fixes
  • added hand and hit result to default screen opener
  • solved problem with some blocks
  • now checks inventory size when creating custom screen opener (only affects ender chests)

Added
  • compat with supplementaries and supplementaries squared sacks
## Config Changes
  • now uses json
  • always a whitelist to prevent errors using default screen opener
  • can use block tags, item tags, and/or item ids
  • blacklist to remove items that are added by a tag
  • click type was moved to per player configs accessed by commands
  • Old configs using a whitelist (def=false) should automatically transfer. Old configs using a blacklist (def=true) will log an error an need to be manually updated.

## Default screen opener
  • a default screen opener is used for blocks without explicit compat
  • the default acts like the block was used; this may have unintended consequences for some blocks
  • default uses are logged to debug
  • failures to open a block are logged to debug
  • most vanilla compat now uses the default which means:
  • block use stats should now apply
  • piglin angering should now apply
  • If the default doesn't work you can request for explicit mod support

## Misc
  • Commands changed to match updated config
  • AdditionZ support
Fix for version 2.0.5
Stop stacked shulker boxes from opening.
Update to Minecraft 1.20.1
[2.0.5+1.20] 2.0.5+1.20 by hoid2 on Jun 14, 2023
Download
Update to 1.20
  • Updated to Minecraft 1.19.4
  • Minor internal changes
Fix [#5](https://github.com/RealMegaMinds/ClickOpener/issues/5) - Blocks not being read from config file.
[2.0.2] 2.0.2 for 1.19.3 by hoid2 on Jan 04, 2023
Download
Update to Minecraft 1.19.3
Click Opener Mod Icon
Download Click Opener Mod
Select game version
Select platform