command parameters

Started by EndrDragon44 on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Jul 2021
Points:
554

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
command parameters

Hello! How do the parameters work when adding commands?

I want to create a command that is written like this; "/damage" and containing the following parameters; "<entity> <amount>", this would look like this; "/damage <entity> <amount>", but I don't know how to add parameters.

PD: the parameters would work as follows ...

"<entity>": (Examples: "@a", "@e", "@e [type=minecraft:zombie]", etc ...)
"<amount>": (Amount of damage you want to do to the selected entity)