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

Started by BearCraftMod on Wed, 03/10/2021 - 15:38

Topic category: Advanced modding

Last seen on 04:33, 13. Mar 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a keybind that only works if you have a certain item in hand
Wed, 03/10/2021 - 15:38

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

Last seen on 18:12, 12. Apr 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 04:33, 13. Mar 2021
Joined Dec 2020
Points:

User statistics:

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

Thx