Keybinds that require Armor

Started by Super_MC_Bro25 on

Topic category: Advanced modding

Active 5 years ago
Joined Apr 2015
Points:
727

User statistics:

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

Active 1 year ago
Joined Sep 2015
Points:
758

User statistics:

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

Use variables

Active 5 years ago
Joined Apr 2015
Points:
727

User statistics:

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

How would I use variables?

Active 1 year ago
Joined Sep 2015
Points:
758

User statistics:

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

Active 5 years ago
Joined Apr 2015
Points:
727

User statistics:

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

Active 5 years ago
Joined Apr 2015
Points:
727

User statistics:

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

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

Active 1 year ago
Joined Aug 2013
Points:
1162

User statistics:

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

Active 5 years ago
Joined Apr 2015
Points:
727

User statistics:

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

Active 5 years ago
Joined Apr 2015
Points:
727

User statistics:

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

Anybody?

Active 8 years ago
Joined Jan 2016
Points:
708

User statistics:

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

Active 6 years ago
Joined Sep 2015
Points:
711

User statistics:

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