Keybinds that require Armor

Started by Super_MC_Bro25 on

Topic category: Advanced modding

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.

Joined Sep 2015
Points:

User statistics:

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

Use variables

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?

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

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?

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.

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.

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.

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.

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