This is what 7 year old me dreamed about when I first started playing the game and a decade later cubicmetre is making it a reality in vanilla. This is actual Minecraft rocket physics
@@FishyTheKobold The kids in school asking this question sadly dont understand the power that comes with understanding math. Understanding this should be first priority instead of forcing homework on them.
@@Sextusheap Math is insanely cool ok well not really its very boring sometimes, but the places and ways it can be applied are very cool from construction to destruction, from counting to killing, from imaginary numbers to integers, math can get very cool
Dude could you imagine sitting in your obsidian-walled fortress and suddenly you look up and there's a piece of TNT exploding to push another one down super fast and you die
Reminds me of WW1 and WW2 artillery, where they had some tables that had written on them settings and coordinates for operating the machinery, this was how they did it before the use of computers
I think it would be possible to operate the cannon in full vanilla using intuition alone. And the mod is actually a great way to start. I'd imagine if you needed to use the cannon in a setting where you were not allowed the mod, you could train using the mod in singleplayer then transfer this knowledge to online play. The way I see it, is that the cannon gives a good suggestion for a setting, then you can tweak that setting to get slight variations of the firing option. As you learn to tweak more and more you find that you get a feel for what settings hit approximately which positions.
Technically a cannon, not artillery: artillery is a subtype of cannon has (at least) two phases and targets the top of a target (so the tnt flies up above the height of the target, then a portion of the tnt explodes causing the rest to change trajectory and aim downward) as an aside, an even more specialised artillery canon is an airstrike: the tnt is redirected straight down when directly above the target... pretty wonderful field when it comes to tnt weapons
For the asymmetry issue, couldn't you add a second payload option that comes from the opposite side? Then make a 4th setting that tells you whether to fire the left or right payload
Can you make sentry towers for a castle that automatically aim and fire tnt at the outside world using an underground skulk sensor array buffered with a layer of obsidian?
in that case, the redstone itself would have to do all that complicated math, or it would have to be hardcoded for every single point. Both would be extremely difficult
I like it very much that the rest of the world is now starting to look at tnt. There is the wargear scene, which is currently completely German, where people are in teams trying to build the best cannons together and then build them into so-called wargears. "Wargears" are fighting machines equipped with cannons and shield technology, sometimes even automatic cannons, which are then used to compete against other teams in tournaments. There is a fixed set of rules to guarantee fairness. For example, any block that has a higher tnt resistance than endstone is forbidden, and dispensers may not be used for tnt. In tournaments, the redstone blocks are replaced by endstone for every spectator except for the own team to prevent the theft of cannons. It's really cool every year in the "WargearLiga" to see what the teams have built, sometimes thousands of hours on their cannons, and to see which one wins best. There are currently 2 servers in the Wargear scene. Although the Wargear scene has existed for over 8 years, it unfortunately only has around 200 active players to date, I think because it is simply too difficult and complicated for most. If anyone has any questions just write or send me a message. Have fun building 👍 By the way, you play completely in Vanilla without mods.
Very interesting! The important step now is to combine this technique of controlling where shots will land with the Railgun presented in your last Video and you have got yourself what WarGear players would call a "Schwenk-Stich" or "Shifting Stab-Cannon". The possibilities truely are endless.
Technical minecraft is amazing, also love the idea of having loads of these side by side with 3 players in charge of each cannon yelling numbers, setting values and firing. The implications for the technology will surely make the imaginary minecraft wars more bloody.
You would need a lot more TnT to get the payload travelling fast enough to make a render distance perimeter. Consider that the field of fire would need to be enormous to be able to perfectly cut out a square of that size. It would not be a very simple world eater.
@@cubicmetre or if you could get it to fly up to 128 blocks in so directions under the afk spot, it'd be pretty close to a "perfect" perimeter. Creating a semicircle below the player.
If you combine this with what you accidentally discovered making your railgun, when it bore a perpendicular hole, it could expand your aiming even more. Imagine being able to precisely aim that kind of railgun shot blasting a long hole through things around corners
Thats exactly what the WarGear Scene is doing, wargears is a competitive game mode where you try to build the best TNT Cannon and win the "fightnight" in the end with your team. It's just vanilla and it's crazy what a few players can build. But the scene is only German
@@zSalos not really, i barely know german and i'm still there: it's easier to start out if you're german tho, because research and collab is more accessible
This is such a cool project. It is an essence of Minecraft. Love this game, and never underestimate its possibilities. Never underestimate the pure genius of Minecrafters. Because then instead of creepers you'll be scared of smart artillery.
If you had two of these cannons would it be possible to have the explosion of the first tnt propel the second tnt around corners or behind walls? Edit: Cannons like this already exist but it would be cool to see Cubic or someone operationalise the concept into a cannon that has adjustable trajectories.
It is possible, but both cannons would need to have a link of some sort coupled with a more complicated program, since the timing and positioning of both payloads would have to be incredibly precise
Do you think you can aim a tnt towards another tnt mid air to change it's trajectory? Like you fire a bunch for tnt that actually contains the payload and propellent.
In my mind atleast I can imagine a client mod that can track nearby entities and extrapolate their positions based on their motion and in theory set the cannon and fire on a moving target all autonomously. However you are always limited to the delay from the redstone and TnT fuse time. This is why artillery are usually restricted to static emplacements because it's really hard to hit a moving target if there is a lot of time between acquiring the target and being able to hit it.
@@cubicmetre Trace mod? also blockless redirects do exist (say, why don't you make a new series where you review basic wargears weapons -- stuff like cannons, railguns, artillery, airsrikes, etc)
This is very elegant. Three timers translated into xyz coordinates through a mix of observation and calculation, no obscure tricks. I especially like that all calculations (except for calculating the distances) only need to be performed once, as the input values are discrete. This makes using it simple even without the mod.
Just ran across this channel today, love it so much. I always loved redstone videos, but much more the technical aspect of things versus just tutorials and such. Thanks cubic!
Now I want to see a multi-blast-chamber design that uses one cannon and several independent item collection basins for simultaneous but separate operations. Running a tree farm, a cobble farm, and a concrete blaster at once from one nucleation point would be really cool assuming you could systematically automate repeated fire and timing sets
this is the video that made me subscribe. As someone currently studying engineering, seeing the implementation of math and matlab for minecraft was quite interesting.
I think a design like this could really benefit from tnt minecarts as they explode on impact, removing the fuse limitation which could expand the range of the cannon by quite a lot.
this cannon is already so cool, yet it is just a proof of concept. i can't wait to see further design changes and optimisations made to improve this cannon type!
Since your working with projectiles, could you design an arrow launcher to kill the dragon upon entering the end? Dragon always spawns at same coords and the design could be useful for speedrunning to elimate all end RNG (faster then 0 cycle or waiting for perch)
@@ghostly9835 i think mooing_cowmilk might know just a liiiitle bit about how end generation works... :> but srsly mr cowmilk what r u envisioning? like reset spawn in stronghold, enter end, build the setup, die at perfect moment while igniting tnt, re-enter end and insta kill dragon upon it teleporting? cos if so, THAT IS FRICKIN AWESOME!!! (and prolly a very good timesave if it would be viable)
@@ghostly9835 isn't the end platform literally always blocked by line of sight by an obsidian pillar from where the dragon is? (I assume he spawns above the portal at the center) Also how would you not die to your own arrow when going into the portal, does the end generate when the portal is lit or when the player crosses for the first time? Likely the latter, so you would both spawn in the same position and the arrow would be colliding with your hitbox during it's first tick in the end, I can't see that going well either
If this is even feasible, it is not worth it, because it means you need to look for redstone and other components (also more iron) and a whole lot of tnt to get enough strength in the arrow, which also means you need to begin your run in a desert and hope to find more than 1 desert temple, plus you need a village right next to it to get the iron. What I mean is that from whatever materials is build the arrow cannon, getting them would take a lot more time than waiting for a perch (for one cycle)
@@Andrey_Gysev It's more than how you phrased it, I'm sure you know their importance in the real world and I know I'm being REALLY hypocritical by saying this but the 'school math' and 'physics' here aren't just a 'just'. Specifically referring to the calculus and linear algebra used in this video, the two form a foundation for some really high-level mathematics that are used in a lot, and I mean A LOT of scientific and engineering disciplines. It's not something so simple to refer to as 'just a school math' and 'a little of physics'.
12:24 I completely understand, and it made perfect sense to me even without explanation. However... this sentence is extraordinary. "It's actually surprisingly simple."
Yeah, I was trying for years to build something like this. But not being a big Minecraft person, I just couldn’t get the timing right beyond a handful of horizontal and vertical presets that needed different timing to reach the same distance. I never once thought about using water to alter the angles, goddamn engineering genius. The math isn’t that hard if you know what you’re doing, but knowing what you’re doing is easier said than done. Still, even without calculus, it should be doable for someone who finished high school. Although that could be my years of crying over intermediate level calculus problems talking. So your mileage may vary. The coding and modeling is genius tier though, MatLab is pretty easy, but that’s a lot of complicated steps to make work explained in an incredibly straightforward manner. Thank you so much! This is a dream come true for me!
PLEASE just have a look at minecraft Wargears.... It's a german minecraft community that spezialized on crazy precise and strong tnt canons way more advanced than you could imagine. We then throw them into big nicely designed cubes of endstone basically, as they have a high blast resistance, and set them up to fight each other on a Server which I don't want to advertise now but if you want to know just search it up. There's so much more to it like automatic canons that can shoot every tick(btw dispenser primed tnt is forbidden) and a lot more like defensive mechanisms, tactics in the fight etc. etc.
This is beautiful. Thank you for sharing all of these formulas. I recognize now how I could potentially utilise this to create a longer range cannon that would still have an adjustable field of fire.
It is also possible to have a second cannon that fires a payload which acts as a secondary propellant allowing the cannon to target places that classic trajectories would not reach. For example, to hit much further objects using the same maximum charge, we can have a cannon that fires a payload meant to explode mid-air (the secondary charge), and another that fires a payload with a similar trajectory but a higher time of flight that would cause the payload to move downwards rapidly upon detonation of the secondary charge.
Seeing this contraption is very cool, I once attempted to create a tnt cannon with variable range and direction, I managed to get 12 "range" options that could be combined with different block heights for the tnt payload giving me enough customization for my needs.
Nice! Here’s an idea for an improvement: make the timer re-usable. This timer moves the items like it does now, but then, after firing, moves the items back into the timers, like a self-flipping hourglass! The beauty of this is that, if you are targeting the same spot; you don’t need to make any changes. No re-stocking the timers! Subtle changes are just subtle! Even more advanced would be having buttons that add or remove items, allowing you to configure the cannon from the front! So, a “controll panel” at the front has “fire”, as well as 2 rows of 3 inputs (note lock variety probally), each row modifying colum controlling one timer, the top row increasing by one item, the bottom decreasing. A “ready to fire” light turns on when no timing items are in movement. That means the timers have reset from your previous fire, and your adjustments have been accepted and done! You can’t fire while that lights off. The only major flaw is if you adjust the timer too quickly, it might over or under adjust since your input is just letting items through. To avoid that, always wait at least a half second before adjusting again! (Unless you want to make a counter that it then uses to change the timer…
This is truly the next step forward in tnt cannon technology. now we just need the community to come up with multiple weapon designs, and a mod to help you choose the best weapon design for your application. i imagine this could also be used well with ender pearl launchers for long range player movement/ So many possibilities!
Its funny because about a mounth ago i had a test in matlab, well actualy in octave that is a free and open source version that uses the same language. And i had to do quite a similar thing. Very well done.
So you obtained a closed form solution for the ballistics of the payload TNT. Impressive. I have been working on a research project in real life where the ballistics of an axisymmetric projectile is solved iteratively. The 6 DOF equations of motion are 12 coupled differential equations that are solved simultaneously. MATLAB solving is simple but I'll have to see what happens when I try this on a microcontroller haha
This is just awesome! I use TNT cannons in CTM maps where resources are scarce, so it's hard to find info about advanced cannons which are actually usable to me. But this is exactly what I've been looking for!!
This is insane! I don't think it will be as useful in an attacking pvp scenario since it will take a while to set up, but this might be fun to use within a castle wall!
I have a challenge for you: shooting around corners. That smart artillery seems to be consistent and precise enough to launch a payload (henceforth: redirection payload) + a projectile to be redirected mid air. It should theoretically be possible but to simplify, you could build a prototype that only shoots straight, and then just varies the position of the redirection payload in relation to the position of the projectile at that point in time. Using entity tick control like the extreme rail gun tnt cannons do, should allow you to fire a payload so large (actually probably not that big) that just 1 tick of delay between the launched payload and the actual projectile exploding should be enough to get a very large point cloud of possible coordinates. Taking the smart artillery approach would leave you with 5 degrees of freedom for the limited prototype: 1. ignition delay of projectile 2. x position of redirection payload in relation to the projectile 3. y position of redirection payload -||- 4. z position of redirection payload -||- 5. ignition delay between the static payload and the redirection payload + projectile. This would, theoretically, allow you to hit any coordinate in a sphere with a radius depending on the size of the redirection payload, at a set offset away from the cannon in the direction it is facing depending on the size of the payload. Also yes I just noticed there's a major caveat in this. When reaching for medium distances, bullet drop takes effect. Now this is sorta counter-acted by the fact that both the redirection payload and the projectile has the same ballistic arc, but it will still mean that you have to vary the size of the initial payload (and increase d.o.f. 5) to compensate. But still doable! (theoretically). Now, for actually building the prototype, I think dropping the redirection payload into a 3m^3, alining it with pistons/water streams/water-elevators/!water-elevators (I've seen Ilmango do some crazy entity alignment magic) and then dropping the projectile tnt into this space timed with the explosion of the payload is a valid way to go. I know a limited version is possible, but getting that full 360 degree sphere is probably going to take a whole lot of math and timing.
its funny to go back from newer videos to this. going from send a pinpoint accuracy drilling rod of explosions to anywhere on the map or mining a entire layer of the world for any material to building this little guy that shoots 1 tnt.
This is very cool, but it isn't destructive enough! I made a primitive full-auto aimable TNT Cannon a few years ago. It fires as fast as comparator clocks pulse, but the fuze time of the projectile is always the maximum. It used multiple propellant locations that could be toggled on or off to aim where it shot. Maybe there's a way to do this more elegantly that can shoot at more than just 20 or so different points. There might be a way to make it shoot faster, too, I'm still very new to zero-ticking and such.
This is so fucking cool im studying mechanical engineering and this is the level of math we're studying to build like actual machines and this guy is just doing it for funsies in a 12 year old game
This is awesome! When I clicked on the video, I thought it was probably gonna be some complicated thing having to do with exploiting some bug in Minecraft, but it's actually pretty simple! Makes me want to try to make one, maybe with an alternate payload source on the left side, expanding the area available on that side. Glad I'm a student so I have access to matlab lol
using this alongside subtick mechanics (firing all the projectile tnt on the same frame but offset in processing order) to make an adjustable AP cannon could be cool.
This is what 7 year old me dreamed about when I first started playing the game and a decade later cubicmetre is making it a reality in vanilla. This is actual Minecraft rocket physics
same bro
BRO SAMEEE, I used to believe that I could fly up to the moon in Minecraft WAAAY back then. I know that's not really possible now but wow.
@@nuirejuvini9951 my guy got clickbaited by glaticraft lmao
@@nuirejuvini9951 Same i never really thought there was a height limit to the game
@@weirdyoutubechannels dawg wtf are your most popular videos bro
Using linear algebra and calculus to fire a tnt cannon, nice
"What am I going to use math for in life?"
The answer? Making really cool tnt cannons
@@FishyTheKobold The kids in school asking this question sadly dont understand the power that comes with understanding math. Understanding this should be first priority instead of forcing homework on them.
@@Sextusheap exactly. Im still in geometry, but I'm already learning precalculus and trigenometry in 8th grade
@@Sextusheap Math is insanely cool
ok well not really its very boring sometimes, but the places and ways it can be applied are very cool
from construction to destruction, from counting to killing, from imaginary numbers to integers, math can get very cool
@@_marshP schools make math boring
I guess the next logical step would be using 2 of these cannons on different fuse timings to redirect the tnt after it gets to a certain point.
and then after that using 3 cannons lol. Imagine shooting something out, then up, then to the left around something lol
@@user-pw5do6tu7i search cannoning triangles yeah yxz control
Dude could you imagine sitting in your obsidian-walled fortress and suddenly you look up and there's a piece of TNT exploding to push another one down super fast and you die
@@user-pw5do6tu7i I think if you would use another redirect tnt for the redirect tnt it would be even more flexible
@@user-pw5do6tu7i we might be limited by the TNT fuse time
we are now 1 step closer to building real life militaries in minecraft
Next thing you know there will be WW2 level weapons made with redstone in minecraft
@@leschatssuperstars1741 we already have that, even better, we have icbms
@@ethanplayz6233 Wait. We have ICBMS in minecraft? made in vanilla with just redstone?
@@leschatssuperstars1741 yes, there are existing designs on UA-cam and my friend, malorem, is making a video on his new long range icbm
@@ethanplayz6233 send me the link when it's out lmao
Reminds me of WW1 and WW2 artillery, where they had some tables that had written on them settings and coordinates for operating the machinery, this was how they did it before the use of computers
Precomputing the math with tables. Hell yeah
This, I'm imagining this as the upgrade from Napoleonic artillery to WW1 artillery
Anyone interested in this should look at the mechanical firing computers used in battleships, some really well formatted videos on youtube.
they still use these, since not all artillery has inbuilt ballistics computers and the angle they use to hit the target is called a firing solution
@@SteveIsHavingMC well no, look at Russian or American artillery, if the recon is good then only coordinates are required
The most shocking thing in this video is that you can afford Matlab and can actually code in it too
This looks like a really great university project tbh
Ew, MATLAB... You can do better, cubicmetre :(
The online version is actually free to use (with quite a few restrictions) if it's only for personal use
@@ethanmay4385 that's actually pretty useful to know, thanks
@Dwight A. Spencer I was thinking GNU Octave
actually finding the right setting for a cannon becomes very intuitive after you shot it for some hours
I think it would be possible to operate the cannon in full vanilla using intuition alone. And the mod is actually a great way to start. I'd imagine if you needed to use the cannon in a setting where you were not allowed the mod, you could train using the mod in singleplayer then transfer this knowledge to online play. The way I see it, is that the cannon gives a good suggestion for a setting, then you can tweak that setting to get slight variations of the firing option. As you learn to tweak more and more you find that you get a feel for what settings hit approximately which positions.
@@cubicmetre Is your skin Saxton Hale? Lol
@@cubicmetre even if it was hard with intuition, I think using a sand block as a sighting round would make it perfectly usable in vanilla
@@secariel you're a genius!
@@secariel does sand not get destroyed?
Ancient Rome : Bring me the cannon
Cubicmetre : Let me introduce you to Minecrafts Smart Artillery..
see my banner for cookies ?!?!?!?!!
Technically a cannon, not artillery: artillery is a subtype of cannon has (at least) two phases and targets the top of a target (so the tnt flies up above the height of the target, then a portion of the tnt explodes causing the rest to change trajectory and aim downward) as an aside, an even more specialised artillery canon is an airstrike: the tnt is redirected straight down when directly above the target... pretty wonderful field when it comes to tnt weapons
Cannons in ancient rome?
For the asymmetry issue, couldn't you add a second payload option that comes from the opposite side? Then make a 4th setting that tells you whether to fire the left or right payload
Yes, there are improvements that could be done on cubicmeter's design. It's just a matter of time until we'll see some super canon!
it would be cool to have a whole row of them with slight delay..
Was gonna say having a second mirrored cannon, but I like this idea a lot more!
Can you make sentry towers for a castle that automatically aim and fire tnt at the outside world using an underground skulk sensor array buffered with a layer of obsidian?
I think in theory that sounds really cool, but in practice it would be insanely complicated with many points of failure
@@cubicmetre if there was anyone crazy enough to try it would have to be you right?
in that case, the redstone itself would have to do all that complicated math, or it would have to be hardcoded for every single point. Both would be extremely difficult
@@vibaj16 it doesn't have to be every block, but then again at that point, might as well use a minefield instead
@@alicorn392410 /10 for common sense
I like it very much that the rest of the world is now starting to look at tnt. There is the wargear scene, which is currently completely German, where people are in teams trying to build the best cannons together and then build them into so-called wargears. "Wargears" are fighting machines equipped with cannons and shield technology, sometimes even automatic cannons, which are then used to compete against other teams in tournaments. There is a fixed set of rules to guarantee fairness. For example, any block that has a higher tnt resistance than endstone is forbidden, and dispensers may not be used for tnt. In tournaments, the redstone blocks are replaced by endstone for every spectator except for the own team to prevent the theft of cannons. It's really cool every year in the "WargearLiga" to see what the teams have built, sometimes thousands of hours on their cannons, and to see which one wins best. There are currently 2 servers in the Wargear scene. Although the Wargear scene has existed for over 8 years, it unfortunately only has around 200 active players to date, I think because it is simply too difficult and complicated for most. If anyone has any questions just write or send me a message. Have fun building 👍
By the way, you play completely in Vanilla without mods.
And then he said "Its simply calculus" and started morbin'
Very interesting! The important step now is to combine this technique of controlling where shots will land with the Railgun presented in your last Video and you have got yourself what WarGear players would call a "Schwenk-Stich" or "Shifting Stab-Cannon". The possibilities truely are endless.
Even without the stab element, this would make a very good shift Cannon,, however, auto loading this will be a pain
nice hier wen aus der wargers szene zu finden xD
Technical minecraft is amazing, also love the idea of having loads of these side by side with 3 players in charge of each cannon yelling numbers, setting values and firing. The implications for the technology will surely make the imaginary minecraft wars more bloody.
Crew served artillery
Honestly this was my best present for my birthday so far
I'd love to see a similar concept used to create a very simple world eater.
You would need a lot more TnT to get the payload travelling fast enough to make a render distance perimeter. Consider that the field of fire would need to be enormous to be able to perfectly cut out a square of that size. It would not be a very simple world eater.
Couldn't you build it very high up and use duping. And it'd be possible to make circular perimeters very easily.
@@cubicmetre or if you could get it to fly up to 128 blocks in so directions under the afk spot, it'd be pretty close to a "perfect" perimeter. Creating a semicircle below the player.
@@cubicmetre perhaps having four, one per edge might still be a lot easier than the usual multi-step flying machines?
If you combine this with what you accidentally discovered making your railgun, when it bore a perpendicular hole, it could expand your aiming even more. Imagine being able to precisely aim that kind of railgun shot blasting a long hole through things around corners
cubic metere is now hired by the us army bcz he is a genius
Thats exactly what the WarGear Scene is doing, wargears is a competitive game mode where you try to build the best TNT Cannon and win the "fightnight" in the end with your team. It's just vanilla and it's crazy what a few players can build. But the scene is only German
@@zSalos yeah but that's not a problem, because most of the guys can speak perfect english and they are really welcoming and helpful
@@zSalos not really, i barely know german and i'm still there: it's easier to start out if you're german tho, because research and collab is more accessible
This brings Minecraft artillery even closer to how real life fire control works
This is such a cool project. It is an essence of Minecraft. Love this game, and never underestimate its possibilities. Never underestimate the pure genius of Minecrafters. Because then instead of creepers you'll be scared of smart artillery.
This brings back memories from our insane faction cannons, custom built to each base.
preciate the showcase cubic! crazy invention as always
Wow! At first it's precision timing of TNT for a straight trajectory, and now it's becoming 3 dimensional!
If you had two of these cannons would it be possible to have the explosion of the first tnt propel the second tnt around corners or behind walls?
Edit: Cannons like this already exist but it would be cool to see Cubic or someone operationalise the concept into a cannon that has adjustable trajectories.
Absolutely theoretically possible! Probably quite difficult though.
I like the way you think.
It is possible, but both cannons would need to have a link of some sort coupled with a more complicated program, since the timing and positioning of both payloads would have to be incredibly precise
That would enable indirect fire (e.g. shooting something right behind a wall)
I think Mumbo Jumbo built a round-corner cannon a few years ago, but that was stuck on a straight line
Cubicmetre taking "This will be useful in later in life" to a whole another level.
Do you think you can aim a tnt towards another tnt mid air to change it's trajectory? Like you fire a bunch for tnt that actually contains the payload and propellent.
In my mind atleast I can imagine a client mod that can track nearby entities and extrapolate their positions based on their motion and in theory set the cannon and fire on a moving target all autonomously. However you are always limited to the delay from the redstone and TnT fuse time. This is why artillery are usually restricted to static emplacements because it's really hard to hit a moving target if there is a lot of time between acquiring the target and being able to hit it.
@@cubicmetre Trace mod? also blockless redirects do exist (say, why don't you make a new series where you review basic wargears weapons -- stuff like cannons, railguns, artillery, airsrikes, etc)
This is very elegant. Three timers translated into xyz coordinates through a mix of observation and calculation, no obscure tricks. I especially like that all calculations (except for calculating the distances) only need to be performed once, as the input values are discrete. This makes using it simple even without the mod.
Loved the quote by Sun Tzu!
Fits so well considering you're standing next to an aimable sentry gun.
PS: When guitar solo?
*More Gun plays*
**Saxton hale intensifies**
Just ran across this channel today, love it so much. I always loved redstone videos, but much more the technical aspect of things versus just tutorials and such. Thanks cubic!
Now I want to see a multi-blast-chamber design that uses one cannon and several independent item collection basins for simultaneous but separate operations. Running a tree farm, a cobble farm, and a concrete blaster at once from one nucleation point would be really cool assuming you could systematically automate repeated fire and timing sets
this is the video that made me subscribe. As someone currently studying engineering, seeing the implementation of math and matlab for minecraft was quite interesting.
truly a genius concept. insane execution
wargear vibes here
@@paulkanja yessss
Every time I watch your videos I learn something new about Minecraft. Keep up the good work!
I think a design like this could really benefit from tnt minecarts as they explode on impact, removing the fuse limitation which could expand the range of the cannon by quite a lot.
Intresting. Imma build it using that
@@Hulijingjinx how did it go?
Me: plays minecraft to avoid studying maths
cubicmetre: brings maths to minecraft
What if you had a payload on either side of the water stream and you could choose from which side to fire for more control
this cannon is already so cool, yet it is just a proof of concept. i can't wait to see further design changes and optimisations made to improve this cannon type!
Since your working with projectiles, could you design an arrow launcher to kill the dragon upon entering the end? Dragon always spawns at same coords and the design could be useful for speedrunning to elimate all end RNG (faster then 0 cycle or waiting for perch)
The problem is if the end spawn is under endstone.
@@ghostly9835 i think mooing_cowmilk might know just a liiiitle bit about how end generation works... :>
but srsly mr cowmilk what r u envisioning? like reset spawn in stronghold, enter end, build the setup, die at perfect moment while igniting tnt, re-enter end and insta kill dragon upon it teleporting? cos if so, THAT IS FRICKIN AWESOME!!! (and prolly a very good timesave if it would be viable)
@@ghostly9835 isn't the end platform literally always blocked by line of sight by an obsidian pillar from where the dragon is? (I assume he spawns above the portal at the center)
Also how would you not die to your own arrow when going into the portal, does the end generate when the portal is lit or when the player crosses for the first time? Likely the latter, so you would both spawn in the same position and the arrow would be colliding with your hitbox during it's first tick in the end, I can't see that going well either
If this is even feasible, it is not worth it, because it means you need to look for redstone and other components (also more iron) and a whole lot of tnt to get enough strength in the arrow, which also means you need to begin your run in a desert and hope to find more than 1 desert temple, plus you need a village right next to it to get the iron.
What I mean is that from whatever materials is build the arrow cannon, getting them would take a lot more time than waiting for a perch (for one cycle)
wait I hadn't computed you were talking about this for speedrunning, wth? xD
This is impressive. Also the SunTzu interaction was funny as hell 😂
Ah yes, Sun Tzu, he truly engineered how to think during a war.
Imagine the amazing(ly destructive) things we could make by combining this with Create Aeronautics airships!
This is absolutely amazing, now for the real question. Could this be combined with the railgun from previous video?
absolutely, Wargear players do it on a regular basis
@@kaltenstein7718 Shifts don't go too well with stabs tho
To some extent probably, but the idea behind the railgun was perfectly aligned TNT fuses, which would lose a degree of freedom.
You know you found the technical side of minecraft when the guy brings out matlab plots xD
Nice video!
Another video that I can't understand but still watches cuz its cool
But its just a school math and a little of physics.
@@Andrey_Gysev yeh its "just a school math" ...
@@Andrey_Gysev It's more than how you phrased it, I'm sure you know their importance in the real world and I know I'm being REALLY hypocritical by saying this but the 'school math' and 'physics' here aren't just a 'just'. Specifically referring to the calculus and linear algebra used in this video, the two form a foundation for some really high-level mathematics that are used in a lot, and I mean A LOT of scientific and engineering disciplines. It's not something so simple to refer to as 'just a school math' and 'a little of physics'.
@@nuirejuvini9951 Man, its just a 10th and 11th grade math.
So what I am seeing is that this is a masterpiece of redstone technologies, that is also a dream of every kid that played Minecraft 10 years ago?
I feel like if someone uses this a lot, at some point they could eyeball the numbers needed to hit targets
Stuff like this makes me relove dynamics, kinematics and calculus.
dont say it... DONT SAY IT...
guess you can say its a...
smartillery.
12:24 I completely understand, and it made perfect sense to me even without explanation. However... this sentence is extraordinary.
"It's actually surprisingly simple."
Wake up babe, new Minecraft warfare just dropped
Amazing! As a maths student and Minecraft player this is the best video I have seen in a while
News headline next week: "WaveTech server approves Ukraine military funding package of 37 MSAs (Minecraft Smart Artillery)"
Somehow I don't think 200m of range for an artillery is gona cut it for modern combined arms warfare
This is the first time i see Matlab being actually useful, and I had a whole semester of it
Would it be viable to program it to blow up an area?
You are the only person in history to ever say "this is simply calculus."
I so happy to see cannon beeing bring back in 2023 and with SO MUCH COOL MATH, nice job mate!!!
Yeah, I was trying for years to build something like this. But not being a big Minecraft person, I just couldn’t get the timing right beyond a handful of horizontal and vertical presets that needed different timing to reach the same distance.
I never once thought about using water to alter the angles, goddamn engineering genius.
The math isn’t that hard if you know what you’re doing, but knowing what you’re doing is easier said than done. Still, even without calculus, it should be doable for someone who finished high school. Although that could be my years of crying over intermediate level calculus problems talking. So your mileage may vary.
The coding and modeling is genius tier though, MatLab is pretty easy, but that’s a lot of complicated steps to make work explained in an incredibly straightforward manner.
Thank you so much! This is a dream come true for me!
PLEASE just have a look at minecraft Wargears....
It's a german minecraft community that spezialized on crazy precise and strong tnt canons way more advanced than you could imagine. We then throw them into big nicely designed cubes of endstone basically, as they have a high blast resistance, and set them up to fight each other on a Server which I don't want to advertise now but if you want to know just search it up.
There's so much more to it like automatic canons that can shoot every tick(btw dispenser primed tnt is forbidden) and a lot more like defensive mechanisms, tactics in the fight etc. etc.
This is beautiful.
Thank you for sharing all of these formulas.
I recognize now how I could potentially utilise this to create a longer range cannon that would still have an adjustable field of fire.
Who knew this would be the beggining of a journey that lead to a TNT nuke, insane!
It is also possible to have a second cannon that fires a payload which acts as a secondary propellant allowing the cannon to target places that classic trajectories would not reach.
For example, to hit much further objects using the same maximum charge, we can have a cannon that fires a payload meant to explode mid-air (the secondary charge), and another that fires a payload with a similar trajectory but a higher time of flight that would cause the payload to move downwards rapidly upon detonation of the secondary charge.
or a doube tnt jump but by a machine
“if you’re not sure what i’m talking about, this is simply calculus!”
Now we just need an academic journal of applied math in Minecraft for you to publish this to
This has got to be one of the coolest things I've ever seen
welcome to the world of tnt cannons cubicmetre
i hope you stay for a while
A small but extreme smart machine. Never thought I would see calculus put to work to solve problems in Minecraft
Seeing this contraption is very cool, I once attempted to create a tnt cannon with variable range and direction, I managed to get 12 "range" options that could be combined with different block heights for the tnt payload giving me enough customization for my needs.
"like this heavy caliber stationary smart TNT artillery designed by me, built by me"
I love how you gave us the tools to improve your design
You got my respect for using Saxton Hale's legs and torso + Engineer's quote, fellow TF2 player
Nice! Here’s an idea for an improvement: make the timer re-usable. This timer moves the items like it does now, but then, after firing, moves the items back into the timers, like a self-flipping hourglass!
The beauty of this is that, if you are targeting the same spot; you don’t need to make any changes. No re-stocking the timers! Subtle changes are just subtle!
Even more advanced would be having buttons that add or remove items, allowing you to configure the cannon from the front! So, a “controll panel” at the front has “fire”, as well as 2 rows of 3 inputs (note lock variety probally), each row modifying colum controlling one timer, the top row increasing by one item, the bottom decreasing.
A “ready to fire” light turns on when no timing items are in movement. That means the timers have reset from your previous fire, and your adjustments have been accepted and done! You can’t fire while that lights off.
The only major flaw is if you adjust the timer too quickly, it might over or under adjust since your input is just letting items through. To avoid that, always wait at least a half second before adjusting again! (Unless you want to make a counter that it then uses to change the timer…
Bro really derived the guidance and control laws for a minecraft TnT cannon.
Using MATLAB to model Minecraft mechanics... never thought I'd see the day! Most impressive.
Letting the UA-cam alg know I want to see more of these videos
This is truly the next step forward in tnt cannon technology. now we just need the community to come up with multiple weapon designs, and a mod to help you choose the best weapon design for your application. i imagine this could also be used well with ender pearl launchers for long range player movement/ So many possibilities!
Imagine using artillery to win group pvp battles
Good ol’ saxton Hale manufacturing weapons yet again
Its funny because about a mounth ago i had a test in matlab, well actualy in octave that is a free and open source version that uses the same language. And i had to do quite a similar thing. Very well done.
Love the engineering that goes on in some of these videos
How far we’ve come. It is was all fun and games with cannons until you bring out the orbital nuclear bombs
So you obtained a closed form solution for the ballistics of the payload TNT. Impressive. I have been working on a research project in real life where the ballistics of an axisymmetric projectile is solved iteratively. The 6 DOF equations of motion are 12 coupled differential equations that are solved simultaneously. MATLAB solving is simple but I'll have to see what happens when I try this on a microcontroller haha
Thank you for motivating me to do my intro to numerical methods homework🙏
This is awesome! I love math, and its super cool to see it being applied here. The next step: make a smart TNT railgun!
2:58 The Engineer from TF2 truly is the SunTzu of our lifetime
"The answer? Use a gun. And if that don't work, use more gun."
Imagine in the future having tanks with inside groups of people that work together against other tanks
Wargears? They don't move but still
This is just awesome! I use TNT cannons in CTM maps where resources are scarce, so it's hard to find info about advanced cannons which are actually usable to me. But this is exactly what I've been looking for!!
Wow, so complicated and so cool. I never tought this is gonna be posible.
Cubicmetre, you just earned the title "Professor in Minecraft sciences" and if that title does not exist, it should... just for you ;-)
Good to see that learning matlab and linear algebra in university is useful :)
student: "Man why do i have to learn calculus and trigonometry'
Teacher: 'lets watch a minecraft video'
Don't forget linear algebra!
This is insane! I don't think it will be as useful in an attacking pvp scenario since it will take a while to set up, but this might be fun to use within a castle wall!
I have never seen this before until now, amazing!
I actually dreamed of this a year ago, a system that takes an angle, sets fuse time, and take down those pesky enemy flying machines in the air
I have a challenge for you: shooting around corners.
That smart artillery seems to be consistent and precise enough to launch a payload (henceforth: redirection payload) + a projectile to be redirected mid air. It should theoretically be possible but to simplify, you could build a prototype that only shoots straight, and then just varies the position of the redirection payload in relation to the position of the projectile at that point in time.
Using entity tick control like the extreme rail gun tnt cannons do, should allow you to fire a payload so large (actually probably not that big) that just 1 tick of delay between the launched payload and the actual projectile exploding should be enough to get a very large point cloud of possible coordinates.
Taking the smart artillery approach would leave you with 5 degrees of freedom for the limited prototype:
1. ignition delay of projectile
2. x position of redirection payload in relation to the projectile
3. y position of redirection payload -||-
4. z position of redirection payload -||-
5. ignition delay between the static payload and the redirection payload + projectile.
This would, theoretically, allow you to hit any coordinate in a sphere with a radius depending on the size of the redirection payload, at a set offset away from the cannon in the direction it is facing depending on the size of the payload.
Also yes I just noticed there's a major caveat in this. When reaching for medium distances, bullet drop takes effect. Now this is sorta counter-acted by the fact that both the redirection payload and the projectile has the same ballistic arc, but it will still mean that you have to vary the size of the initial payload (and increase d.o.f. 5) to compensate. But still doable! (theoretically).
Now, for actually building the prototype, I think dropping the redirection payload into a 3m^3, alining it with pistons/water streams/water-elevators/!water-elevators (I've seen Ilmango do some crazy entity alignment magic) and then dropping the projectile tnt into this space timed with the explosion of the payload is a valid way to go. I know a limited version is possible, but getting that full 360 degree sphere is probably going to take a whole lot of math and timing.
its funny to go back from newer videos to this. going from send a pinpoint accuracy drilling rod of explosions to anywhere on the map or mining a entire layer of the world for any material to building this little guy that shoots 1 tnt.
This is very cool, but it isn't destructive enough! I made a primitive full-auto aimable TNT Cannon a few years ago. It fires as fast as comparator clocks pulse, but the fuze time of the projectile is always the maximum. It used multiple propellant locations that could be toggled on or off to aim where it shot. Maybe there's a way to do this more elegantly that can shoot at more than just 20 or so different points. There might be a way to make it shoot faster, too, I'm still very new to zero-ticking and such.
This is so fucking cool im studying mechanical engineering and this is the level of math we're studying to build like actual machines and this guy is just doing it for funsies in a 12 year old game
Oh boy it might be time to build that bunker XD
This is awesome! When I clicked on the video, I thought it was probably gonna be some complicated thing having to do with exploiting some bug in Minecraft, but it's actually pretty simple! Makes me want to try to make one, maybe with an alternate payload source on the left side, expanding the area available on that side. Glad I'm a student so I have access to matlab lol
using this alongside subtick mechanics (firing all the projectile tnt on the same frame but offset in processing order) to make an adjustable AP cannon could be cool.
basically shift stabs
this man is TNT mumbojumbo on steroids and I love it
Just found this channel, love for tf2 and love for really cool technical minecraft builds and explanations; im in love!