KubeJS (Old)

KubeJS (Old)

3M Downloads

Changing item ID of bucket

squoshi opened this issue ยท 1 comments

commented

Describe the feature

I tried to put .id after the bucket item but it came out as an illegal access error. Being able to change it would be nice because "tanks" instead of buckets would be a cool thing

Additional info

No response

commented

This should be expanded to addinf better support for modifying 'sub builders', like fluids item and block, and blocks item.

As for the actual issue, the id field is final.
One solution would be to make it non final, but i dont think thats a good solution.
A better one would be to add a second constructor to FluidBucketItemBuilder that doesn't append _bucket to the id.