Jump to content

[RESOLVED][1.12.2] Trying to get universal bucket into a custom creative tab?


tigres810

Recommended Posts

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 by tigres810
I forgot to add some things
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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