diff --git a/common/src/main/java/dev/latvian/mods/kubejs/fluid/FluidBucketItemBuilder.java b/common/src/main/java/dev/latvian/mods/kubejs/fluid/FluidBucketItemBuilder.java index 79abced03..60f6efad2 100644 --- a/common/src/main/java/dev/latvian/mods/kubejs/fluid/FluidBucketItemBuilder.java +++ b/common/src/main/java/dev/latvian/mods/kubejs/fluid/FluidBucketItemBuilder.java @@ -21,6 +21,21 @@ public BucketItem createObject() { @Override public void generateAssetJsons(AssetJsonGenerator generator) { - generator.itemModel(id, m -> m.parent("kubejs:item/generated_bucket")); + if (modelJson != null) { + generator.json(AssetJsonGenerator.asItemModelLocation(id), modelJson); + return; + } + + generator.itemModel(id, m -> { + if (!parentModel.isEmpty()) { + m.parent(parentModel); + } else { + m.parent("kubejs:item/generated_bucket"); + } + + if (textureJson.size() > 0) { + m.textures(textureJson); + } + }); } }