Dynamite is a thrown explosive that is crafted as shown on the picture on the right.
Crafting[]
If you cannot see the crafting recipie as it is fairly small, it is crafted like this: S :String G :Gunpowder O :Empty Space.
Usage[]
Dynamite is very easy to use: you simply have to right click while the dynamite is selected, and watch it shoot out to the direction that you were facing, and it will explode.
It was used for 1.21: The Lights, Camera, Action! Update