Damage Item event no longer works in 1.7.5

Started by joshuawl on

Topic category: Help with MCreator software

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Damage Item event no longer works in 1.7.5

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.

Joined Jun 2017
Points:

User statistics:

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

What does the full log say?

Joined Aug 2014
Points:

User statistics:

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