By default, a vex spawns with a sword and I'm trying to set its tool to air but the tool remains a sword. However, if I set the tool to a different item, cobblestone for example, it works. Code:
code_language.skript:
command /test:
trigger:
spawn a vex at player's location
set last spawned vex's tool to air