Started by
Yutaken
on
Topic category: Help with Minecraft modding (Java Edition)
how do you make a command with arguments?
for example, I'm making a mod all on food. and I want to make a command called "/hunger". and the arguments are:<mob> <add/remove/set> <integer>.add to add hunger bar,remove to remove hunger bar,and set to set hunger.
maybe my grammar is wrong.
im not sure.
maybe I can use "hunger <a code to represent @p,@e,@s,@a,and player name> <add|set|remove> <int or num>"
even if it works,how do you do the "add is add hunger,remove is remove hunger,and set to set hunger" problem.
I'll see if I can come up with something for you. If I don't send another reply, then I couldn't think of anything.
thanks qsided.
command parameter with index [command parameter index 0 is first parameter]
in advanced section