MCreator's main mod class

Started by Dumble_Berries on

Topic category: Advanced modding

Active 8 years ago
Joined Aug 2016
Points:
716

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
MCreator's main mod class
Fri, 10/28/2016 - 22:51 (edited)

Does anybody know Mcreators main mod class?

also can they turn this into a if then statement?

 

if (helmet.getItem() == yourmodsmainclass.thehelmetyouwant&& plate.getItem() ==yourmodsmainclass.thechestplateyouwant&& legs.getItem() == yourmodsmainclass.thelegsyouwant&& boots.getItem() ==yourmodsmainclass.thebootsyouwant)
{
player.fallDistance = 0.0F;
player.capabilities.allowFlying = true;
}
}
}

Edited by Dumble_Berries on Fri, 10/28/2016 - 22:51
Active 3 years ago
Joined Dec 2013
Points:
982

User statistics:

  • Modifications: 4
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 398
There is a new "Potion effect
Fri, 10/28/2016 - 23:18

There is a new "Potion effect" which allows elevation (flying). You could make an event, "When armor in use" give potion effect. It would make it easier.

Active 1 year ago
Joined Aug 2013
Points:
1163

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
You practically do not need
Sat, 10/29/2016 - 08:20

You practically do not need do anything with , because every element classes are in same package and item/block/mob... variables are saved directly in these classes. In the main class are saved only instances of these classes. So if you want get custom armor part (that have name for example "SteelArmor"), you will use: mod.mcreator.mcreator_steelArmor.helmet

Active 8 years ago
Joined Aug 2016
Points:
716

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
What if i want a chest plate?
Mon, 10/31/2016 - 03:31

What if i want a chest plate?

would it be .plate instead of .helmet?

 

Active 1 year ago
Joined Aug 2013
Points:
1163

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
It will be simply the name of
Mon, 10/31/2016 - 05:56

It will be simply the name of variable from your amor code. Maybe something like .chestplate