#create a command with several arguments

1 messages · Page 1 of 1 (latest)

proper bobcat
#

i wanna create command /wt and i wanna add these two arguments to it add and remove so /wt should just run another minecraft command called function and if you do /wt add <number> it is going to store that number in a specific scoreboard and run another command called function and i will figure out how to do /wt remove by myselft at that point

proper bobcat
#

no help

rough storm
#

Whats your issue

#

Sounds like a perfectly fine idea

proper bobcat
proper bobcat
proper bobcat
rough storm
#

thank you for the 3 pings

rough storm
proper bobcat
rough storm
#

Google is a good resource, use it

proper bobcat
rustic oyster
#

<text>, if arg-1 is might work good with this

vital hatch
#

Bro pinged him 5 times lol

proper bobcat
vital hatch
#

Replies ping people…

rustic oyster
proper bobcat
proper bobcat
#

pov: you have negative iq

#

@vital hatch

#

and now i pinged you

proper bobcat
#

ayo @vital hatch, have nothing to say huh?

vital hatch
#

hamburger

proper bobcat
#

hamburger

#

what version do you play

#

🙃

#

or you can play any?

vital hatch
#

huh?

young pivot
velvet dirge
#

@proper bobcat command /wt [<text>] [<text>]: trigger: if arg-1 is "add": set {stored_number} to arg-2 execute console command "function my_function" send "&aStored number &e{stored_number}&a in the scoreboard." to player else if arg-1 is "remove": # insert code for remove argument here # execute console command "function my_function" # send "&cNot yet implemented." to player else: send "&cInvalid argument. Usage: /wt add <number>, /wt remove" to player