Posted July 28, 20214 yr What's wrong with this code public static final RegistryObject<Item> TEST_FOOD = ITEMS.register("food", () -> new Item(new Item.Properties().tab(ItemGroupTM2.ITEMS_GROUP) .food(new Food.Builder() .effect(() -> new EffectInstance(Effects.REGENERATION, 200, 1), 0f) .effect(() -> new EffectInstance(Effects.SATURATION, 200, 1), 0f) .nutrition(12).saturationMod(0.1f).build())));
July 28, 20214 yr the last float in Food.Builder#effect is the chance you can get the effect so 0f is 0%
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.