Everything posted by eggpasta
-
How to make a effect happen every second
What about the icon?
-
How to make a effect happen every second
How do i choose the effect name?
-
How to make a effect happen every second
Yes Exactly
-
How to make a effect happen every second
Every tick for 5 minutes
-
How to make a effect happen every second
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
-
TileEntityType.Builder.create is not defined
Thanks!
-
TileEntityType.Builder.create is not defined
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?
-
Creating Blocks with custom models
So i want to make a block with a custom layer but the function Block.makeCuboidShape no longer exists what is the replacement?
-
Brewing Recipe accepting any ingredient
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; } }
-
How to get a player's IItemHandler capability
I want to get a players IItemHandler capability to remove an item from their inventory but i'm not quite sure how?
-
Brewing Recipe not working
But that brings another question, is it possible to use something else instead of blaze powder
-
Brewing Recipe not working
It turns out i just forgot blaze powder
-
Decrease Stack size
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
-
Brewing Recipe not working
Never mind i think i fixed it
-
Brewing Recipe not working
That's strange , it does not work for me
-
[SOLVED] [1.16.5] Create a sticky block
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,
-
FAILURE: Was unable to start Daemon process
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)
-
Brewing Recipe not working
Problem solved, the updated repo is here : BananaSquares/Forge-Mod (github.com)
-
Brewing Recipe not working
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
-
Brewing Recipe not working
What else do i need to add?
-
Brewing Recipe not working
What is the proper registry event?
-
Brewing Recipe not working
BananaSquares/ForgeMod (github.com) I uploaded the src folder It's the file in the Main package called brewrecipe
-
Brewing Recipe not working
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
-
[FIXED] 1.16.5 repair ingredient error
Please provide the error you are getting
-
Brewing Recipe not working
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?
IPS spam blocked by CleanTalk.