Let's Code Ep. 1 - Throwable Water || Minecraft Data Pack Tutorial Series

  Рет қаралды 53,148

Timber Forge

Timber Forge

4 жыл бұрын

This is the first episode of a series that I will be doing in which I will be creating small data packs just like this one in order to give people a good example of how creating data packs is done. I hope to show those who are interested in getting started in creating data packs how it can be done, starting from something very simple and eventually going out into more complicated projects.
Check out my new website!
tinyurl.com/timberforge
Join our discord for help and inspiration!
discord.gg/bwBsSbr
#datapacks #minecraftmods #minecraftdatapacks

Пікірлер: 143
@sonicbro6446
@sonicbro6446 4 жыл бұрын
my first datapack was Survival Command Blocks making so you could craft & use command blocks in survival
@electriceel-archive
@electriceel-archive 4 жыл бұрын
@@sonicbro6446 thats smart
@IdaeChop
@IdaeChop 3 жыл бұрын
but can yyou break it?
@sonicbro6446
@sonicbro6446 3 жыл бұрын
@@IdaeChop idk probably
@generamikus8322
@generamikus8322 3 жыл бұрын
/gamemode 1
@electriceel-archive
@electriceel-archive 3 жыл бұрын
@@generamikus8322 nununu /gamemode creative :L
@itaific2425
@itaific2425 3 жыл бұрын
dude, you dont even know how much you helped me i didnt know you could use the nbt to specificaly detect a block or entity, it will help me so much
@catcrafterkid7066
@catcrafterkid7066 3 жыл бұрын
imagine doing everything correctly but in the "data" folder instead of "datapacks".
@igorbakker8697
@igorbakker8697 3 жыл бұрын
ooooooooooooooooooooooooooooooooooooof
@danteezy945
@danteezy945 3 жыл бұрын
Big F
@Charlie59876
@Charlie59876 3 жыл бұрын
i always do shit like that lmao i always put it in the wrong fckn folder
@erikbroos5456
@erikbroos5456 3 жыл бұрын
hahahah same
@ranvit281
@ranvit281 2 жыл бұрын
imagine getting past the first step 😂🤣
@melo.4130
@melo.4130 3 жыл бұрын
these videos are so good to find, really loving getting into this.
@ProdigyDH
@ProdigyDH 4 жыл бұрын
loving it! I know nothing about coding, but I'm trying to learn through here. please do more :)
@TimberForge
@TimberForge 4 жыл бұрын
I definitely will do more! Glad you like the series. Do you prefer if I show me as I code the project? Or do you think you would maybe prefer if I finish the project, and then go line by line to explain what I did?
@ProdigyDH
@ProdigyDH 4 жыл бұрын
@@TimberForge I would probably prefer showing you as you code, and hearing your thought process!
@TimberForge
@TimberForge 4 жыл бұрын
Ok thank you for the feedback! I definitely created this series with that in mind, and is probably what I’ll stick to for now.
@a--...--.--45
@a--...--.--45 4 жыл бұрын
Devon the Huge This Isn’t Coding it’s command blocs
@TimberForge
@TimberForge 4 жыл бұрын
It requires a similar mindset to coding and can act as an introduction to real coding.
@ThatVeenex
@ThatVeenex 3 жыл бұрын
You have no idea how much this helped i made a snow ball called the snowbomb that explodes when it hits a surface this video was such a help thank you :)
@austinpowersasmaozedong
@austinpowersasmaozedong 4 жыл бұрын
Nice! looking forward to what this series holds, I'd like a tutorial on data packs changing block drops and crafting recipes, but you can make them if you want.
@TimberForge
@TimberForge 4 жыл бұрын
Ok! Block drops would be loot tables, and crafting recipes have their own files, but the thing is that built custom crafting can’t create custom items unless you have a whole new system of crafting(like in my tank data pack).
@austinpowersasmaozedong
@austinpowersasmaozedong 4 жыл бұрын
@@TimberForge I see, I Learnt a IittIe more about block drops and the fact that data packs don't really impact crafting recipes since they use other fiIes, but again if you ever want to do a tutorial on those feel free, you don't have to. I want to learn more from this series tbh lol.
@TimberForge
@TimberForge 4 жыл бұрын
Cool! But idk if i misunderstood you, but function files arent the only file in data packs. You can also add loot tables, advancements, and also crafting recipes, but you can only do them for default items, so not for custom items yet. (So you COULD make a custom crafting recipe for a diamond sword, but not for a diamond sword called “Yeet” with sharpness 2)
@austinpowersasmaozedong
@austinpowersasmaozedong 4 жыл бұрын
sorry if I sound confusing in the Last repIy, yes I now know aII about the separate Ioot tabIe and recipes fiIes after doing a IittIe bit of digging, custom recipes can't be crafted into an item with nbt tags if the original item doesn't have nbt tags, but there are workarounds by repIacing the nbt tag of a spawn egg since those already have established nbt tags on them, then using texture packs you can make it Iook different. Minecraft is a pretty complex yet simpIe game when it comes to using various elements within the game to create something fun
@bluegamemc1403
@bluegamemc1403 2 жыл бұрын
one cool side effect to this is if you throw a snowball at a sponge at will automatically wet the sponge
@gamedierepeat3351
@gamedierepeat3351 4 жыл бұрын
you deserve more subs
@sawmaker52
@sawmaker52 3 жыл бұрын
good channel learning alot
@nitro_dynamite18
@nitro_dynamite18 3 жыл бұрын
I like how you did this, but you should also try to include another condition for the block the Snowball is about to hit, which is that it shouldn't place Water when it is about to hit Water.
@diamondminor
@diamondminor 3 жыл бұрын
For anyone wondering why the water still doesn’t get placed sometimes, carat notation (^ ^ ^) is dog crap on Java with projectiles. If you press F3+B then shoot an arrow or throw an egg/snowball and follow it, the blue line (where the entity is “facing”) it spins around wildly which makes it very unreliable for use with carat notation.
@TimberForge
@TimberForge 3 жыл бұрын
Yeah I didn’t know that at the time, I told some other people to just do normal relative coordinates on all sides of the snowball instead(for a basic solution)
@crazysheep617
@crazysheep617 4 жыл бұрын
very nice video
@JH-vm7wl
@JH-vm7wl 2 жыл бұрын
another way i came up with: you can use a bow, so its easier to detect if it collided (in exchange to be slower) (you can change stone to water if you want) execute as @e[type=minecraft:arrow,nbt={inGround:1b}] at @s run fill ~ ~ ~ ~ ~ ~ stone replace minecraft:air execute as @e[type=minecraft:arrow,nbt={inGround:1b}] run kill @s
@isaacmc5332
@isaacmc5332 Жыл бұрын
YOU ARE GODD MAN!!!! YOU ARE A FUCKING GOD BROOO
@JH-vm7wl
@JH-vm7wl Жыл бұрын
@@isaacmc5332 S2
@zordonelite
@zordonelite 4 жыл бұрын
Is there a way so the snowball summons tnt on impact? Im having trouble figuring it out
@TimberForge
@TimberForge 4 жыл бұрын
Yeah just do the same detection that I used but just add the detection on all sides of the snowball. On detection use a summon tnt ~ ~ ~ command or use a summon creeper command to be able to control the fuse and power of the creeper.
@animationspace8550
@animationspace8550 2 жыл бұрын
Can you do something with arrows please? I kind of want to make arrows that can summon phantoms in the arc they travel which would be simple, but also be tipped and blind players, maybe even have a particle effect, while being an exclusive arrow. It seems nbts for arrows are a lot more different?
@TufDunav-old-
@TufDunav-old- 2 жыл бұрын
Tyyyyy
@rkyielliwanag4675
@rkyielliwanag4675 3 жыл бұрын
the water thing does not work anymore with snow
@Tuntor689
@Tuntor689 3 жыл бұрын
Cool! But isn’t that just a water balloon?
@coolman36kmaway34
@coolman36kmaway34 3 жыл бұрын
omg how I did not knew the execute command 😲
@r50142
@r50142 2 жыл бұрын
how do I get nbt data from the books?
@hydrobyte4844
@hydrobyte4844 4 жыл бұрын
first datapack was noob crossbow basically it auto loads for me i used the replaceitem command
@ethanyang6812
@ethanyang6812 4 жыл бұрын
I like turtles.
@BoomBoomMushroom
@BoomBoomMushroom 4 жыл бұрын
I like cats
@ryanfink8011
@ryanfink8011 4 жыл бұрын
I like trains
@maxg971
@maxg971 2 жыл бұрын
how do you type oput the up facing < things? I'm struggling
@TimberForge
@TimberForge 2 жыл бұрын
Shift 6
@RazKun
@RazKun 4 жыл бұрын
Is it possible to use these kind of codings to adjust where the player camera is?
@TimberForge
@TimberForge 4 жыл бұрын
No, you can only use the first second and third person views.
@RazKun
@RazKun 4 жыл бұрын
@@TimberForge Aww darn, i just wanted to move the 3rd person view slightly off to one side so i could get an over the shoulder 3rd person view like the old shoulder surfing mod. ;P Just makes rpg stuff feel nicer if i can see me and what im doing at the same time
@TimberForge
@TimberForge 4 жыл бұрын
Under specific situations you can do it, but you have to sacrifice some default functionality. If you make yourself invisible and then make a custom player model for a RPG map, you can offset where the player model displays, but you will sacrifice default right and left click because the crosshair placement will be off. But if you are making a map with super controlled and custom combat, it could work.
@piokiash9259
@piokiash9259 4 жыл бұрын
Hey I used a resource pack to change the texture of a snowball with the given tag. But if I change the texture it isn't working???? So you know Eu?
@TimberForge
@TimberForge 4 жыл бұрын
What does it become? If its a purple black missing texture then check the announcements tab in the discord server, there are many solutions.
@piokiash9259
@piokiash9259 4 жыл бұрын
Really sorry. The texture is OK the problem is I didnt typed the command correctly
@killianobrien2007
@killianobrien2007 3 жыл бұрын
How do use set block with a lot of different blocks together?
@lukas-po1wj
@lukas-po1wj 2 жыл бұрын
fill?
@valentinperiotti5332
@valentinperiotti5332 3 жыл бұрын
Is there any way to make the water block air again after some seconds?
@TimberForge
@TimberForge 3 жыл бұрын
Yeah, run a new function(or chain of commands) instead of just setting water. Then in the function, set the block to water and then summon an area effect cloud that has a duration of whatever lifespan you want it to have. Make sure the area effect cloud has a certain tag you can use to identify it.You could do this on MCstacker.net. Then run a command in the loop which looks for all area effect clouds which are about to run out(like the age or duration or lifespan or whatever the nbt is) and fills the block with air replacing water.
@Mikatetsuro
@Mikatetsuro 3 жыл бұрын
how to used it with summon lightnings
@andrem4202
@andrem4202 4 жыл бұрын
What version does this work for? Can you use this in 1.14.4 or 1.15.2?
@TimberForge
@TimberForge 4 жыл бұрын
Should work for anything above 1.13, but i discovered that snowballs dont face the direction they travel in, so you want to add extra block checks for all sides of the snowball, not just the forwards and down checks like I did.
@zordonelite
@zordonelite 4 жыл бұрын
@@TimberForge How would you do that?
@TimberForge
@TimberForge 4 жыл бұрын
The same thing I did where I detected in front of it with the ^ ^ ^1 coordinates, but instead do ~ ~ ~ detections on all sides. If you dont understand that, look up how to use minecraft relative and vector coordinates.
@afffe4444
@afffe4444 3 жыл бұрын
Can you make datapacks to resourcepacs?
@TimberForge
@TimberForge 3 жыл бұрын
They are separate but work together
@joeagar5858
@joeagar5858 2 жыл бұрын
I typed In the command block command and it didn't work, pls help
@catinacult
@catinacult 4 жыл бұрын
Really good tutorial just a feedbacki searched for "throwable water command block" in youtube and you didn't came up either you are using the tags in a not effective way or the algorithm just hates you
@TimberForge
@TimberForge 4 жыл бұрын
Well there is a tag limit and i use more broad terms for the tag because most people don’t search for that phrase, and more search for stuff like minecraft data pack tutorial or minecraft custom items. Also it doesn’t have a lot of views and YT prioritizes higher view non relevant videos over relevant low view videos.
@catinacult
@catinacult 4 жыл бұрын
@@TimberForge yeah makes sense
@TimberForge
@TimberForge 3 жыл бұрын
Mcfunction for commands.
@nathanc11
@nathanc11 3 жыл бұрын
@Vinayak Luharuka yes
@nathanc11
@nathanc11 3 жыл бұрын
@Vinayak Luharuka yes
@lukaz078
@lukaz078 3 жыл бұрын
How can you add wait times?
@TimberForge
@TimberForge 3 жыл бұрын
I recently made a video on timers/delays you can check out. I also have a delay in my lightsaber video.
@user-ch5sc3vp5m
@user-ch5sc3vp5m 2 жыл бұрын
i doesbt work for me i checked and it should be working but it doesnt
@catcrafterkid7066
@catcrafterkid7066 3 жыл бұрын
second comment, but on a LAN server, can two people work on the same datapack and test it on the same world?
@TimberForge
@TimberForge 3 жыл бұрын
Well only one person, the host of the server, has access to the save file, so probably only the host could do it. But i mean another person could send the file to the host who puts in into the save file.
@catcrafterkid7066
@catcrafterkid7066 3 жыл бұрын
@@TimberForge k ty :) but how would they send it to me?
@TimberForge
@TimberForge 3 жыл бұрын
Google drive, dropbox, discord, text, mediafire, email, etc. Its just sending files and then dragging them in.
@catcrafterkid7066
@catcrafterkid7066 3 жыл бұрын
@@TimberForge ok thanks :D
@catcrafterkid7066
@catcrafterkid7066 3 жыл бұрын
@@TimberForge last thing (sorry if I'm annoying you) I did all the stuff for the datapack, and it won't work on another world, as in I do what I need to do with the premade pack, it just doesn't work.
@asuramaru8180
@asuramaru8180 2 жыл бұрын
for some reason this is only working for me when the snowball faces N/S. also its still really finicky if u hit the block at angles
@asuramaru8180
@asuramaru8180 2 жыл бұрын
i should mention that im talking specifically about hitting walls. hitting the ground works fine
@TimberForge
@TimberForge 2 жыл бұрын
Yeah its because the snowball rotation doesnt actually face where it flies which I didn’t know at the time, so you would need detections in all relative directions.
@masproduction2023
@masproduction2023 3 жыл бұрын
If i was to add this datapack somewhere else on my server how can i get the snowball
@TimberForge
@TimberForge 3 жыл бұрын
The give command
@masproduction2023
@masproduction2023 3 жыл бұрын
@@TimberForge thx as well as can you do a plane or car datapack tutorial
@masproduction2023
@masproduction2023 3 жыл бұрын
That would be nice
@masproduction2023
@masproduction2023 3 жыл бұрын
sorry what do say after give because I cant find it
@TimberForge
@TimberForge 3 жыл бұрын
Its the same command I used to give myself the snowball.
@nickysilverstein4113
@nickysilverstein4113 3 жыл бұрын
the code in loop function isn't traveling into my game no matter how many times i reload and save
@nickysilverstein4113
@nickysilverstein4113 3 жыл бұрын
nvm
@amitdhir
@amitdhir 3 жыл бұрын
how did you fix it?
@nickysilverstein4113
@nickysilverstein4113 3 жыл бұрын
@@amitdhir I just made a new data pack (using the template) and transfered the same code
@Merrical
@Merrical 3 жыл бұрын
I would love to know how to place a block around an entity
@TimberForge
@TimberForge 3 жыл бұрын
Use the execute and setblock command.
@thcubes5550
@thcubes5550 4 жыл бұрын
Anyone know how I could change this to make it summon tnt for grenade?
@TimberForge
@TimberForge 4 жыл бұрын
Replace the setblock water to summon TNT. You can also download the explosives data pack challenge and take a loot at the code if you know how.
@thcubes5550
@thcubes5550 4 жыл бұрын
@@TimberForge do you have a link to the explosives data pack and could I use them on a server I own?
@IchBinCaptainIglo
@IchBinCaptainIglo 3 жыл бұрын
Hello! I was trying implementing this and noticed that this works whenever i throw the snowballs south or north, however not when I throw them east or west. Am I missing something here?
@TimberForge
@TimberForge 3 жыл бұрын
Yeah so i didn’t know at the time, but snowballs dont actually face the direction they fly:/. Add detections on ALL sides of the snowball.
@IchBinCaptainIglo
@IchBinCaptainIglo 3 жыл бұрын
@@TimberForge Ah, that makes sense. Thanks a lot!
@binauralcow
@binauralcow 2 жыл бұрын
did I do something wrong (it didn't work) here is what I put: execute as @e[type=minecraft:snowball,nbt={Item:{tag:{water:1b}}}] run say hi for the first bit and it doesn't work plz help pleeeeeeeeeeeeeeeeeeeeeeease
@BoomBoomMushroom
@BoomBoomMushroom 4 жыл бұрын
Helo I can't add custom tags like Water 1b
@TimberForge
@TimberForge 4 жыл бұрын
Make sure its water:1b not Water 1b.
@BoomBoomMushroom
@BoomBoomMushroom 4 жыл бұрын
@@TimberForge ohh okay thanks
@kriszenn1125
@kriszenn1125 4 жыл бұрын
@@BoomBoomMushroom Also, 1b is a value in binary, so basically these tags are like variables. you can assign 352b too, and that'll be 352 in binary
@HeyItsDoodler
@HeyItsDoodler 4 жыл бұрын
It would be cool if you joined the datapack center community, we’ve got a discord and a forum website datapackcenter.com/
@HeyItsDoodler
@HeyItsDoodler 4 жыл бұрын
Also be really cool if you could review it
@TimberForge
@TimberForge 4 жыл бұрын
Ill check it out!
@TimberForge
@TimberForge 4 жыл бұрын
I joined :D
@HeyItsDoodler
@HeyItsDoodler 4 жыл бұрын
Timber Forge nice
@HeyItsDoodler
@HeyItsDoodler 4 жыл бұрын
@@TimberForge I've you considered joining the datajam :)
@kzfka
@kzfka 4 жыл бұрын
I cant enable my datapack
@jaydengreenberg9618
@jaydengreenberg9618 4 жыл бұрын
Do /datapack enable
@catcrafterkid7066
@catcrafterkid7066 3 жыл бұрын
third comment: the datapack was working, then it suddenly stopped working. why?
@nuduw
@nuduw 3 жыл бұрын
Doesn't work for me
@binauralcow
@binauralcow 2 жыл бұрын
oh my god I'm an idiot my command block was needs redstone.
@zumoq
@zumoq 3 жыл бұрын
im not typing all this out just to get most likely a fail someone please type this out so others dont have to waste their time
@ULTRABEAN-zh5wz
@ULTRABEAN-zh5wz 3 жыл бұрын
5:29
@parker5020
@parker5020 2 жыл бұрын
13:23
@shadoestorme
@shadoestorme 3 жыл бұрын
the snowballs "view" changes after i throw it so i cant get consistent water
@TimberForge
@TimberForge 3 жыл бұрын
Yeah i just add detections for all cardinal directions and top and bottom cause i realized the rotation is weird.
@EggMaster421
@EggMaster421 4 жыл бұрын
Wait, that's illegal
@parker5020
@parker5020 2 жыл бұрын
no its not. its just a datapack.
@krystianspiewak2318
@krystianspiewak2318 4 жыл бұрын
sorry that i cant like :c its 69 likes already
Let's Code Ep. 2 - Jump Pack || Minecraft Data Pack Tutorial
27:04
Timber Forge
Рет қаралды 18 М.
How to Make a Datapack [Minecraft 1.20-1.16] Datapack Tutorial
9:25
He Threw A Banana Peel At A Child🍌🙈😿
00:27
Giggle Jiggle
Рет қаралды 17 МЛН
小路飞姐姐居然让路飞小路飞都消失了#海贼王  #路飞
00:47
路飞与唐舞桐
Рет қаралды 90 МЛН
How to add custom blocks in Minecraft
7:20
TheRedEngineer
Рет қаралды 8 М.
5 Cool Tricks with ONE Command!
9:21
BlockerLocker
Рет қаралды 637 М.
How to use Interaction Entities in Minecraft
7:03
Cloud Wolf
Рет қаралды 30 М.
How to Optimize Your Datapack
9:13
Cloud Wolf
Рет қаралды 19 М.
The New Generation of Mods - Minecraft Data Packs Explained
10:12
Timber Forge
Рет қаралды 147 М.
I Made A Rubik's Cube In Vanilla Minecraft
11:45
Purplers
Рет қаралды 224 М.
20 Mind Blowing Data pack & Command Block Creations in Minecraft
12:25
Make Your Own CUSTOM MOBS [1] || Minecraft Data Pack Tutorial
19:21
Timber Forge
Рет қаралды 297 М.
I Fixed Minecraft's Archaeology!
12:01
CodeNeon
Рет қаралды 226 М.
Reinventing Minecraft world generation by Henrik Kniberg
49:41
Please Help Steve Take The Water
0:32
ToonToon Daily
Рет қаралды 26 МЛН
Битва блоков в Майнкрафт 3
1:00
Домичек
Рет қаралды 706 М.
Villager SAVES The Noob From Zombie Apocalypse! 🧟
0:59
MineSauce
Рет қаралды 7 МЛН