What does the diamond Minecraft sword do?

Solution 1:

Yes, you can. This is another easter egg.

I can't remember exactly, so just briefly. You can use it on a wall with plants on it to clear the wall from them and read QR code behind them.