Command variables

Started by GamesFrog on Sun, 11/29/2020 - 08:28

Topic category: Help with modding (Java Edition)

Last seen on 10:47, 30. Dec 2020
Joined Nov 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Command variables
Sun, 11/29/2020 - 08:28

How do you add variables to commands. If you want a command like /sphere stone 5 (which will create a sphere out of stone with the radius 5) but the command should also work like /sphere stone 9 (which should create a sphere out of stone with the radius 9) so that the number is a variable and can be changed in the command. How do you do that?