This is a short video on how to create custom commands in
minecraft java
create command /scoreboard objectives add (custom command here) trigger
enable it for players /scoreboard players enable (Custom Command here)
command for the custom command /execute at @a[scores={commandhere=1}] run command here no /
reset /scoreboard players set (custom command here) 0