#drinkable buckets

13 messages · Page 1 of 1 (latest)

storm sail
#

i have truly been getting owned by this endeavour and at this point am beginning to think i may have to go beyond kubejs and just write a mod so i can use mixins to do this.

before i do that though, i figured i'd ask if anyone else has any idea of how to accomplish this? merely adding the food component to a bucket item is not enough to make it edible, and i assume this is because buckets already have defined onRightClick behaviour.

i've been using the buckets from modern_industrialization for testing and they have no actual right click behavior because nearly none of the fluids are placeable, but they extend BucketItem which is what i think is the root of the issue.

glacial vigilBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

storm sail
#

so i've been trying to make the various fluid buckets from modern industrialization "edible" by just adding a food component to them and it's driving me a little mad

#

that premise works when applied to basically any other item, like minecraft:diamond or other simple items

#

but i think for anything that extends BucketItem there's code that overrides the right-click behavior that's getting in my way

#

is there a way to get around this via KubeJS or am i better off just giving in and writing a full mod to be able to use mixins

ionic ivy
#

you can use the right click events and maybe call start/finish using from there? im not sure how well thay will work though.

#

if it were on older versions you could registry replace the buckets but that wont work here (and would be annoyingly buggy anyway unless there was already a mod that had a drinkable bucket)

#

a full mod is definitely the best solution here

steady cradle
#

dont you just add the edible component to the item

#

/give @s minecraft:diamond[food={nutrition:3,saturation:2,can_always_eat:true}] thats a command example

#

weird you said adding the component didnt work

ionic ivy
#

cause buckets override the use logic that makes that edibleness work