compileJava Error due to incompatible types

Started by OrionPlays24 on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 00:42, 27. Apr 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
compileJava Error due to incompatible types

Sorry if this has already been posted before! I haven't see any info on this

 

The error I am getting is:

error: incompatible types: ItemPropertyFunction cannot be converted to ClampedItemPropertyFunction

  ItemProperties.register(item, new ResourceLocation("blocking"), ItemProperties.getProperty(Items.SHIELD, new ResourceLocation("blocking")));

error: incompatible types: Item cannot be converted to MobEffect

  HAPPY = register("happy", new HappyJuiceMobEffect());

error: incompatible types: inference variable T has incompatible bounds

  return Registry.register(BuiltInRegistries.MOB_EFFECT, new ResourceLocation(OmorcraftMod.MODID, registryName), element);

 

Sorry if it's a repost, but I don't understand how to fix this.

I would recommend reporting…
Thu, 03/21/2024 - 17:19

I would recommend reporting that to the fabric plugin author on their issue tracker, we can't fix plugins here

Last seen on 00:42, 27. Apr 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thx for the help! sorry for…
Fri, 03/22/2024 - 02:42

Thx for the help! sorry for the post I should have done some more research