MCreator's main mod class

Started by Dumble_Berries on Fri, 10/28/2016 - 22:47

Topic category: Advanced modding

Last seen on 04:01, 17. Apr 2017
Joined Aug 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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
Last seen on 08:29, 18. Sep 2019
Joined Dec 2013
User points:

Statistics:

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

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
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

Last seen on 04:01, 17. Apr 2017
Joined Aug 2016
User points:

Statistics:

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

 

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
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