Jump to content

Khamai

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by Khamai

  1. Pretend there is a GUI, it has 3 input boxes:

    1.) Link to the weapon design as just a .PNG file

    2.) Attack damage

    3.) Attack speed

    and let's assume hand positioning for said custom weapon has a default premade along with all other necessities. How would one make it so players can dynamically create weapons while being in-game?

    And yes, you can ignore the things like sending requests to the weapon design link, I'm just curious how one would actually register this weapon while the game has already started.

  2. 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?

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.