How to Add Custom Recipes to Minecraft Datapack Tutorial (1.20.4 and older)

  Рет қаралды 13,069

WASD Build Team

WASD Build Team

Күн бұрын

This isn't needed after 1.20.5, as Component Crafting was added. This generator lets you make custom recipes now:
misode.github.io/recipe/
Tools used in this tutorial (needed if you are on a version before 1.20.5)
Recipe Generator:
crafting.thedestruc7i0n.ca/
Advancement Generator:
misode.github.io/advancement/
Loot Table Generator:
misode.github.io/loot-table/
Download the tutorial datapack:
www.dropbox.com/scl/fi/rd5meo...
Discord Link:
/ discord
Join our Patron server by supporting us on Patreon:
Get exclusive datapack updates and entire packs.
/ wasd_build_team
Learn about all the donation perks:
wasdbuildteam.website/donate/
*My Favorite Minecraft Server Host*
bisecthosting.com/WASD
Use Code "WASD" for 25% off your first month!
Chapters
00:00 - Intro
1:14 - Step 0
2:25 - Step 1
5:24 - Step 1 Bugtest
7:10 - Step 2
9:43 - Step 2 Bugtest
11:32 - Step 3
14:57 - Step 3 Bugtest
16:53 - Step 4
20:22 - Step 4 Bugtest
21:12 - Outro

