Lets say i have these 2 commands in a Minecraft 1.13 function:
clear @p golden_chestplate 1
execute ...
How do i make it such that the execute command (or whatever command) is activated only when the previous command has successfully activated?
I did this using command blocks, but as command blocks are laggy I'd like to use function instead.
I know this syntax is incorrect but this is basically what i mean:
/execute if command "clear @p golden_chestplate 1" run ...
or
/execute store success command "clear @p golden_chestplate 1" @p Objective as @p[scores={Objective=1}] run ...
Please take note that I'm using Minecraft 1.13
Thanks a lot!