Code Monkey home page Code Monkey logo

clean-neoforge-mdk's Introduction

Clean NeoForge MDK

clean-neoforge-mdk is a fork of the official NeoForge MDK that is reorganized to provide a cleaner and more organized template.

Installation

With GitHub and Version Control

  1. Click Use this template, and then Create a new repository. Give your repository a name, a description, and your desired visibility. Click Create repository.
  2. Click <> Code and copy the HTTPS link to your clipboard.
  3. Open command line, cd into your desired location, and type git clone <url>, where url is the HTTPS link you copied previously.

That's it! Your project is set up and ready for use with Git.

Without Version Control

  1. Open command line, cd into your desired location, and type git clone https://github.com/neph-iap/clean-neoforge.git.

That's it! Your project is set up and ready to code in.

Next Steps

Once you have a local copy of the template, be sure to update the information in src/main/resources/META-INF/mods.toml. Read the documentation carefully, particularly when updating your mod's ID; There are several steps to doing this and you should be extra careful that you do them all correctly to make everything work properly.

Testing Your Mod

You can run your mod in Minecraft to test it by opening a command line instance at the location of your mod's root folder and running ./gradlew runClient. Gradle is a "build tool" for Java, and allows making different "tasks" that you can run with the gradlew file. The most important one you'll need is ./gradlew runClient, which launches a Minecraft instance with your mod, allowing you to test it out. When testing your mod, if thing's dont work as expected, try the following steps:

  • Delete your current world and create a new one. Sometimes (rarely, but not never) reusing an existing world that was created with an earlier version of your mod's code can cause strange issues or behavior. If you are getting odd or inexplicable behavior, consider trying this.
  • Delete the build folder in your root directory. This is created by Gradle when running certain tasks such as runClient, and contains cached information about your code. In some cases, when things go wrong or Gradle is acting funky, this can act as a sort of reset for the tool.
  • Look at the source code for other (preferably simple) mods to see their file structure. Minecraft has a very specific file structure for certain things such as assets, and often it can be confusing remembering which directories go in which other directories and remembering the exact names needed. Given that NeoForge documentatation (and Forge documentation in general) is quite sparse at the moment, consider checking out other open-source mods and how they structure their files.

Contributing

Feel free to file issues with bugs or request new features. Keep in mind the following goals of the project:

  • Be a pre-organized NeoForge MDK with multiple conceptually-separated files over several directories
  • Provide starter classes for registering items, blocks, events, entities, etc.
  • Provide accurate and thorough documentation of all included classes, methods, and fields.
  • Be beginner-friendly, even to those who may be new to coding in general, or just Minecraft modding, or specifically modding with NeoForge in the current version.
  • Stay up-to-date with the latest version of Neoforge in each branch.

as well as the project's non-goals:

  • Do not follow a specific preference of file structure or organization; Follow the most common conventions and recommendations among mod developers
  • Do not provide specialized classes for blocks or items; Do not add bloat that will go unused by many users
  • Do not rovide annotations or other code specific to one IDE or text editor; Keep code generalized and accessible to all users of any editors.
  • Do not go against NeoForge recommendations or code styles
  • Do not discard old versions of the MDK; Keep Minecraft/NeoForge updates to their own branch with the name of the Minecraft update.

clean-neoforge-mdk's People

Contributors

abrarsyed avatar ateranimavis avatar cpw avatar ewyboy avatar ichttt avatar lexmanos avatar marchermans avatar marcus8448 avatar matyrobbrt avatar maxashen avatar mezz avatar mysterious-dev avatar noeppi-noeppi avatar paintninja avatar palkercode avatar pixelgamewizard avatar platinpython avatar sciwhiz12 avatar shartte avatar sizableshrimp avatar spinoscythe avatar technici4n avatar telepathicgrunt avatar thomasaunvik avatar tkain avatar tmvkrpxl0 avatar tterrag1098 avatar unnoen avatar yunus1903 avatar zestyblaze avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.