Auto-use command and drag and drop items

Started by treeone on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Auto-use command and drag and drop items

Hello, I’d like to first describe the situation and then ask if it’s possible to create a specific mod. On the server where I play, if you hold a feather in your left hand, have ink sacs in your inventory, and hold any item in your right hand, you can use the command /sign to sign the item in your right hand. Signed items don’t stack with identical unsigned ones because your nickname appears in the description of the signed item. However, with a very rare chance, you can receive a special feather that allows you to change the color of your nickname in the chat.

Here’s my question: is it possible to create a mod that, after activation, performs the following actions:

  1. Automatically takes specific unsigned items from the inventory or hotbar into the hand slot.
  2. Executes the /sign command for all of the current items in your hand.
  3. Places the signed items into the hand (because unsigned items will appear in a different inventory slot from signed ones) and drops them (I usually have a hopper with chest in front of my character for this purpose, and the inventory doesn't get clogged)
  4. Repeats this process until no unsigned items remain in the inventory. The mod should not interact with ink sacs in the inventory. 

    I already have an AutoHotkey script for something similar (https://drive.google.com/file/d/1EXdCNRMNsb0xwxvhLKTuXrDZPtQxADEU/view?…), but it’s inconvenient because it uses your mouse and keyboard, making it impossible to use the computer during its operation. I’d greatly appreciate any help!

    Here is some screenshots: https://imgur.com/a/PxNdhEm