MCreator's main mod class

Started by Dumble_Berries on

Topic category: Advanced modding

Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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
Joined Dec 2013
Points:

User statistics:

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

Joined Aug 2013
Points:

User statistics:

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

Joined Aug 2016
Points:

User statistics:

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

 

Joined Aug 2013
Points:

User statistics:

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