Posted June 26, 20205 yr Hi all, I've been piecing through the 1.16 update and all is well so far, however I have not been able to find a replacement for these two fields on the Block.Properties options. Any advice? ...
June 26, 20205 yr I see these fields in the Block.Properties class: private boolean variableOpacity; private int harvestLevel = -1; private net.minecraftforge.common.ToolType harvestTool; private java.util.function.Supplier<ResourceLocation> lootTableSupplier; The inner two are what you want.
June 26, 20205 yr IIt looks like in 1.16 they were put into Block: 515 private net.minecraftforge.common.ToolType harvestTool; 516 private int harvestLevel; You should be able to change them through a class that extends Block, without using the archaic Properties builder system. Note to self: don't look at the 1.15.2 source for a 1.16 issue
June 26, 20205 yr Because i was on a streak of being a collossal idiot, i PRed a fix for this - AbstractBlock.Properties now has harvestTool and harvestLevel. https://github.com/MinecraftForge/MinecraftForge/pull/6819
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.