I need to know how to create a command with optional arguments

Started by Tiwo68_ on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need to know how to create a command with optional arguments
Thu, 01/15/2026 - 21:59 (edited)

Hello,  i need to know how to create a command with optional arguments using /charged-creeper [pos] [IsIgnited] [FuseDelay]

[IsIgnited] is bool

I got "build failed" when I try to compile it

 

Edited by Tiwo68_ on Thu, 01/15/2026 - 21:59
Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Thu, 01/15/2026 - 21:57

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello,  i need to know how…
Thu, 01/15/2026 - 21:58

Hello,  i need to know how to create a command with optional arguments using /charged-creeper [pos] [IsIgnited] [FuseDelay]

[IsIgnited] is bool

i tried ChatGPT but not worked :(