Пікірлер: 99
@WASDBuildTeam
@WASDBuildTeam 6 ай бұрын
If other common issues come up with y'all following this tutorial, I'll put them here! EDIT, a better method was added. In 1.20.5+, Component Crafting was added. You can now just use a generator to make custom recipes now: Your recipe can have all the data you would want the output item to have, though as of now the input items still can't have any data. misode.github.io/recipe/
@m-yx3hq
@m-yx3hq Ай бұрын
It seems like in current snapshot 24w18a. (Which is what i planned to build a datapack for lols on.) That the datapack you share for download is currently not at all working, At least on my end.
@WASDBuildTeam
@WASDBuildTeam Ай бұрын
@m-yx3hq correct, it broke in 1.20.5 actually. Look into Component Crafting though. It is a way better method that replaces the need for this.
@m-yx3hq
@m-yx3hq Ай бұрын
​@@WASDBuildTeam Thank you so very much ! This indeed made all progress much easier once i followed that. Hopefully you'll release a new video soon with an updated method ? PS: For the sake of fun and learning i am trying my amateur experience, On making a datapack that can make use of the new Vaults to generate or make custom variants. With a custom loot table, And only make them unlock with a custom (maybe) craftable key. Anyways cheers ! And thanks for the helpful and certainly great guidance given to the comunity. 💜💜💜
@WASDBuildTeam
@WASDBuildTeam Ай бұрын
@@m-yx3hq Yeah, I'll definitely make a tutorial on it at some point. Just trying to get my datapacks updated before making any new tutorials.
@therealyoungprodigy
@therealyoungprodigy 6 ай бұрын
Honestly after so much research I was so grateful to find your tutorials!
@therealyoungprodigy
@therealyoungprodigy 6 ай бұрын
I was curious is it at all possible to force the loot book to be our custom item texture when we go to craft it
@WPatrickOfficial
@WPatrickOfficial 6 ай бұрын
Astounding tutorial. I've been wanting to add smaller ingredient-type objects for my custom data pack, like flour for bread and other in-between item types. Or like a set of copper tools. And this absolutely knocks it out of the park, you've earned a loyal subscriber haha. If you ever find a way to get it to.. not show as "knowledge book" in the crafting table once created, that would be.. lovely though to get another small update haha. But thank you SO much for all this effort you put in.
@WASDBuildTeam
@WASDBuildTeam 6 ай бұрын
Thanks for the kind words!
@datG0OSE
@datG0OSE 3 ай бұрын
your tutorials are actually usefull
@Will_-it3mh
@Will_-it3mh 3 ай бұрын
21:18 items components babyyyy ; D. awesome tutorial, after watching took less then 5 minutes to implement my first item without issue.
@WASDBuildTeam
@WASDBuildTeam 3 ай бұрын
Yeah, this tutorial is gonna be completely invalidated by Component Crafting when 1.20.5 comes out.
@aqua6554
@aqua6554 Ай бұрын
very helpful I just watched it because i wanned to make an enchanted golden apple recipe so thanks !!!! Also Liked the Vid
@uridavidson5
@uridavidson5 4 ай бұрын
Thank you oh so much! IT WORKS!
@Rignchen
@Rignchen 5 ай бұрын
for the loot table it's better to have 1 function were you set all the items inside of a storage and then use the copy nbt function inside the loot table, that way all items are stored in the same place and it's easier to change data in them
@WASDBuildTeam
@WASDBuildTeam 5 ай бұрын
That is pretty smart. Maybe a bit beyond the scope of a beginners tutorial but I might do that in my own packs.
@Rignchen
@Rignchen 5 ай бұрын
Yea I was honestly surprised you even talked about loot tables in a beginner tutorial
@federicomazzieri7851
@federicomazzieri7851 14 күн бұрын
Is that so you can see that it is a red emerald? and not a book? is there any way to do that?
@Rignchen
@Rignchen 13 күн бұрын
@@federicomazzieri7851 well instead of using loot table you can gave a ``give @s ...{...,CustomModelData:x}`` in a function and just call this functions as the player, but for multiple reason it's better to use loot tables
@Some_dude_Somewhere
@Some_dude_Somewhere 2 ай бұрын
I cant believe your videos are so useful but no one leaves a like. You don't deserve less than 1k likes. I am making a datapack and you are making me learn so much. You gained yourself a sub... :)
@fourcefn1921
@fourcefn1921 5 ай бұрын
Great tutorial😊😊
@RyDaCol
@RyDaCol Ай бұрын
Thanks mate
@Milim-.-Nava
@Milim-.-Nava 6 ай бұрын
Does this work with multiple crafting recipes? Would I need to make them craft into different items so that they don't overlap?
@WASDBuildTeam
@WASDBuildTeam 6 ай бұрын
Unlimited, yep. The output item (the knowledge book) doesn't matter as we don't detect the craft based on the output item, but instead off of the recipe itself.
@allthesith9616
@allthesith9616 5 ай бұрын
19:12 you have to do that because you can't use double quotes inside double quotes
@Muffin44434
@Muffin44434 19 күн бұрын
As a programmer, I instantly recognized that.
@Hyperperil
@Hyperperil 6 ай бұрын
Great tutorial! Out of curiosity, what is the advantage of using a loot table over giving the item directly to the player?
@WASDBuildTeam
@WASDBuildTeam 6 ай бұрын
No item pickup sound, and iirc the give command sometimes also has render issues or inventory not displaying the given item.
@Hyperperil
@Hyperperil 6 ай бұрын
@@WASDBuildTeamLegit! Thanks!
@StarSphereLeaf
@StarSphereLeaf 4 ай бұрын
Hello can you please tell how to make the recipes craft enchanted items if possible, thank you.
@WASDBuildTeam
@WASDBuildTeam 4 ай бұрын
That would be part of the data for the item. Just use a generator like MCStacker.net to make an item with data on it.
@StarSphereLeaf
@StarSphereLeaf 3 ай бұрын
@@WASDBuildTeam TYSM
@loginatorvgaming9885
@loginatorvgaming9885 6 ай бұрын
Just so people know for future notice; This method will likely break in 1.21 due to auto crafting and a new one will either have to be officially supported or a different workaround, such as unobtainable items or floor crafting, used.
@WASDBuildTeam
@WASDBuildTeam 6 ай бұрын
So far this method still works in the snapshots with the Crafter enabled, so it doesn't seem like that will be the case.
@Cryoa
@Cryoa 6 ай бұрын
Multiple utility packs have been made for custom crafting with the new crafter block as well! :)
@WASDBuildTeam
@WASDBuildTeam 6 ай бұрын
@@Cryoa I'll need to look into that. Unsure how they would have done that
@joetheprotogen
@joetheprotogen 5 ай бұрын
is there a way to add the texture pack in to the data pack so people dont have to install the texture pack separately
@WASDBuildTeam
@WASDBuildTeam 5 ай бұрын
Nope
@ethanco2
@ethanco2 2 күн бұрын
How would you do this if you wanted to place something like a crafting table into a minecart?
@WASDBuildTeam
@WASDBuildTeam 2 күн бұрын
You wouldn't. None of this tutorial would apply
@aravsurti390
@aravsurti390 2 ай бұрын
whenever I put it as a mcfunction, it always shows up as plain text. is there a fix to this?
@WASDBuildTeam
@WASDBuildTeam 2 ай бұрын
If you have installed Data Pack Helper Plus, you just need to set the language in the bottom right to be Mcfunction. Click where it says "Plain Text" and you can set the language!
@yamensabbah6928
@yamensabbah6928 6 ай бұрын
man , when i used your tool table (red emerald), it appeared on my minecraft on loot command "loot give @s loot mypack:red emerald", i made my loot table , if i write ( loot give @s loot ) my pack not showing and the coustom item , why ?
@WASDBuildTeam
@WASDBuildTeam 6 ай бұрын
Could be far too many things to answer in a comment. Definitely join my discord and ask for help there and I'll see if we can find the issue.
@haydopotato1310
@haydopotato1310 5 ай бұрын
if you don't shift click the item out of the crafting table, it retains its knowledge book form, even when placed in the inventory. How do you fix this?
@WASDBuildTeam
@WASDBuildTeam 5 ай бұрын
Glad we solved this on the Discord
@muzic3451
@muzic3451 Ай бұрын
But why not just in the crafting recipe to give the knowledge book with the necessary nbt?
@WASDBuildTeam
@WASDBuildTeam Ай бұрын
That wasn't a possible thing to do when the tutorial was made. 1.20.5 added Component Crafting which allows you to do this!
@Kobi-tx9yq
@Kobi-tx9yq 6 ай бұрын
is it possible to add right click abilities to swords?
@WASDBuildTeam
@WASDBuildTeam 6 ай бұрын
Sorta. Right-click detection is most easily done by having the base item be a carrot on a stick, which you can detect the click with a scoreboard. All my right-click swords are that method.
@Mr.Masked.
@Mr.Masked. 6 ай бұрын
Nice
@danielrhouck
@danielrhouck 3 ай бұрын
Is there no way to make the crafting output look correct, or is there one but it’s an advanced topic?
@WASDBuildTeam
@WASDBuildTeam 3 ай бұрын
Nope, this being a workaround rather than a good method means there are unsolvable issues unfortunately. Mojang would need to add NBT crafting for us to have a good method.
@danielrhouck
@danielrhouck 3 ай бұрын
@@WASDBuildTeamI was afraid of that. I can imagine it being possible with *smithing table* recipes because they can work with NBT in some ways that other types of recipes cannot, but even then it would require weird contortions. Is there a known way to modify this to work with autocrafters (and if so did it change today because of the snapshot)? You canʼt use the recipe, you could still grant an advancement but you wouldnʼt know what recipe was used, and I canʼt think of any more clever workarounds but Iʼm new to programming datapacks.
@WASDBuildTeam
@WASDBuildTeam 3 ай бұрын
@danielrhouck I haven't looked into auto crafters. Today's snapshot changes this a bit, but doesn't make it any better, just different as of right now. My assumption is a big change like this lays the groundwork for other new features though.
@danielrhouck
@danielrhouck 3 ай бұрын
@@WASDBuildTeam Seems you were right! If only my pack weren’t stuck targeting 1.20.1 for now
@Pete675u
@Pete675u 4 ай бұрын
I relly hope they add nbt to crafting soon
@royaku
@royaku 3 ай бұрын
omg yes that would be incredible we could craft specific items directly with specific new items
@isaactheboi8862
@isaactheboi8862 5 ай бұрын
Im up to the last step but even when i follow the step perfecty it doesnt help i did it once but when i tried to add attributes it just doesnt work anymore and i cant to the old one either
@WASDBuildTeam
@WASDBuildTeam 5 ай бұрын
That likely means you broke your loot table, and then with things broken you probably have the recipe/advancement already unlocked and need to unlearn them.
@maycoplays
@maycoplays 3 ай бұрын
you just saved me from a mental breakdown tysm
@Walker__91
@Walker__91 6 ай бұрын
So can I do this but the function summons a mob instead?
@WASDBuildTeam
@WASDBuildTeam 6 ай бұрын
You could put whatever you want in the function, yeah.
@justinindustries2747
@justinindustries2747 Ай бұрын
What's wrong with the /give command other than the popping sounds?
@WASDBuildTeam
@WASDBuildTeam Ай бұрын
Unsure actually. Luckily as of 1.20.5 there is a much better custom recipe method
@estoboi6811
@estoboi6811 Ай бұрын
@@WASDBuildTeam What is it?
@WASDBuildTeam
@WASDBuildTeam Ай бұрын
@@estoboi6811 Component Crafting!
@mwylie1085
@mwylie1085 4 ай бұрын
5:16 could we not just edit this file and replace the knowledge book with whatever custom item? (this coming from someone who doesn't do this kind of thing lol i'm just curious)
@WASDBuildTeam
@WASDBuildTeam 4 ай бұрын
Unfortunately no, that is why we have to do this roundabout method. It is really due to the fact that datapacks don't actually add new items to the game.
@Satwr
@Satwr 6 ай бұрын
Hey... Very Good Tutorial... i Made a plushie and i wanted to ask if there is a possibility that when you put the custom item in an item frame the name is not displayed
@WASDBuildTeam
@WASDBuildTeam 6 ай бұрын
I don't believe you can avoid that
@Satwr
@Satwr 6 ай бұрын
@@WASDBuildTeam Hmm okay... Thanks for the answer
@Kobi-tx9yq
@Kobi-tx9yq 6 ай бұрын
how good is mcreator to use for datapacks?
@WASDBuildTeam
@WASDBuildTeam 6 ай бұрын
I've never tried it but I would assume it isn't too terrible.
@pugsleygaming4512
@pugsleygaming4512 Ай бұрын
uhh when i try to craft it it doesnt show up in the output area
@user-ej5gb2ef8q
@user-ej5gb2ef8q 24 күн бұрын
If I change "item" to "id" in "result", does it not output correctly? Since version 1.20.5, "id" is required instead of "item" for correct output. If you have trouble with such a change, you can use the recipe generator for fixed comments. (by translator)
@solleehasnolife4780
@solleehasnolife4780 6 ай бұрын
my "loot_tables" file is bugged, the game sees it as a shared namespace and refuses to load anything from it plz help
@WASDBuildTeam
@WASDBuildTeam 6 ай бұрын
Hmm, definitely join my discord and ask for help there. I'm not 100% sure what the issue is so I'll need more info
@solleehasnolife4780
@solleehasnolife4780 6 ай бұрын
@@WASDBuildTeam I managed to fix it! turns out it was a skill issue on my part I had an invalid 1 in the loot tables file, also my data pack extension was wildly out of date and only just now decided to show its age.
@jimmynuetron765
@jimmynuetron765 Ай бұрын
is there a way to make the recipe hidden?
@WASDBuildTeam
@WASDBuildTeam Ай бұрын
This tutorial specifically can't make the recipe... not hidden.
@jomgamingph
@jomgamingph 2 ай бұрын
Can I combine two datapacks?
@WASDBuildTeam
@WASDBuildTeam 2 ай бұрын
Yes, you could combine any amount
@yassinamr8114
@yassinamr8114 Ай бұрын
if there was a "multiple" like button, i would have liked u forever, i wasted a WHOLE 6 HOURS DAILY FOR A WEEK
@mr_ghostboy3973
@mr_ghostboy3973 4 ай бұрын
Can you make custom recipes with custom items? And if you can, how?
@WASDBuildTeam
@WASDBuildTeam 4 ай бұрын
The ingredient cannot be custom, no. There isn't any workaround either besides coding your own crafting table, (a completely different task of course)
@mr_ghostboy3973
@mr_ghostboy3973 4 ай бұрын
Is there a way to code a new crafting table within a datapack?
@WASDBuildTeam
@WASDBuildTeam 4 ай бұрын
@mr_ghostboy3973 yes, i haven't made a tutorial on it because the method isn't super easy, but basically you use my custom block tutorial, but make the base block a dropper. Then using an NBT check you see if the contents of it match the recipe
@mr_ghostboy3973
@mr_ghostboy3973 4 ай бұрын
@@WASDBuildTeam okay, thank you very much, I will take a look if I can figure it out
@damianb_sw
@damianb_sw 5 ай бұрын
You need to escape quotations with \" because it's the third nesting of quotes - you are already inside " and '
@WASDBuildTeam
@WASDBuildTeam 5 ай бұрын
Oh, very interesting. I have no coding background so I wouldn't know, but good to know!
@MillowWillow
@MillowWillow 3 ай бұрын
i watch your tutorials but for me it doesn't work got any suggestions?
@WASDBuildTeam
@WASDBuildTeam 3 ай бұрын
Definitely making a mistake somewhere. Feel free to join my discord and ask for help there and I can help spot the issue.
@Kobi-tx9yq
@Kobi-tx9yq 6 ай бұрын
you are the defenition of a tutorial gigachad its such a good tutorial even i a 13 year old blud understood it
@JedisLightning
@JedisLightning 7 күн бұрын
can you make a new vid foe 1.21
@WASDBuildTeam
@WASDBuildTeam 6 күн бұрын
At some point, yes. It just came out so I have a lot to do
@RizvanRis
@RizvanRis 5 ай бұрын
Don't Download First Install Custom Crafting Items @#Plugin
How to Add Custom Blocks to Minecraft Datapack Tutorial
29:47
WASD Build Team
Рет қаралды 9 М.
The Perfect Start to Minecraft Hardcore
1:00:47
sandiction
Рет қаралды 6 МЛН
ТАМАЕВ vs ВЕНГАЛБИ. ФИНАЛЬНАЯ ГОНКА! BMW M5 против CLS
47:36
DELETE TOXICITY = 5 LEGENDARY STARR DROPS!
02:20
Brawl Stars
Рет қаралды 20 МЛН
PINK STEERING STEERING CAR
00:31
Levsob
Рет қаралды 21 МЛН
Custom Items Plugin | Minecraft
10:57
AdvancedPlugins
Рет қаралды 1,6 М.
I Asked AI To Make Redstone For Me
10:38
Purplers
Рет қаралды 2,1 МЛН
I Added Infinite Crafting to Minecraft (with AI)
13:08
Blucubed
Рет қаралды 583 М.
83 Evil Pranks to Ruin Your Friendships in Minecraft
39:18
Skip the Tutorial
Рет қаралды 2 МЛН
Custom Potions and 50 New Blocks || Minecraft Datapack Devlog
20:07
MyNameIsBhex
Рет қаралды 2,7 М.
I coded more of ur STUPID ideas to Minecraft
13:53
Element X
Рет қаралды 610 М.
How to 100% Minecraft
16:05
Blucubed
Рет қаралды 1,7 МЛН
28 Minecraft Things You Should Start Doing
13:50
Wifies
Рет қаралды 14 МЛН
How to ADD Custom Items to Minecraft in 1.19.3+ Datapack Tutorial
22:07
ПАУ КЕК ҚАЙТАРМАҚШЫ
12:59
Armani -KazakhHL-
Рет қаралды 24 М.
skibidi toilet - season 24 (all episodes)
25:14
DaFuq!?Boom!
Рет қаралды 19 МЛН
ЗЛОЙ РАТТЕ VS ЧЕШСКИЙ МОРТИРА-МОНСТР
6:37