2

Please Help: D-Day: Commandblock MG Nests

Arthwr 6/6/26 9:28 am
115
6/10/2026 5:24 am
So one adventure map had it so that, without using a skeleton's limited range and speed, arrows where fired automatically *at the player directly* at 120 rounds per minute or thereabouts. In other words, it was an unmodded machinegun nest.

I need that for my D-Day map. Can you tell me how to make it?
Posted by
Arthwr
Level 15 : Journeyman Miner
14

  Have something to say?

JoinSign in

6

MooreAM
06/10/2026 3:24 am
Level 1 : New Miner
That method totally works, but keep one important thing in mind for a D-Day map. If you have multiple machine gun nests firing that fast, all those arrows getting stuck in blocks will tank the player's FPS and cause terrible lag. Make sure you set up another repeating command block nearby to clear out the misses. You can use something like /execute as @e[type=arrow] if data entity @s {inGround:1b} run kill @s to instantly delete arrows once they hit the ground or the bunker walls, which will keep your world's TPS stable.
1
The Apex Modder
06/10/2026 5:24 am
He/Him • Level 29 : Expert Mage Modder
good point
1
The Apex Modder
06/08/2026 11:54 pm
He/Him • Level 29 : Expert Mage Modder
You can do it with command blocks. The adventure map was probably spawning arrows directly and aiming them at the player instead of using skeletons, which is why it could fire so quickly and accurately.

For a D-Day map, I'd place the machine-gun nest where I want it, then use a command block to constantly fire arrows toward the nearest player. If you want about 120 rounds per minute, that's roughly 2 shots per second, so you'd have it activate every 10 ticks.

A command like this can be used from the gun position:

execute positioned 100 65 200 facing entity @p eyes run summon arrow ^ ^ ^1


Just replace 100 65 200 with the coordinates of your machine-gun nest.

The general idea is pretty simple:
  • Put the gun at a fixed position.
  • Have a command block constantly look at the nearest player.
  • Spawn arrows facing that player.
  • Fire every 10 ticks to get roughly 120 RPM.

This is usually better than using skeletons because you're not dealing with mob AI limitations. The gun can react instantly, shoot farther, and feel much more like an actual machine-gun emplacement. You can also add sounds, particles, or a little spread to make it look and feel more realistic.

If you're making a D-Day beach landing, having several nests covering different sections of the beach works really well because it forces players to move between cover instead of just running straight to the objective.
1
Beaufort-Scale-5
06/06/2026 9:44 am
He/Him • Level 35 : Artisan Dwarf Theorist
I would start by tinkering around with a summon command like '/summon minecraft:arrow ~ ~1 ~ {Motion:[0d,0d,-9d]}"
4
Arthwr
06/06/2026 9:57 am
Level 15 : Journeyman Miner
Literally the best I can do is /sound plus summoning TNT and lightning in the sky (I'm on 1.20.1)
1
MooreAM
06/09/2026 2:38 am
Level 1 : New Miner
If you're on 1.20.1 and not very familiar with command blocks yet, I'd start by messing around with simple summon and execute commands. Most machine-gun nest setups like this are usually made with those commands rather than any mods.
2

Welcome