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

Started by BearCraftMod on

Topic category: Advanced modding

Active 2 years ago
Joined Dec 2020
Points:
565

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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.

Active 6 months ago
Joined Mar 2020
Points:
702

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 96
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

Active 2 years ago
Joined Dec 2020
Points:
565

User statistics:

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

Thx