Hey, can you guys show me how do I use the arg-1 two times in two different event? Here is my code.
So I want to use the arg-1 in a different event, but it isn't work. Can you write an example? This is just a test skript btw.
So I want to use the arg-1 in a different event, but it isn't work. Can you write an example? This is just a test skript btw.
Code:
options:
item: stick named "&cTest"
command /test <player>:
description: Testing...
trigger:
if arg-1 is online:
message "Testing %arg-1%"
give player {@item}
message "U got a stick"
execute console command "execute at %arg-1% run setworldspawn ~ ~ ~"
on right click with a stick:
message "test"
execute console command "execute at %arg-1% run setworldspawn ~ ~ ~"