Incompatible Types

Started by bxdkotenko on

Topic category: Troubleshooting, bugs, and solutions

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Incompatible Types

Im trying to create my first mod, when im creating mod for forge its working good.
I tried to make mod for Fabric and i get that:

> Configure project :
Fabric Loom: 1.4.6
> Task :compileJava FAILED
C:\Users\neverbtw\MCreatorWorkspaces\smptoogrik\src\main\java\net\mcreator\smptoogrik\init\SmptoogrikModItems.java:31: error: incompatible types: ItemPropertyFunction cannot be converted to ClampedItemPropertyFunction ItemProperties.register(item, new ResourceLocation("blocking"), ItemProperties.getProperty(Items.SHIELD, new ResourceLocation("blocking")));
^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.