Error with Blocks (Fabric)

Started by KiwiExists on Thu, 01/13/2022 - 16:00

Topic category: Help with modding (Java Edition)

Last seen on 20:48, 13. Feb 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Error with Blocks (Fabric)
Thu, 01/13/2022 - 16:00

I tried to add a new block, and it gave this error message. What do i do here?

 > Configure project :
Fabric Loom: 0.7.34
> Task :compileJava FAILED
C:\Users\(NAME)\MCreatorWorkspaces\ladcraftmod\src\main\java\net\mcreator\ladcraftmod\block\SimustoneBlock.java:12: error: a type with the same simple name is already defined by the single-type-import of FabricBlockSettings import net.fabricmc.fabric.api.block.FabricBlockSettings;
^
C:\Users\(NAME)\MCreatorWorkspaces\ladcraftmod\src\main\java\net\mcreator\ladcraftmod\block\SimustoneBlock.java:20: error: reference to FabricBlockSettings is ambiguous super(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).strength(1.9999999999999998f, 10f).luminance(0));
^
both class net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings in net.fabricmc.fabric.api.object.builder.v1.block and class net.fabricmc.fabric.api.block.FabricBlockSettings in net.fabricmc.fabric.api.block match
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 804ms

You will get faster response…
Sat, 01/15/2022 - 15:46

You will get faster response for fabric generator if you report the bug to the plugin authors

Last seen on 20:48, 13. Feb 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
alright 
Fri, 01/28/2022 - 23:38

alright