3
Hey guys!
I'm new to datapack making and I'm currently on the progress of my first datapack, which is a custom recipe I made with help from this site.
The problem is: it uses water bucket on its crafting recipe, and filled buckets are known for its uniqueness that is you get an empty bucket back. I.e.: three buckets leftovers from milk buckets of a cake recipe, bucket back from using lava bucket as fuel and so on, you got the idea.
My recipe uses water bucket + a fish to create a fish bucket, but when I was testing the pack, I ended up getting duplicate buckets (the fish bucket as a result, and the empty bucket as leftover), and I don't want this to happen, I wanna make the bucket be consumed so you can get it back with a fish on it, and not make a new one because it'd be cheaty and broken.
Is there a way to "bypass" or disable this functionality just for this pack?
Sorry for making it a long read I just wanted to make sure I make everything clear, and thanks for your time. Any help will be appreciated.
I'm new to datapack making and I'm currently on the progress of my first datapack, which is a custom recipe I made with help from this site.
The problem is: it uses water bucket on its crafting recipe, and filled buckets are known for its uniqueness that is you get an empty bucket back. I.e.: three buckets leftovers from milk buckets of a cake recipe, bucket back from using lava bucket as fuel and so on, you got the idea.
My recipe uses water bucket + a fish to create a fish bucket, but when I was testing the pack, I ended up getting duplicate buckets (the fish bucket as a result, and the empty bucket as leftover), and I don't want this to happen, I wanna make the bucket be consumed so you can get it back with a fish on it, and not make a new one because it'd be cheaty and broken.
Is there a way to "bypass" or disable this functionality just for this pack?
Sorry for making it a long read I just wanted to make sure I make everything clear, and thanks for your time. Any help will be appreciated.
Create an account or sign in to comment.
4
1
u can add the recipe
egg+fish =fish spawn egg and then put the egg and catch it as any other fish
egg+fish =fish spawn egg and then put the egg and catch it as any other fish
1
You can detect when that item is made and them run a give command with the said item (bucket or bottle). To detect the item being crafted, well... I don't know how...
3
What about this?
fish+water bucket = useless item, said useless item + original bucket = fish bucket
fish+water bucket = useless item, said useless item + original bucket = fish bucket
3
Floor Crafting. Throw the required items to craft it. You can control what it makes.
e.g:
First MCFunction
Second MCFunction
e.g:
First MCFunction
execute as @e[type=item,nbt={Item:{id:"minecraft:bucket",Count:1b}}] at @s if entity @e[type=item,nbt={Item:{id:"minecraft:cod",Count:1b}},distance=..1] run function YOUR_DATAPACK:SECOND_MCF
Second MCFunction
summon minecraft:item ~ ~1.5 ~ {Item:{id:"minecraft:cod_bucket",Count:1b}}
kill @e[type=item,distance=..1]