Interactio - In-World Crafting with Datapacks!

Interactio - In-World Crafting with Datapacks!

3M Downloads

Ceramics Clay Buckets

benbenlaw opened this issue ยท 2 comments

commented

so i have made a recipe which uses a empty clay bucket thrown into water to make a filled water bucket, however the recipe acepts any filled bucket

{
"type": "interactio:item_fluid_transform",
"inputs": [
{
"item": "ceramics:clay_bucket",
"count": 1
}
],
"fluid": {
"fluid": "minecraft:water"
},
"output": {
"item": "ceramics:clay_bucket",
"count": 1,
"nbt": {
"fluid": "minecraft:water"
}
},
"consume_fluid": 0
}

commented

Clay buckets store the fluid they contain in their NBT data as you've already noticed. By default, Ingredients ignore NBT data when checking for inputs. To make them respect it explicitly, use

{
  "type": "forge:nbt", // custom ingredient type, only works on forge
  "item": "ceramics:clay_bucket",
  "count": 1,
  "nbt": ""
}
commented

To be 100% clear, you need to use that inside the ingredient tag, so

{
  "ingredient": {
    "type": "forge:nbt", // custom ingredient type, only works on forge
    "item": "ceramics:clay_bucket",
    "count": 1,
    "nbt": ""
  }
}