Startup crash using 1.12.2 Forge
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
Hi! I just started learning forge yesterday and ran into the same issue. I couldn’t find any documentation about these changes, but I found a way to add effects to food like this: public class ChakChakItem extends Item { private static final FoodComponent FOOD_COMPONENT = new FoodComponent.Builder() .nutrition(16) .saturationModifier(0.4f) .build(); private static final ConsumableComponent CONSUMABLE_COMPONENT = ConsumableComponents.food() .consumeEffect(new ApplyEffectsConsumeEffect( new StatusEffectInstance(StatusEffects.SPEED, 15 * 20, 1), 1.0f)) .build(); public ChakChakItem() { super(new Item.Settings() .food(FOOD_COMPONENT, CONSUMABLE_COMPONENT) .registryKey(RegistryKey.of( RegistryKeys.ITEM, Identifier.of(ChakChakMod.MOD_ID, "chak_chak") ))); } } If the code isn’t perfect, I apologize. Hopefully, others here can help us find a better solution.
-
By Krogfelt32 · Posted
Hello i decided to build myself a 1.20.1 modpack for myself, when pressing "play" in curseforge, the game opens but then closes afterwwards, no crash reports. any help would be appreciated been trying to solve this for quite awhile now. forge 47.3.12 latest logs: https://mclo.gs/D6gBsN5
-
Topics
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.