Keybinds that require Armor

Started by Super_MC_Bro25 on

Topic category: Advanced modding

Last seen on 02:44, 30. Jan 2020
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Keybinds that require Armor

I'm trying to make a keybind that gives a player an item if he/she's wearing a specific armor, but I can't figure out how to do this. I also will need various more keybinds like this. Any help will be very much appreciated.

Last seen on 15:14, 24. May 2023
Joined Sep 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use variables
Mon, 12/28/2015 - 09:51

Use variables

Last seen on 02:44, 30. Jan 2020
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would I use variables?
Mon, 12/28/2015 - 18:55

How would I use variables?

Last seen on 15:14, 24. May 2023
Joined Sep 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make that if someone is
Mon, 12/28/2015 - 22:38

Make that if someone is wearing armor a variable is set to 1 and make the keybinding event happens if the variable is set to 1

Last seen on 02:44, 30. Jan 2020
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm trying this, but how
Tue, 12/29/2015 - 03:20

I'm trying this, but how would I edit it in the source code?

Last seen on 02:44, 30. Jan 2020
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Anyone? I really want to know
Thu, 01/07/2016 - 04:56

Anyone? I really want to know how to do this.

Last seen on 17:17, 10. Jan 2024
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In the keybind code check if
Thu, 01/07/2016 - 11:59

In the keybind code check if the armor slots are not null , and if they are not null , check if the names equals to your armor names.

Last seen on 02:44, 30. Jan 2020
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What do you mean? I need
Fri, 01/08/2016 - 03:30

What do you mean? I need further context to understand what your saying.

Last seen on 02:44, 30. Jan 2020
Joined Apr 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Anybody?
Sat, 01/16/2016 - 16:03

Anybody?

Last seen on 23:30, 6. May 2016
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use two variables, i.e
Sat, 01/16/2016 - 17:59

Use two variables, i.e ArmorWear and KeyBind, (The names don't matter) and if the player is wearing the armor, set ArmorWear to 1, and if the player is pressing the key, set KeyBind to 1, and if both are one, then give the player an item. Then do if the player is NOT wearing the armor and set ArmorWear to 0, and do the same for KeyBind.

Last seen on 19:29, 30. Jun 2018
Joined Sep 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Use two variables, i.e
Sat, 07/23/2016 - 20:12

@#9 yes but how do you sense wearing armor!?

sry im just dying to know how to do this