JsonThings icon indicating copy to clipboard operation
JsonThings copied to clipboard

[Bug] Json Things Fluid Buckets do not expose a forge fluid handler capability

Open KnightMiner opened this issue 10 months ago • 4 comments

While testing a new feature in my JSON addon for Tinkers', I noticed that the fluid bucket does not have a fluid handler registered.

This is due to the fact that you extend BucketItem with FlexBucketItem, but Forge only exposes its capability if the class is exactly BucketItem. It should be as simple a fix as overriding the method to use the forge capability handler.

Image

As an aside, it would be nice if bucket items automatically set the container to minecraft:bucket if unset, along with the max stack size to 1 if unset. Not sure if your setup makes that reasonable to do easily or not; just would save some confusion with forgetting to set those values.

Experienced this bug on 1.20.1 on Json Things 0.9.9, have not verified the Neo source on 1.21 but I suspect the issue persists unless Neo changed their BucketItem patch.

KnightMiner avatar Mar 01 '25 23:03 KnightMiner

Oh that's evil. I'll fix as soon as I can (probably tomorrow)

gigaherz avatar Mar 01 '25 23:03 gigaherz

If I had to guess its to avoid adding a fluid cap to fish buckets in vanilla. Forge decided it was easier to do the conditional method patch than two patches.

KnightMiner avatar Mar 01 '25 23:03 KnightMiner

Looks like this has been fixed on GitHub, but not yet released. Any update on it?

KnightMiner avatar Jun 12 '25 23:06 KnightMiner

I haven't had much energy to work on my mods. I intended on finishing the port to 1.21.5 then release but it hasn't happened yet. since 1.21.6 is around the corner I want to finish some things this weekend but I can't make any promises.

gigaherz avatar Jun 13 '25 07:06 gigaherz