3

Help with buckets in custom recipes!

Alast00r's Avatar Alast00r6/29/19 11:33 pm history
3 emeralds 2.2k 4
11/7/2020 11:06 am
pedrogmyt's Avatar pedrogmyt
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 Alast00r's Avatar
Alast00r
Level 1 : New Miner
0

Create an account or sign in to comment.

4

1
11/07/2020 11:06 am
Level 9 : Apprentice Modder
pedrogmyt
pedrogmyt's Avatar
u can add the recipe

egg+fish =fish spawn egg and then put the egg and catch it as any other fish
1
08/30/2020 8:56 am
Level 5 : Apprentice Miner
HugOak
HugOak's Avatar
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
07/18/2019 7:12 pm
Level 26 : Expert Ninja
AwesomeNinja886
AwesomeNinja886's Avatar
What about this?

fish+water bucket = useless item, said useless item + original bucket = fish bucket
3
07/18/2019 6:52 pmhistory
Level 62 : High Grandmaster Dragon
RevonZev
RevonZev's Avatar
Floor Crafting. Throw the required items to craft it. You can control what it makes.
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]
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome