[1.7.10] A Block that recreates after destoryed
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
Unfortunately, just the error code makes it impossible to know what is wrong. Please post logs as described in the FAQ (https://forums.minecraftforge.net/topic/125488-rules-and-frequently-asked-questions-faq/)
-
the new logs https://mclo.gs/9Xbob9V thanks for helping me i belived my serv can be fixed
-
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.
-
-
Topics
-
Who's Online (See full list)
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.