Hey guys so today we are going over a pretty simple 1.13 concept but anyways so this video is to cover basic setup for functions with repeating ticks and loading things so like take and load and then I’ll talk a little bit about the strategies for creating a function pack There won’t be much going on in here it’s mainly in the files so let’s hop on over to the files so these are my data packs data packs are the new thing you use you can have more than one data pack here I have one for the infinity flowers I have one for a math I with one for test and I have one for data pack just it’s called data pack so we’re gonna create a data pack and what you need is you need to create a new folder in your data packs and call it tick tick slash Load tick load I’ll call it tick load all right so we’ll go into the tick load and you need to I have a previous video that I’ll have a link in the description for which will which talks about creating functions like setting up files for functions but basically you just Take this stuff so you have the packet MC meta file just like how a resource pack has a pack that MC meta file format is 3 inside it you go data and then you go the name so test and then inside we have functions and we have a list of Functions here I’m going to delete all of these except for main so you can see how to use this so let me take out the main let’s delete that then let’s go over here and let’s go back so we want the main to repeat in the game without Having an actual command block there so then what you need is this so I’ll go over what it is what you need is to go test functions all right now see how we go to test right instead of going into test we’re going to put this new thing called minecraft You’re going to make a new folder called Minecraft inside the folder you have one called tags inside tags you have one called functions inside functions you have these two JSON files which I will have a downloaded zip file in the description of everything we work on Today so you can go over it copy and paste it use it in yours I don’t expect anybody memorize the JSON format I have pretty well down pretty well but even I don’t have it memorized so tick Jason and lo Jason tick thought Jason is going to Play one of your files that’s inside the function file so what is this called this function file is called tick load so we’ll put tick load pull in and then which one you want it to start we’ll call it in it alright then you can also Crewmate so this will any when the game actually knows I this is ticked on Jason so let’s make it main alright so as soon as you go into your world it’ll play tick : main this function over and over and over in your world until you know It’s just it works like a repeating command block then over here we got load and load we’ll play this one time when you type slash reload when you first load it so let’s go tick load : in it and it just means the start and it initialized right so let’s pop back into Here let’s name this tick load to be consistent and I have to close that I can’t have it open tick load there we go so when I go in here we have functions and we got main all right cool so main is going to do something and I’ll just Make it do say hi so you can get what is going on and load we’re playing the in it so let’s go within it and in an it you want to do set block let’s do execute and I didn’t go over execute yet in a video like specifically I’m gonna try and tackle that soon but just take my word for this execute as at a at s or just added a run set block Dimond on this for block so as soon as we reload the resource pack or type slash reload as soon as we load the not Resource pack the data pack it will play this warn command that’s in the function file which sets the block to diamond blocks so if I go into here and type slash reload will start spamming with hi and it’ll set one block to diamond there You go only once and as you can see I’m getting spammed with hi really really really fast because this is better than putting a repeating command block to play the function this is honestly the best way to do they’re repeating everything so that’s the best way all right Now that’s pretty much all there’s one other thing that is an interesting thing that you can do so let me do slash data this is how you disable them data pack disabled and let’s disable a tick load so that it stops spamming us see how I Can type in the chat now and it doesn’t spam me all right good so let’s actually do this so scoreboard you’re a sidebar if you didn’t see the scoreboards tutorial you can check that out or if you already know it that one was my previous video right Before this one so what do we got we got oh ok so if I do this right and I did a previous video on the set block see this in the side here tells me information about the block it’s called red wool but it’s part of the family hashtag wool so If I do /setblock hashtag wool it won’t let me write because it won’t let me set a family right but if I do stone and then I do stone replace I’m sorry I’ll do fill for this area right and then I’ll fill it with iron blocks and we Will replace hashtag wool right so it does nothing but if there was a wool in there it’ll replace it with iron and if there is and it will only replace the iron block and it doesn’t matter what color it is because they’re all part of the family hashtag wools But you can actually make your own families so back to this thing there’s a way to make your own families of blocks which is really cool I used it in my blitz for my cod game if you haven’t seen it if it’s not out by the time you’re watching this video it Probably is out by the time you’re watching this video because I’m making it before 1.13 officially releases but I made a server and it’s either coming out soon or already out where if it’s already out it’ll you’ll see one of my newer videos so I’ll have something with It but what it does is you right-click like anything like diamond pickaxe that has certain tags on it and it basically just guns right it’s called duty zombies but for the guns I use the bullet but the bullets have a little special information about them because the Bullet will stop when it hits a wall right but it doesn’t mean that it’ll stop when it stops encountering air it stops when it collides with a block that it’s not supposed to collide with so what I have here if I go into the Minecraft tags again I can create I have This new folder that I added called blocks and this new file that’s called bullets not Jason so this is a list of all the blocks that I say the bullet can’t go through which is cool okay cuz then you can you can pick a set of Blocks that you want to alter so let’s for ours we want to turn I don’t know stone types into iron blocks because we’re doing some kind of alchemy thing right and you want the player to be able to put whatever but whatever materials that you decide will turn into something So we’ll do alchemy so let’s pretend we do some magic II hubbub of crap good stuff right and we’re gonna put this stone all around right we want it so that we can fill this area with iron blocks for each of these different blocks cuz these stones are different Blocks this is stone this is granite this is die right this is andesite right so if I do this and do iron block replace hash tag see there’s none they don’t have a group for stones I don’t have a group for just stone they’re stone bricks but that won’t do it so we Want to make one for all types of generic stone just like they used to have where they have stone with damaged values okay so what we’re going to do is add them in we’re going to delete close this let’s rename it to stone which is what We want you know it’s stone with the damaged values just like 1.12 so inside and it looks you’ll notice it looks really similar to the tick the same as the load you do open bracket hashtag quotes values call it : square bracket close square bracket and all this stuff inside with the quotes Okay but this time what you put inside the quotes inside are blocks so minecraft : stone minecraft : and the site minecraft : dire right minecraft : granite alright so this means that if this family whenever I took reference hash tag stones it will reference these Four types of blocks so let me type slash reload and let me also add some polished stuff so you can see that it’s not I’ll add one polish so you can see that it’s not picking the polish it’s picking our family so let’s go here and Let’s do hash tag and now you hit tab you can start typing the name let’s see oh I have to enable the resource back data pack data pack enable tick load alright pack file tick load is already enabled alright unexpected error accrued trying to execute that come in this this Happened sorry I have a hash tag alright that’s that’s the issue be careful because if you make one little mistake in these you’ll your thing won’t work mm oh I have a hash tag here too alright there you go now we have we’ll get the diamond block and it’ll spam us But now when we go like this we have a new thing we can do if we type hash tag st oh here we go a new one hash tag stone and what do you know it turned these into iron but it didn’t turn this into iron because we didn’t have that in Our tights alright so hopefully that was pretty clear for you you can setup using tags using you go into you to create a new folder inside your data pack called Minecraft go into that folder tags using functions you can which functions and you can do multiple Ones you can do comma enter with the quotes and another one right you can put another one down here you can pick what functions play when you load the resource back and you can use tick to pick what functions play when you have like every tick of the game alright and Then if you use blocks you can create families of blocks so this is stone now if I wanted to include something in the family like I can if I wanted to include a family in the family that’s when I can use hash tag which means family minecraft colon wool and what this will Do is that will let any type of wool also turn into iron blocks it’ll let any type of will also be accepted in this family as opposed to have it because if I didn’t use this family symbol then I would have to type each one individually red underscore wool yellow underscore Rule green underscore rule but his family will include the other family and you can you know cross-reference family so now you have stone as a family you can go into another block family and add hashtag stone family to that family so I’m saying family a lot and it’s Sounding weird hopefully you guys can understand how these block sets work but let’s go ahead and do this we’ll put what implants there we’ll put granite there when we do this now it should also it replaced the granite and the wool because wool is a part of the family Which is cool alright so hopefully you guys found that useful it’s a little bit a little bit complicated not too bad the cons making it happen isn’t bad but understanding what’s going on and how to use it is going to be the biggest challenge now in general just a little Closer is to talk about my little tips for how to set up command block things so I would use the the tick Jason to run one function only I wouldn’t put commas here cuz it’ll get really laggy if you have a bunch and I would use the load to Load whatever I need I have a couple things that get loaded a couple different for different sections of my function packs that I typically create but if it’s a small functions data pack thing that it does then you only need one and I would use the it to create scoreboards that because You know you need the scoreboards if your thing uses scoreboards and then I would also create another file that does the opposite of an it that deletes scoreboards there might be a tag there might I don’t know yet I haven’t looked into it too deep but there might be Something besides the tick in the load there might be an unload or a delete one that you can do to I’ll get back to you on that or I’ll leave a comment in the description but yeah so what I would do is I have a mane and the mane is going To be what runs all the time and I would keep this thing at most ten repeating commands at most okay like this thing shouldn’t be constantly running like it should only like the commands in it it should be limited and what the commands when the commands activate should be Limited as much as you can so in my zombies game where we have guns like legit looking guns right it takes me I think I have maybe 13 cause that running commands in the main file that gets played and of those commands none of them constantly activate they Only add they have little if statements and stuff that make it so they don’t work all the time so pretty much nothing is constantly running but when somebody write and this is just has to do with setting up how you like you want to manipulate the way that you’re making Things so that it works with the efficiency that you plan so for a server you obviously want to make things as efficient as possible so that’s why we have for the server what I did is I used a carrot on a stick that you right-click to trigger the shooting as opposed to a Left-click you could do a left click trigger for shooting but it takes a lot more constant commands so you kinda have to work with the limitations okay but for general function data pack setups I would put try and keep the main as limited as possible make sure that the In its is initializing all of your functions right initializing all of your scoreboards and stuff as well as the player scores and then I would use a lot of folders like a lot of folders so like part-1 and like stuff like that just use a lot of folders with a lot of functions Split up because really the more folders in multiple sets of functions you have the more complicated checking you can get to get less commands running if you what I’m saying so what what is more what is more commands so I have this goes here then it goes to here then it Goes to here then it goes to here then it goes to here then it goes to then it goes to here and then it eventually stops right so that’s like a lot of checking but what you want to do is it goes here and either it stops or it Continues stops or continues stops or continues and stops etc right so this is gonna be less because you have it constantly making sure that certain things are met or not met and it stops because when you get to a function file it’s gonna play every command in that Function file so if you split it up into many function files with checks right each time before so I go to this function file play all the commands right then it checks let’s see is are they supposed to get to the next function file is that set is the next Set of commands supposed to happen or do they not meet the criteria and we just stop doing things all right as opposed to this one which will do play all the functions put all the functions play all the functions play all the functions put all the functions put all the functions All that good stuff you know just keep playing it until I mean like sure it probably can you can get the same thing happening with both of these but this one’s more efficient because it plays less overall commands because their car they’re compartmentalized and honestly it’s kind of easier to understand if It’s this way because if you do it this way you have to add the checking into each individual command so this would be like so here we we do all these a bunch of commands right and first we check does the player have a thousand dollars okay if the Player has a thousand dollars give them the item if the player has a thousand dollars remove a thousand dollars all right so that’s two commands that say if the player has a thousand dollars all right it’s a lot easier to do does the player have a thousand dollars Yes then give them the whatever they want give them their thing and remove their money doesn’t the player of $1,000 know okay don’t do anything it’s a lot easier to go that way with the branches so I would suggest doing that it’s hard to explain in theory but it’s a lot easier To get it if you just practice making function stuff a lot so anyways that’s all I had for you guys today if I have a little thing at the end where I give a little suggestion for future projects something you can a little challenge right I don’t think anybody got my Challenge from the last one with the modulus but anyway so this one the challenge is going to be to design let’s see design a data pack right that will find design a data pack where when the player puts on a golden full golden armor when the player is wearing full golden armor okay Then everything he touches that is made of stone types including polished cobblestone and diorite andesite and whatever you want all of those stone things he touches including slat stone slabs and stone staircases all those things turn to gold like a might a kind of thing going on so when you wear full Gold armor everything turns to gold and then you can also make when you wear full gold armor any time you step on water you take damage because it’s like rust okay so that in my mind thinking about how we could approach this and how many it’s gonna take it should only take You one command in the main function to make the stone blocks turn to gold all right and to take all those stone blocks you would use a tag blocks right just like we went over where you can make a family and then it would take one more command to Deal like some kind of poison damage when they enter the water and you should be able to use selectors which I have a selectors video you can check out my playlist I will have a link to the place in the description of the command my command blocks tutorials and I have a List of ones for 1.13 already there’s one on selectors so you can use selectors with MBT to check if the player is wearing this full golden armor like they’re supposed to all right guys other than that thanks for watching and I’ll see in the next one peace Video Information
This video, titled ‘Advanced Datapacks: Block Families, Load & Tick Functions [Minecraft 1.13/14]’, was uploaded by Cloud Wolf on 2018-06-26 20:04:26. It has garnered 40480 views and 873 likes. The duration of the video is 00:20:43 or 1243 seconds.
We go over a bunch of things relating to datapack tags
DataPack Made: https://www.dropbox.com/s/p4tncr892k70535/tickload.zip?dl=1
🙏 Donations: https://www.patreon.com/cloudwolf 💻 Website: https://dtdeadpool.wixsite.com/cloudwolf 🔥 Lit Discord Server: https://discord.gg/HyZPCTu 🐺 Twitter: https://twitter.com/cloudwolfbane 📧 Email: [email protected]