code_language.skript:
command /enchanter:
trigger:
add 1 enchantment table with custom nbt "{test:1}" named "&9&lTEST" to player's inventory
on click on enchantment table:
if tag "test" of nbt of event-block is set:
cancel event
send "test" to player
Someone can help me?