Skip to content

error: incompatible types: FabricBlockSettings cannot be converted to IntProvider new ExperienceDroppingBlock(FabricBlockSettings.copyOf(Blocks.DEEPSLATE), UniformIntProvider.create(3, 6))); #3689

Closed Answered by Owensaug
Owensaug asked this question in Mod Dev Support
Discussion options

You must be logged in to vote

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)));

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Owensaug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
1 participant