error: incompatible types: FabricBlockSettings cannot be converted to IntProvider new ExperienceDroppingBlock(FabricBlockSettings.copyOf(Blocks.DEEPSLATE), UniformIntProvider.create(3, 6))); #3689
-
Descriptionerror: incompatible types: FabricBlockSettings cannot be converted to IntProvider |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solution: Switch the FabricBlockSettings and the UniformIntProvider Before: After: |
Beta Was this translation helpful? Give feedback.
Solution: Switch the FabricBlockSettings and the UniformIntProvider
Before:
public static final Block SAPPHIRE_ORE = registerBlock("sapphire_ore",
new ExperienceDroppingBlock(FabricBlockSettings.copyOf(Blocks.STONE), UniformIntProvider.create(3, 6)));
After:
public static final Block SAPPHIRE_ORE = registerBlock("sapphire_ore",
new ExperienceDroppingBlock(UniformIntProvider.create(3, 6), FabricBlockSettings.copyOf(Blocks.STONE)));