Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Yagnap

Yagnap

Members
 View Profile  See their activity
  • Content Count

    2
  • Joined

    June 3, 2020
  • Last visited

    February 15

Community Reputation

0 Neutral

About Yagnap

  • Rank
    Tree Puncher
  1. Yagnap started following [1.16.4] How can I create a command with multiple arguments? January 19
  2. Yagnap

    [1.16.4] How can I create a command with multiple arguments?

    Yagnap posted a topic in Modder Support

    My command is in a seperate class and are registered in another class. I want to make a command that goes about like this: /modid commandname [argument] I also want the commandname to be in the autocomplete, so i use: public static ArgumentBuilder<CommandSource, ?> register(CommandDispatcher<CommandSource> dispatcher) { return Commands.literal("commandname") .requires(cs -> cs.hasPermissionLevel(0)) .executes(CMD); } CMD is a private static final Instance of the class of the Command. How can I get [argument]? Thank you in advance for any tips.
    • January 19
    • 1 reply
  • All Activity
  • Home
  • Yagnap
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community