In the server The Hive, they have a special item called Boom Boxes, and what it essentially does is that they act like normal TNT, but with some custom bits, and can also be thrown. Now I want to try and replicate the Normal type, where it just gives damage to the entity, but not on the blocks.
So I found this, but I have no idea how to do it properly, plus, it is a Java question.
So what I want to try and do is to not summon a mob in the process, activate the TNT regularly, then explode with no debris or damage left behind.
The only thing I thought of is using a repeating command block:
execute @e[type=tnt] ~ ~ ~ setblock ~ ~ ~ water
Then another command where it removes the water, but I don't know how to detect the TNT no longer existing.
I thought of some solution, but it will only work in a certain plot of land and on a flat world, and has other inconsistencies.
fill 50 1 50 -50 3 -50 grass kill @e[type=item, name=Dirt]
So how can I go about doing this?