Posted June 25, 20214 yr Recently I've been making a few custom commands for a mod I'm working on, and although making custom commands is easy enough, making them have optional arguments (E.g. Who to target being defaulted to @p) is quite a pain as it requires method overloading (from what I've been doing anyway) causing a lot of duplicated code. Is there a better method to make optional arguments with default values without method overloading and or excessive amounts of code duplication?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.