Forumskeyboard_arrow_right Minecraft - Java Edition keyboard_arrow_right Data Packs

Create Forum Thread

Help with buckets in custom recipes!

2 emeralds2 replies104 views
created 06/29/2019 11:33 pm by Alast00r history
last reply 07/18/2019 7:12 pm
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.
Posted by avatar
Level 1 : New Miner

comment Login or register to post a reply.

2 replies

07/18/2019 7:12 pm
Level 19 : Journeyman Ninja
What about this?

fish+water bucket = useless item, said useless item + original bucket = fish bucket
07/18/2019 6:52 pmhistory
Level 49 : Master Dragon
Revon Zev
Floor Crafting. Throw the required items to craft it. You can control what it makes.
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]

Planet Minecraft



© 2010 - 2019