Rincewind88888 Posted February 5, 2023 Posted February 5, 2023 Couldnt create new tool tier because of that. public class ODToolTier { public static Tier END_WOOD; static { END_WOOD = TierSortingRegistry.registerTier( new ForgeTier(0,59,2.0F,0.0F,22, () -> {return Ingredient.of(ODBlocks.PALE_PLANKS);}) ); } } The problem is that method Ingredient.of() couldnt accept ODBlocks.PALE_PLANKS because it is RegistryObject<Block> Quote
ChampionAsh5357 Posted February 5, 2023 Posted February 5, 2023 1 hour ago, Rincewind88888 said: The problem is that method Ingredient.of() couldnt accept ODBlocks.PALE_PLANKS because it is RegistryObject<Block> What does the method accept, and how can you get it from the registry object? Quote
Rincewind88888 Posted February 5, 2023 Author Posted February 5, 2023 39 minutes ago, ChampionAsh5357 said: What does the method accept, and how can you get it from the registry object? Yes, thx. I have already realised that i missed get() so the theme is exhausted. My bad. Quote
Recommended Posts
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.