Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

eggpasta

Members
  • Joined

  • Last visited

Everything posted by eggpasta

  1. What about the icon?
  2. How do i choose the effect name?
  3. Every tick for 5 minutes
  4. I'm making a custom potion effect that gives an effect like your walking on a honey block but i'm not sure how to add the effect every tick
  5. I am trying to make a tile entity but TileEntityType.Builder.create seems to no longger be a function What is the 1.16 version?
  6. So i want to make a block with a custom layer but the function Block.makeCuboidShape no longer exists what is the replacement?
  7. I have a brewing recipe with the following code but the issue is that it's accepting anything as an ingredient package mod.trianglesinpoo.mcores; import javax.annotation.Nonnull; import net.minecraft.item.ItemStack; import net.minecraft.potion.PotionUtils; import net.minecraft.potion.Potions; import net.minecraftforge.common.brewing.IBrewingRecipe; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class brewrecipe implements IBrewingRecipe{ private static final Logger LOGGER = LogManager.getLogger(); private static final ItemStack INGREDIENT = new ItemStack(ItemHolder.CRYOEXTRACT.get()); private static final ItemStack OUTPUT = new ItemStack(ItemHolder.CRYOCOCKTAIL.get()); @Override public boolean isInput(@Nonnull ItemStack stack) { return PotionUtils.getPotion(stack) == Potions.WATER; } @Override public boolean isIngredient(@Nonnull ItemStack ingredient) { return INGREDIENT.getItem() == ItemHolder.CRYOEXTRACT.get(); } @Nonnull @Override public ItemStack getOutput(@Nonnull ItemStack input,@Nonnull ItemStack ingredient) { if (isInput(input) && isIngredient(ingredient)) { return new ItemStack(ItemHolder.CRYOCOCKTAIL.get()); } return ItemStack.EMPTY; } }
  8. I want to get a players IItemHandler capability to remove an item from their inventory but i'm not quite sure how?
  9. But that brings another question, is it possible to use something else instead of blaze powder
  10. It turns out i just forgot blaze powder
  11. I want to be able to take 1 items from a player's inventory but i'm not sure of the method to do so because .remove() does not seem to be working
  12. Never mind i think i fixed it
  13. That's strange , it does not work for me
  14. The honey block class in net.minecraft.block.HoneyBlock has multiple functions that makes it sticky, Though i am not sure how you would implement them into a block,
  15. I have had this issue before, to set up forge for eclipse follow this tutorial: 1.1 - Importing the project into your IDE (cadiboo.github.io)
  16. Problem solved, the updated repo is here : BananaSquares/Forge-Mod (github.com)
  17. How? I have git bash instaleld but whenever i do git init and then git add . i get error: 'Downloads/forge-1.16.5-36.1.4-mdk/' does not have a commit checked out fatal: adding files failed
  18. What else do i need to add?
  19. What is the proper registry event?
  20. BananaSquares/ForgeMod (github.com) I uploaded the src folder It's the file in the Main package called brewrecipe
  21. But how does this solve my issue? I just need to know why even though it's returning the itemstack nothing is changing in the brewing stand
  22. Please provide the error you are getting
  23. I have a custom brewing recipe that isn't working, the ingredients go in but nothing is coming in the result box here is my code: public class brewrecipe implements IBrewingRecipe{ private static final Logger LOGGER = LogManager.getLogger(); private static final ItemStack INGREDIENT = new ItemStack(ModEventSubscriber.CRYOEXTRACT.get()); private static final ItemStack OUTPUT = new ItemStack(ModEventSubscriber.CRYOCOCKTAIL.get()); brewrecipe() { } @Override public boolean isInput(@Nonnull ItemStack stack) { LOGGER.info("IBrewingRecipe#isInput: return " + PotionUtils.getPotion(stack) + " == " + Potions.WATER); return PotionUtils.getPotion(stack) == Potions.WATER; } @Override public boolean isIngredient(@Nonnull ItemStack ingredient) { LOGGER.info("IBrewingRecipe#isIngredient: return " + INGREDIENT.getItem() + " == " + ModEventSubscriber.CRYOEXTRACT.get()); return INGREDIENT.getItem() == ModEventSubscriber.CRYOEXTRACT.get(); } @Nonnull @Override public ItemStack getOutput(@Nonnull ItemStack input, @Nonnull ItemStack ingredient) { LOGGER.info("IBrewingRecipe#getOutput: isInput(input) = " + isInput(input) + " isIngredient(ingredient) = " + isIngredient(ingredient) + " -> return " + ((isInput(input) && isIngredient(ingredient)) ? "OUTPUT (=" + OUTPUT + ")" : "ItemStack.EMPTY")); LOGGER.info("Target output: " + OUTPUT); if (isInput(input) && isIngredient(ingredient)) { LOGGER.info("Passed"); return new ItemStack(ModEventSubscriber.CRYOCOCKTAIL.get()); } LOGGER.info("Failed"); return ItemStack.EMPTY; } } and my logs look like this: [19:51:33] [Server thread/INFO] [mo.tr.mc.brewrecipe/]: IBrewingRecipe#isInput: return net.minecraft.potion.Potion@644296ef == net.minecraft.potion.Potion@644296ef [19:51:33] [Server thread/INFO] [mo.tr.mc.brewrecipe/]: IBrewingRecipe#isIngredient: return cryo_extract == cryo_extract [19:51:33] [Server thread/INFO] [mo.tr.mc.brewrecipe/]: IBrewingRecipe#isInput: return net.minecraft.potion.Potion@644296ef == net.minecraft.potion.Potion@644296ef [19:51:33] [Server thread/INFO] [mo.tr.mc.brewrecipe/]: IBrewingRecipe#isIngredient: return cryo_extract == cryo_extract [19:51:33] [Server thread/INFO] [mo.tr.mc.brewrecipe/]: IBrewingRecipe#getOutput: isInput(input) = true isIngredient(ingredient) = true -> return OUTPUT (=1 cryo_cocktail) [19:51:33] [Server thread/INFO] [mo.tr.mc.brewrecipe/]: Target output: 1 cryo_cocktail [19:51:33] [Server thread/INFO] [mo.tr.mc.brewrecipe/]: IBrewingRecipe#isInput: return net.minecraft.potion.Potion@644296ef == net.minecraft.potion.Potion@644296ef [19:51:33] [Server thread/INFO] [mo.tr.mc.brewrecipe/]: IBrewingRecipe#isIngredient: return cryo_extract == cryo_extract [19:51:33] [Server thread/INFO] [mo.tr.mc.brewrecipe/]: Passed why is it not working?

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.