Skip to content

Instantly share code, notes, and snippets.

@nathansmith
Last active November 4, 2022 12:44
Show Gist options
  • Save nathansmith/693312cd6bee96832111c1588de4b6ce to your computer and use it in GitHub Desktop.
Save nathansmith/693312cd6bee96832111c1588de4b6ce to your computer and use it in GitHub Desktop.

➡️ NOTE:

This was written by my son in December 2017. It may/not still be accurate.


Minecraft: How to make TNT arrows

First, you will need a command block.

To give yourself a command block, type this in the chat.

/give @s command_block 64

Be sure the map creator has enabled "cheats" for the map, before you enter it.

If you are not the creator of the map you are on, you can ask the creator to op you.

Or, if you are the creator of the level and would like to give op permissions to a friend, type this in the chat.

/op PLAYER_NAME

After placing the command block, enter this command code:

/execute @e[type=arrow] ~ ~ ~-1 summon tnt

Be sure the command block is set to:

  1. "Repeat"
  2. "Unconditional"
  3. "Always active"

If you would like to have an exploding egg or snowball, you may substitute that instead of arrow.

/execute @e[type=egg] ~ ~ ~-1 summon tnt
/execute @e[type=snowball] ~ ~ ~-1 summon tnt

I hope you enjoy making exploding TNT projectiles!


P.S.

If you want to make pig arrows, you can substitute that instead of tnt.

/execute @e[type=arrow] ~ ~ ~-1 summon pig

:)

— Hudson Smith

@katzumik
Copy link

katzumik commented Jan 8, 2022

nice

@TamimplayzDev
Copy link

TamimplayzDev commented Jul 17, 2022

If you want the arrow/egg/snowball to explode when contact with a block (in this example, a grass block), then use this command
/execute at @e[type=arrow] positioned ~ ~ ~-1 if block ~ ~-1 ~ grass_block run summon tnt

THIS TUTORIAL IS FOR BEDROCK EDITION/AN OLD VERSION OF JAVA EDITION. THE COMMAND ABOVE IS FOR JAVA EDITION SNAPSHOT 17w45a AND ABOVE!

@Gifted-vicious-bee
Copy link

Gifted-vicious-bee commented Nov 4, 2022

careful while changing the command above to summon something else bc you can crash your minecraft if you're not careful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment