0:02 hello everybody and welcome to another
0:05 command block tutorial now if you guys
0:06 have seen the thumbnail and you guys
0:07 have been following my channel for a
0:09 while you might be saying well guppy you
0:10 already made a video about these guns
0:12 you're just doing the exact same guns
0:16 again and you're right I am uh excepts
0:19 we're doing a different system because
0:20 if you guys have watched the video you
0:22 may have tried out that there's some
0:24 weird curving that was happening with
0:26 the bullets as well as the fact that
0:28 most importantly it wasn't working with
0:31 multiplayer and this is because the way
0:34 armor stands work in order for it to
0:35 allow guns to be able to shoot up and
0:37 down instead of just flat I had to do
0:40 some fancy stuff which unfortunately
0:42 made it so that guns Couldn't Shoot
0:46 upwards and or in order to shoot upwards
0:47 they couldn't really work in multiplayer
0:49 and then some weird curving stuff going
0:53 on however in this video we are using a
0:54 different system that was recommended to
0:58 me by a guy on my Discord whose name is
1:00 I use boats as projectiles
1:02 and in case you're wondering what the
1:04 change is we're going to be using
1:06 boats's projectiles it's actually in his
1:09 name his the idea but uh yeah it works
1:12 really well and the other thing that
1:12 we're going to be doing is we're
1:15 changing the machine gun a little bit to
1:18 up its fire rate because I think uh at
1:19 some point after I actually made that
1:21 video we got a new damage type called
1:24 override which allows us to fire the
1:26 automatic weapon a lot faster and still
1:29 deal damage so if I just have a huge
1:30 crowd here
1:32 I have the auto rifle just shy of the
1:34 maximum fire rate so you basically like
1:36 a really fast firing machine gun and
1:43 this it does chew through ammo
1:46 though just just a little demonstration
1:47 I'll put my
1:54 bar guess I can go in survival so you
2:01 see it does Cho Che through ammo so just
2:02 be aware of that but on the plus side
2:04 you do get also this desert eagle takes
2:08 the same amount of bullets but uh does
2:11 twice as much damage so you guys can see
2:13 here that if I were to just spawn one of
2:16 these guys in I kill him in two shots
2:17 he'll basically be dead with One
2:19 Singular shot whereas with the auto
2:20 rifle it's going to take a couple of
2:23 shots but it's just way
2:25 faster uh the other thing you guys can
2:27 do is if you guys wanted and I will
2:28 explain this in a little bit you guys
2:31 actually took the spot glass and instead
2:33 of a golden hoe use the spy glass you
2:34 would essentially have a sniper rifle
2:37 with a functioning scope so you can make
2:38 that as an additional weapon if you guys
2:40 want however I didn't demonstrate with
2:42 the commands myself because it would
2:44 literally be the exact same commands as
2:47 the deagle except for like two command
2:50 blocks and I didn't want to like repeat
2:52 the commands over and over
2:54 again anyways we're going to get started
2:56 with commands here in a second but like
2:57 I said if you guys have seen my last
2:59 video on the guns the commands are very
3:01 similar the only difference is that we
3:09 sky you guys can see that boat when I
3:11 look up real quick you can kind of see
3:13 it so you can kind of get an idea of
3:15 what's going on and how we're actually
3:17 keeping track of where the bullet is uh
3:18 if you guys are bothered by that you can
3:20 also increase the height of the boat but
3:22 for the most part this how it is right
3:23 now is going to work just fine for you
3:25 guys so once again shout out to I use
3:27 boats as projectiles for recommending
3:30 that I should use boats as projec
3:33 Styles but let's get into it starting
3:34 with the Desert Eagle which we're using
3:36 the golden hoe
3:39 for so we're doing here pretty simple we
3:41 are just doing a sneak detection which
3:42 I've done separate tutorials on if
3:44 you've never heard that before we're
3:46 just basically detecting if the player
3:48 is sneaking with the golden hoe in their
3:50 hand and if they are just go ahead and
3:53 add the tag
3:55 fire next up we're going to be checking
3:57 if the player is no longer sneaking if
3:59 that's the case go ahead and remove the
4:01 tag five
4:03 and finally if the player is no longer
4:07 sneaking remove the tag shot so the two
4:09 tags that we have fire and shots are
4:10 going to be really important for the
4:13 Desert Eagle uh fire so as long as I'm
4:15 trying to sneak while holding a golden
4:17 hoe it's going to think hey this player
4:19 is trying to shoot so if they have the
4:21 tag fire that means they're attempting
4:23 to shoot if the player has the tag shot
4:24 that means they have already shot and
4:27 they need to stand up again in order to
4:28 ready their next
4:31 shot cuz if you guys haven't realized by
4:33 the way we do trigger these by sneaking
4:36 and that goes for
4:38 both all right so the next thing that
4:39 we're going to do is actually summon in
4:41 this boat give it the right tags and
4:44 then get it ready to go on its merry way
4:45 so very first thing we're doing for
4:47 anything that has the tag fire does not
4:49 have the tag shot and has Flint because
4:51 we want to make sure that we have ammo
4:52 if you guys remember from the last video
4:54 we're using Flint as ammo we're going to
4:57 summon a boat 51 and 1/2 blocks above
4:58 the player and then we're going to
5:00 summon the boat slightly in front of the
5:01 player that way it's going to be facing
5:03 the right direction and it's not going
5:05 to accidentally hurt us in the
5:08 process next up we're just going to look
5:10 up from the player once again same
5:11 conditions has the tag Fire doesn't have
5:14 shot if we're going to go basically 51
5:16 and 1 12 blocks up from the player right
5:17 in front of the player so where the boat
5:19 is we're going to tag that boat with the
5:22 tag deagle this is just simply going to
5:23 give the tag deagle so that we can do
5:25 some of these other fancy stuff with
5:28 it next up what we're going to be doing
5:30 is we're going to be executing at the
5:31 player and we're just going to run a
5:32 little play sound so this is going to
5:34 give the gunfire sound that you guys
5:36 hear in the
5:38 video next up we're simply going to be
5:40 taking away one Flint so this is
5:41 actually going to be consuming the ammo
5:42 every single time we
5:44 shoot then we're going to be doing a
5:46 little bit of camera shake this is to simulate
5:48 simulate
5:50 recoil following that we're just going
5:52 to give the player the tag shot this
5:53 means that once they've already spawned
5:55 in the boat and consume the ammo it's
5:57 not going to fire again until the player un
5:58 un
6:00 sneaks which is what this command does right
6:01 right
6:03 here so that's what's actually summoning
6:05 in the boat that's what's getting it in
6:07 the position the last bit that we have
6:09 right here and I know this looks like a
6:11 lot but it's actually a lot of copied
6:13 commands just to make sure that the
6:15 bullet is firing quickly but still being
6:17 able to hit everything it would normally
6:19 be able to hit so like I said we've
6:20 already summoned in the Bullet by this
6:21 point now we're just going to give the
6:23 bullet physics that's going to allow it
6:26 to move have a particle and deal damage
6:28 first thing we're going to do is give
6:30 every boat that has the tag deagle we're
6:32 going to give it the tag landed this is
6:33 only going to be happening in this
6:35 commands but it is really important so
6:37 that way the bullet is not penetrating
6:38 through blocks we didn't have this
6:41 commands The Bu will be going behind it
6:43 obviously it is not can't go through
6:45 blocks so the next thing that we're
6:46 going to be doing is we're going to be
6:49 executing at the deagle just teleport
6:50 yourself forward this is what is going
6:52 to give it move it movement pretty
6:55 simple next up we are going to check so
6:57 unless there is an AIR block we're going
6:59 to go ahead and remove landed so so this
7:01 means that if the bullet's still in the
7:03 air then it's allowed to continue if
7:05 it's not in an AIR block then it's no
7:07 longer to be allowed to continue if you
7:09 want to add different blocks of what's
7:10 allowed to be for instance maybe you
7:12 want bullet to be able to go through
7:14 glass blocks go ahead and type in
7:17 something like this less block squigle
7:21 squiggle squiggle glass so if you want
7:23 it going through other blocks simply add
7:25 it like I just did with the glass that
7:26 could be doing it for this demonstration
7:28 but that's how you're going to do it if
7:31 you want to do it
7:32 next up we're going to be doing the
7:34 damage so we're checking here and I know
7:36 this looks like a lot but it's not as
7:37 difficult as it looks just going to be
7:39 executing at the boat and we're going to
7:41 be going down 50 blocks cuz remember the
7:43 boat's 50 blocks to high and we're going
7:45 to basically be damaging anything that
7:47 has a DX equals z that means it's
7:49 hitting the hit box of the enemy uh it's
7:51 not an item and it's not an armor stands
7:53 and then we're going to do 20 damage if
7:54 you guys want to make it do more damage
7:56 you can go ahead and make this number as
7:56 high as you want if you want to make it
7:58 do less damage make this number lower
8:00 make it whatever you want this is how
8:03 many half hearts it's doing so 20 blocks
8:06 or 20 right here would kill a player
8:08 with no armor in a single head we're
8:09 going to do entity attack and then we're
8:10 going to do the closest entity holding a
8:12 golden hoe this is what's going to
8:13 actually give your damage knock back in
8:15 the proper direction and if you were to
8:17 kill another player it would say the
8:19 proper player killed
8:20 you next up we're going to be doing the
8:23 particle simply execute at whatever has
8:25 the taged eagle go down 50 blocks and
8:28 run this particle pretty simple this is
8:30 actually most mostly it for the chain
8:31 command we're actually going to be
8:32 copying those four commands that we just
8:37 did twice in this one chain and that's
8:39 more or less it so I'm going to show you
8:40 the commands and then explain why I'm
8:43 copying them at the end but just to show
8:47 you teleport commands landed
8:49 command damage
8:52 command particle commands all of them
8:54 exactly the same we're going to copy the
8:56 four again teleport
8:57 teleport
9:00 landed Dam
9:03 damage particle all of them are exactly
9:06 the same the reason being is that if we
9:09 want the bullet to travel faster we need
9:11 to have multiple sets of commands if we
9:13 wanted to just travel two blocks at a
9:16 time the bullet in terms of checking for
9:18 damage would only check every other
9:20 block so if I had a traveling two blocks
9:23 at a time it would check for damage here
9:24 would check for damage here check for
9:27 damage here whereas if I had a husk
9:29 right here it would just get L skipped
9:32 over so instead we're doing multiple
9:33 commands with smaller increments that's
9:36 why we're only teleporting the blocks
9:39 the bullet like half a block at a
9:41 time finally what we're doing is we're
9:42 just going to kill anything that does
9:44 have the tag deagle but doesn't have the
9:47 tag landed that means it has intercepted
9:50 a block that we don't want it to
9:52 intercept that's pretty much it pretty
9:55 simple as that um yeah that that is the
9:57 entire set of commands for the Golden
10:00 Eagle it's really fun weapon pretty
10:02 simple if you want a single fire and
10:05 like I said if you want to change it to
10:07 be a sniper rifle all you got to do is
10:09 go into these commands where it says
10:11 golden hell change that to believe it's
10:14 telescope or spy glass yeah so just go
10:20 in here change this to spy
10:23 glass go ahead and
10:26 change not that command sorry this
10:28 command nope I think it's just this
10:30 command yeah yeah sorry just this
10:31 command to spy
10:34 glass and that's pretty much it and then
10:35 also you're going to want to change the
10:38 damage commands here change this to spy
10:40 glass and that'll be it so then instead of
10:41 of
10:45 the golden hoe we can actually scope in
10:47 like you would normally and boom we have
10:52 a fully functioning scoped in sniper
10:54 rifle but for now I'm just going to
10:56 leave it as the golden hoe but that is
10:57 entirely an option if you guys want a
11:00 sniper rifle all right let's move on to
11:03 the auto rifle now the auto rifle is
11:06 actually almost exactly the same except
11:09 it's uh two command blocks less so we
11:11 have one less on this chain and one less
11:13 on this chain so these two are one less
11:17 command block and this is all one big command
11:18 command
11:21 block so similarly instead of fire we're
11:23 going to be using AK fire for the auto
11:25 rifle and all we're doing is check does
11:27 the player have a iron horse armor in
11:28 their main hand if so give it the give
11:30 the play the tag AK fire and if the
11:33 player is no longer sneaking just remove
11:35 the tag AK
11:38 fire then we're going to be doing once
11:40 again exactly the same thing instead of
11:42 fire we're just checking for AK fire and
11:43 we're no longer caring about the shot
11:45 tag cuz we want it to be happening
11:47 multiple times for each time that the
11:48 player is
11:50 sneaking so once again we're summoning
11:52 the boat this time instead of the tag
11:56 deagle we're going to give it the tag
11:58 Auto going up once more we're going to
12:00 be doing basically the same thing giving
12:02 it a place sounds basically the same
12:05 thing clearing one Flint basically the
12:07 same thing giving it recoil however we
12:09 have made The Recoil significantly less
12:11 for the auto rifle compared to the
12:14 deagle because this is going to be
12:15 firing a lot faster and if the recoil
12:18 was the same the auto rifle would be basically
12:19 basically
12:21 unusable the only other important thing
12:24 for this that is different all of these
12:25 have the tick delay of zero except for
12:28 this command on the auto rifle so for
12:29 the deagle we can leave it on zero and
12:32 delay intakes but for the auto rifle
12:33 this is actually going to be controlling
12:35 the rate of fire for your weapon So
12:37 currently I have it on one tick this is
12:39 pretty much as fast as you can go you
12:41 can technically make it faster in firing
12:43 by putting it to zero in which case you
12:45 have basically an
12:48 Uzi it's just so fast that the boats
12:50 can't even process it so I probably keep
12:52 it at one cuz it might be just too fast
12:54 the boats are colliding with one [Music]
12:56 [Music]
12:58 another now say you want it to be a
13:00 slower Farm ing that's perfectly fine
13:01 you can put it to
13:04 four that's the wrong weapon you can see
13:07 it's firing a lot slower you can put all
13:08 the way up to 10 if I want to make it
13:10 like a really slow firing
13:12 one highly up to you guys but just be
13:14 aware that the tick delay in this
13:17 commands is what affects the fire rate
13:19 and the rest of these in the chain can
13:21 say at zero but that's going to be
13:22 changing the fire
13:25 rate so just once again I'm going to
13:27 show you doing the same thing except for
13:29 giving it the tag Auto
13:31 same thing all the way
13:35 around boom pretty simple and the
13:37 bullet's going to be almost exactly the
13:39 same as well but there's going to be one
13:41 difference so same thing though we're
13:42 going to give it the tag
13:45 landed then we're going to give it the
13:47 TP and the only difference once again is
13:49 obviously that we have Auto here instead of
13:50 of
13:52 deagle then we're going to give the tag
13:54 landed once again exactly the same thing
13:56 except Auto instead of
13:58 deagle this is where things get a little
14:01 little bit different so we have the same
14:02 thing just Auto instead of deagle and
14:04 obviously we check for iron horse armor
14:07 instead of the golden ho we have
14:09 slightly less damage cuz it makes more
14:10 sense for the auto rifle to deal less
14:13 damage and as per all the other ones you
14:15 can make this go higher or lower if you
14:18 want it's entirely up to you the main
14:19 difference here is that we're using
14:22 override instead of entity attack now
14:24 the main benefit to using override is
14:26 that normally in Minecraft when you
14:29 damage an enemy you have to wait four
14:33 ticks or 1/5 of a second before they can
14:36 be damaged again if we use the override
14:39 damage type however it does not care how
14:41 recently an entity has been damaged this
14:43 makes it possible to have the fire rate
14:46 faster than four if you don't use
14:49 override for the damage type this is the
14:51 fastest that your weapon can
14:54 fire Oh wrong weapon
14:57 again as you can see it's a whole lot
15:00 slower so if if if you want it slower
15:02 than four if you want it four or higher
15:04 in the tick delay you don't need to use
15:06 override but if you want it to be able
15:08 to fire faster and still deal damage
15:10 then you do need it to be override
15:12 that's the only major difference that's
15:14 going to be between this and the deagle
15:16 bullet after that we're doing the exact
15:18 same particle similar to the deagle
15:19 we're going to be copying the same
15:21 commands I'm going to show them all to
15:23 you but we have the TP the
15:25 landed the
15:27 damage the
15:29 particle following that we once again
15:31 have another set of the
15:33 TP the
15:35 landed the
15:41 particle and then finally with have the
15:44 exact same thing killing it at the
15:48 top so it's a little bit complicated but
15:51 it is actually pretty solid system and
15:52 if you guys saw the last video obviously
15:55 they said there's some bullet curving
15:58 and it wouldn't work in PvP which kind
15:59 of sucks
16:00 this current version fully should be
16:02 functioning with it
16:05 PVP and yeah it's also you can see we
16:07 can still fire it up and down it doesn't
16:10 have the issue that armor SS do so boats
16:12 actually are kind of a superior
16:13 projectile and I will probably be using
16:16 them in the future that's pretty much it
16:17 for the tutorial but just for fun I'm
16:20 going to end the video with me using
16:22 this really fast firing auto rifle to
16:23 fight the weather and see how fast I can do
16:34 away I feel like I'm actually going to
16:40 quickly oh man look how much damage I
16:44 already took out of him and he's [Music]
16:46 [Music]
16:50 dead yeah it's a little bit strong
16:52 um you might want to Nerf the damage for
16:54 this if you're using this in your own
16:55 world just because of how fast it's
16:58 firing but at the same time maybe you
17:01 want to blet H that can just just melt the
17:03 the
17:07 Wither all right I hope you guys enjoyed