Started by
ThePixelMurderer
on
Topic category: Help with Minecraft modding (Java Edition)
So basically, I'm creating a command called /arson. The idea is that you would type (for example): /arson Player123 5, which would set them on fire for the amount of time shown. How do you get a number from what they type in?
Thanks in advance :)
You can use the "command parameter with index" from the "Advanced" tab (beware that indexes start with 0). If you want to convert it to a number, use "number from text" from "Math" tab.
Hope this helps! ;)
Thanks! This is really helpful :D
No problem :)
I don't understand how to create the parameter though?