Today we are going to be taking a look at probably the most useful and my favorite command in minecraft the fill command so here we are inside of minecraft and as you would expect the fill command fills in blocks so let’s give you a bit Of an example let’s say i have a block here and i want to fill from that block to a block over here and i want it just to be stone then i can use this command to fill stone and then enter and then bam now You have a whole bunch of stone this is very similar to world edit world that has been around for forever but this functionality of setting a position one in a position two and then filling all the blocks in between those two positions with whatever type of block that you want That is sort of the simplistic version of what we are going to be doing so let’s take a look at the command that i just ran first you have to start off with the argument that this is going to be the fill command you just have to have that In there the first numbers that show up in blue those are the coordinates of your first block and if you don’t happen to know the coordinates of a block or you don’t want to open up f3 and all that stuff i have a great tip for you i Just showed it off so we’re going to get to that in just a second next is the second set of coordinates for the second block that you’re going to be targeting and then the game will fill in the blocks in between those two positions those two targets with Whatever you set in the third little argument here and that is stone that’s what i have set here so if i change that from stone to air and hit enter it’ll delete basically all of those blocks all it’s doing is filling that in with air and now you know you’ve done the command Now a concept that you should keep in mind is that this command will always fill in between your two targets diagonally in any way that it can so let’s say this is our first position actually let’s use something that’s other than stone so we can get a better View of it so let’s say this is our first position and if this is our second position then it will fill in in a fashion you can kind of imagine in this sort of direction like that so that it’ll fill in diagonally in between then if we start going that’s basically a Two-dimensional fill and i’ll go ahead and actually do that command so there you go that is the fill command that that will actually pull off but if this was our starting position and our second position was in a three-dimensional sort of situation then it will fill in all The blocks including the third dimension which is kind of what we saw in the first example so you can create lines if you want as long as you don’t move from that first plane so you could you know start here start over there uh as position two and then fill that in it’ll Just be a line if you want it to be a plane then you would add a position offset from that first position and then if you wanted it to be a cube you would go in the next dimension so this is a very powerful tool to really make any Type of creation this will not make spheres or triangles or pyramids or anything like that you are stuck with boxes unfortunately external tools like world edit have some functionality you wouldn’t be using a fill command you’d be using a sphere command or a cylinder command in order to pull that off but None of that is built into the vanilla game now i mentioned that there was a technique that you can use if you do not know the exact coordinates of a block so let’s say i put a block down here well obviously i don’t want to hit f3 and Then go and stand on the block and then see my coordinates and then subtract the one i’m standing on that would take way too much work so the developers have built in a really really nice way to know what block that is and basically wherever your hitbox is whatever that Block that is being selected is then you will have the option to autofill that in the chat so after i do the fill command i hit space you can see that that is the block so all i have to do is tab complete or just bring my mouse over Here and click it and then hit space now you can see that it’s needing the second coordinate and because i’m still staring at this block these two coordinates match as you can see well that would be a very small fill so what you can do is you can just hit Enter and the command will fail because the command needs all both of the coordinates and a block to fill so the command fails so why would we fail the command because once we hit enter we can get that command back easily by hitting up on our keyboard and just using the last command So that’s our first position we have that stored in the chat then we move over to our second position once again we stare at the block that we want to be selected we open up the chat we hit the up arrow key to get that previous Coordinate hit the space bar and now you have the coordinate of the block that you’re looking at now hit space and type in whichever type of thing you would like to be filled and really everything is here in alphabetical order and if you just start typing really anything then It will autofill all the you know it’ll it’ll whitelist or blacklist all the words that don’t match what you are currently typing so even if i just started you know typing something randomly yellow okay there we go let’s do yellow wool hit enter and then there We go now we have some yellow wool but you can make this command much much much more powerful with a few extra arguments so let’s take this yellow wool and let’s make this all air we don’t want the yellow wool anymore let’s say that right Here in the middle of where we had just done that command let’s add a little build so inside of this area i am going to build the most amazing and adorable unicorn you have ever seen oh oh wait wait a second there we go they got you Got to have the horn on correctly and then a tail perfect okay an amazing unicorn and i would like to encase this unicorn in glass glass everywhere except for where we have the unicorn well if we look at the command that we just did this will fill everything with glass if We were to type out glass and remember we could do it a certain color so if we wanted gray glass gray stained glass right here we could do that but let’s just do clear glass so glass is what we want if i hit enter right now it will completely wipe Out my build and replace all of the blocks in that area with glass but you can see that there are a few right here a few extra little arguments so let’s use the replace argument and what we really want to replace is everything that isn’t Uh air so we want all the air to turn into glass but anything else that’s there that’s not air keep that where it is and so that is what the replace argument can be used for is you can replace certain blocks so let’s hit enter and there we go now we Have our unicorn encased in glass it looks a little bit funky because all of the redstone pieces sort of have air in them a little bit but there you go now we have a easily made uh unicorn encased in glass let’s say i didn’t like the glass and i wanted to Get rid of it so i can do the same fill command but this time let’s uh let’s make the glass turn back into air so what we want is air replace glass so the glass will be removed and replaced with air boop there you go if i wanted to change the color of This creature here so i could do the same sort of situation this one i’m going to let’s change it just to some yellow wool yellow wool replace i believe that that is magenta anything magenta magenta wool let’s take a guess i think it’s magenta there it was magenta it wasn’t purple There we go so now we have a new color of wool with our sheep or our unicorn i should say uh beware because there is no undo if you accidentally did your command incorrectly and deleted whatever you had in there it’s gone there is no undo There is no going back to what you had previously had which is a little bit sad i gotta say this is a very very powerful tool because let’s say over here this was uh the build that we use for our mirrored floor episode and so i use the Fill command an awful lot in this episode let’s say i didn’t like the fact that right here we had stone along the edges i wanted a different block well i can quickly change that block by coming over here using the fill command and selecting the first coordinate Then coming over to the other side and either i could do this first layer or i could do all layers by coming all the way down here and selecting that and let’s choose a block to let’s just say netherrack how about that another rack that’s what we want to replace but we Don’t want to replace the wood we just want to replace the stone and there we go so now all the stone is now netherrack and we can go back into our build and take a look at it oh yes that matches the red floor just perfectly let’s say i didn’t like That i could go the opposite direction and have stone replace netherrack which is way down here at the bottom hit enter and there we go so now it that has been fixed as well so this can be very powerful especially if you already have a build and you just have a few blocks That you need to switch out for others but there’s a whole bunch of other arguments in here as well so not just replace and let’s go ahead and work with a new area i don’t want to be editing that because once again there’s no undo So let’s go ahead and fill a new area and let’s uh let’s fill it with diamond ore why not so there we go so now we have this new area that we’re working with with diamond ore and as you can see there’s a whole bunch of other arguments so you have destroy Hollow keep outline and replace we’ve covered replace let’s talk about destroy what destroy does is when the command is run it will replace it with another block but the block that is being replaced that will be broken as if the player broke it with you know the player broke It so if it is something that drops experience it’ll drop experience if it’s something that drops an item it’ll drop the item if it’s something that drops a block of itself it’ll drop the block of itself so if we do this command what’s going to happen here let’s go ahead and Set this with air instead of with another block and then use destroy there we go so there’s a whole bunch of experience there’s a whole bunch of diamonds whole bunch of stuff sitting on the ground now and i can go around and pick up all of these diamonds and Experience i just wanted to see 21 oh my gosh there’s so many so many levels come to me experience come on yes more can we get to level 30. oh crummy i don’t i don’t think i think we’re oh maybe we will no we got it ah we didn’t get to Level 30 darn it but we did get a whole bunch of diamonds but if you use that destroy command and we could just uh set this to i don’t know glass there you go and use the destroy command so this is white concrete and we use glass it will Replace with gr glass but it’ll also drop all of the concrete as well so that is what the destroy command does this is really something if you were a map maker and you wanted the effect of the block breaking and also dropping whatever it normally drops that’s really why you Would be using this command in creative just trying to make you know things you probably aren’t going to be using the destroy command let me get rid of all that next is the holo command and let’s choose a new block to work with this time let’s let’s keep it to glass but Let’s do some black stained glass here and we’re going to use the hollow command and what this will do is it will create your your command here that is hollow so that’s really all it is now this is hollow but it still has a roof and a Ceiling so you can see here that there’s really only one block in this three tall situation that is going to be hollow and that will delete any other blocks that are inside of there so if we happened to start this out with some diamond blocks and then we did the hollow command it Deletes the diamond blocks now this is different let’s go back to diamond blocks this is different than the outline command so you can see destroy hollow keep outline replace we’re going to skip over keep for just a moment and go straight to outline what outline will do Is it will keep whatever is in the center so it’s basically exactly the same as the hollow command except that it will make sure to only do the outer blocks and keep anything inside that hollow space with world edit there is another command called walls which i really really miss And what walls does is it only does the outline but it doesn’t have a roof or a floor and i miss that i miss that all the time i really wish that that existed so now you have to do like three different commands you have to do the hollow or Outline uh and then you have to remove the ceiling and the floor if you want to get that sort of thing so it’s just a side there that i really miss walls now there is one more argument that we need to talk about and that is Keep and keep is really just a shortcut uh against replace so you noticed earlier let’s let’s go ahead and fill this whole area with air and let’s go ahead and do another build this one i’m just gonna we’re not gonna spend as much time on this build uh oh Gorgeous oh what look at that amazing art so earlier when i wanted to keep any of the build that was inside of one of these fill commands i did the replace command with air keep is basically that but the shortcut is that you only have to do keep you Don’t have to say replace space air you can just type out keep and it will only replace air with whatever you are feeling so let’s go back to glass because i like that you can still see everything inside of it if you hit keep then it will only replace the air in That area with whatever you are filling so using the keep command it’ll replace air but using the replace command you could really do whatever the heck you want so let’s replace these planks and there we go so now we have a new type of block also a thing to keep In mind is that you still have the ability to change the nbt data about each of these blocks so with these oak logs let’s go ahead and actually run a command which is going to seem a little bit weird to fill oak logs replacing oak logs and With these oak logs let’s add in an argument with these square brackets here and that will be the axis argument and we can change that axis to x y or z and that will change which direction they are facing so in the x direction you can See that they face all in and if i was hit f3 that is the x axis and then if we do that again but this time replace that with y you have them all in default and then in z they will face this other direction that we are looking right now and They’ll face in that direction so you can also do that with blocks where if you have a specific block like these stripped logs right here then they will be able to be in a rotation that you would like maybe you’re dealing with furnaces and you need them to face a Certain direction you can add all of that into your fill command so as you can see there is a good reason why this is one of my absolute favorite commands to work with because there is so much power built in to the fill command to do really whatever you want this also works A lot of what i’ve talked about works on the bedrock edition the one thing that doesn’t work so great is the nbt editing you really can’t go in there and add the arguments that it would face you know to the y you know x or z coordinates uh but Really everything else including the fact that when you look at a block it’ll autofill for you it may behave a bit differently i know on bedrock if you do that you need to hit tab twice in order to get the coordinate that you want but it mostly all works on bedrock and java Edition the same way there you have it i hope that you found this video super duper useful if you did please give this video a big ol thumbs up also make sure you subscribe for future videos tips tricks tutorials and spotlights here on omgcraft we’ll see you in the next video bye Wow Video Information
This video, titled ‘How to World Edit with Commands in Vanilla Minecraft!’, was uploaded by OMGcraft – Minecraft Tips & Tutorials! on 2020-01-20 12:00:12. It has garnered 128501 views and 1814 likes. The duration of the video is 00:18:08 or 1088 seconds.
Here’s a video on how to worldedit in vanilla Minecraft 1.15 (java and bedrock) with the fill command! These commands can be used to spawn cubes of blocks! I go through how to use the command and all the details!
MERCH: http://teespring.com/omgcraft
DISCORD: http://discord.gg/omgcraft TWITTER: http://twitter.com/omgchad INSTAGRAM: http://instagram.com/omgchad TWITCH: http://twitch.tv/omgchad
EMAIL: [email protected] DedicatedMC kindly provides my Minecraft servers! For 15% off your first month, use my code “OMGChad” (no quotes) link: http://dedimc.promo/omgchad http://dedimc.promo/omgchad