Jump to content

MDW01

Members
  • Posts

    441
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by MDW01

  1. I wouldn't worry about trying to figure out how to add dependencies to your jar almost everything you'll need is already included in the forge and Minecraft libraries. Look through the libraries in your workspace and you'll see what forge gradle has added to your workspace also you can look through Minecafts source code to get ideas on how mojang implements stuff and if you view the forge source you can get information on how to use the forge code.

    • Like 1
  2. What I would do is when the item is right clicked have it execute the command 

    /time set day

     So I believe what you are looking for is this 

    MinecraftServer.getServer().getCommandManager().executeCommand(player, command)
    

    When run it should execute the command of your choice.

  3. You have a couple different options you can use git command line or use a client such as GitHub Desktop (Free) or GitKraken (GitKraken is free if you have the GitHub Student Pack). If you are new to git I recommend using a client as it is easier to learn.

    1. Login to Github 
    2. Go to the location of your project
    3. Open up the folder in Terminal or Command Prompt or Git client
    4. Initialize using the command bellow or the client the repository this will create a new repository on Github 
      git init
    5. Commit the files and Push them to git using the client or with the commands below.
    git commit -a
    git push origin your_branch_name

     

    I recommend you add a git ignore so you don't push some of the project files that eclipse creates as these should be regenerated for each user.

     

    also never directly push to master as only code you know works should be there so create a new branch.

     

    • Like 1
×
×
  • Create New...

Important Information

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