How to make a keybind that only works if you have a certain item in hand

Started by BearCraftMod on

Topic category: Advanced modding

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a keybind that only works if you have a certain item in hand

I am making a mod where you need to hold a special tool in hand for the keybind to work.

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Simple In the key bind…
Wed, 03/10/2021 - 16:05

Simple In the key bind procedure, enter an "If" block and perform a test to see if the custom item is the same thing in the main hand of the player