Started by
JPZamps
on
Topic category: Help with Minecraft modding (Java Edition)
I have an item that works as a kind of backpack, it must be left in the secondary hand of the player to work, the problem is that other items that use the right button to attack keep opening the other item's GUI, normally this is already avoided by game as you are using a bow or something, but when both objects are ''items'' the player does the functionality of both, is there any way to prevent this from happening? because it is very annoying every time you attack with an item a GUI appears
Use condition to do this
Sorry to bother you but could you be a little more specific? I didn't understand very well
Create a Item Tag and populate it with the items you want to use while your item is in off-hand.
Example: My tag has: Bow, Crossbow, Trident, Ender pearl etc.
Then create your procedure like so
Note: For bows / crossbows there must be a Arrow in the inventory to prevent the bag from opening.
Hey seshua thank you for the reply, I tested the procedures you sent, but something still seems to be wrong, I don't know exactly what, but it's still not working :/
With you could help me here are some photos