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

Started by BearCraftMod on

Topic category: Advanced modding

Last seen on 23:58, 17. Nov 2022
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.

Last seen on 01:09, 29. Aug 2022
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

Last seen on 23:58, 17. Nov 2022
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thx
Wed, 03/10/2021 - 16:33

Thx