Posted February 10, 20196 yr So I made a fluid that adds a bucket from forge how I can get that bucket and add it to a custom tab? Also I need to check his name for a generator thingy. Any help? Edited February 11, 20196 yr by tigres810
February 10, 20196 yr Author Can you send me a example? It's a bit confusing the getfilledbucket stuff.
February 10, 20196 yr Author Idk how to get the Item from getfilledbucket, I need to return the fluid or how is that? Im trying Quote @Override public void displayAllRelevantItems(NonNullList<ItemStack> p_78018_1_) { // TODO Auto-generated method stub super.displayAllRelevantItems(FluidUtil.getFilledBucket(new FluidStack(ModFluids.FLUX_FLUID, 1))); } but it gets an error Also I tried Quote @Override public void displayAllRelevantItems(NonNullList<ItemStack> p_78018_1_) { super.displayAllRelevantItems(p_78018_1_); FluidUtil.getFilledBucket(new FluidStack(ModFluids.FLUX_FLUID, 1)); } but the bucket isn't there Edited February 10, 20196 yr by tigres810 I forgot to add some things
February 11, 20196 yr Author Okay thanks for the help I figure it out by myself on the post u made long ago: Quote Its like u sayd: Quote @Override public void displayAllRelevantItems(NonNullList<ItemStack> items) { super.displayAllRelevantItems(items); items.add(FluidUtil.getFilledBucket(new FluidStack(ModFluids.FLUX_FLUID, 1))); } Ill leave it there if somebody needs it!
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.