Damage Item event no longer works in 1.7.5

Started by joshuawl on Sun, 08/20/2017 - 20:47

Topic category: Help with MCreator's application

Last seen on 00:32, 7. Jul 2018
Joined Feb 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Damage Item event no longer works in 1.7.5
Sun, 08/20/2017 - 20:47

I just updated from Mcreator 1.7.2 to 1.7.5 and the damage item event for swords is giving me an error now every time I recompile my workspace that says,

C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\mcreator_dagger.java:76: error: cannot find symbol itemstack.damageItem(10, entity); ^

Is this a bug and is anyone else having the same problem? I am setting the damage item to 10 and my sword does have 100 durability so I don't think I'm doing anything wrong. Also if someone knows a way to get around this error for now that would be helpful.

Last seen on 23:11, 12. Jul 2019
Joined Jun 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
What does the full log say?
Mon, 08/21/2017 - 19:58

What does the full log say?

Last seen on 21:22, 22. Jun 2019
Joined Aug 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
You have to find this line : 
Tue, 08/22/2017 - 15:14

You have to find this line : 

public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer entity, EnumHand hand) {

 And write before "World" ItemStack itemstack, 

Then you'll probably have to delete the @Override just above that line (dunno really why) and tell me if it works