Coder Social home page Coder Social logo

bta-sleepless-additions's Introduction

Example Mod

Template for making Babric mods for BTA!

Note: DO NOT fork this repository unless you want to contribute!

Prerequisites

  • JDK for Java 17 (Eclipse Temurin recommended)
  • Intellij IDEA (Scroll down for the free community edition, if using linux DO NOT use the flatpak distribution)
  • Minecraft Development plugin (Optional, but highly recommended)

Setup instructions

  1. Click the Use this template button on this repo's page above (Will only appear if logged in). Choose Create a new repository, you will be redirected to a new page. Enter your repo's name and description, and hit Create repository.
    To get your project, open IntelliJ IDEA and click Get from VCS. Select Repository URL and enter your repo's url

  2. After the project has finished importing, close it and open it again.
    If that does not work, open the right sidebar with Gradle on it, open Tasks > fabric and run ideaSyncTask.

  3. Create a new run configuration by going in Run > Edit Configurations.
    Then click on the plus icon and select Gradle. In the Tasks and Arguments field enter build.
    Running it will build your finished jar files and put them in build/libs/.

  4. Lastly, open File > Settings and head to Build, Execution, Development > Build Tools > Gradle.
    Make sure Build and run using and Run tests using is set to Gradle.

  5. Done! Now, all that's left is to change every mention of examplemod and turniplabs to your own mod id and mod group, respectively. Happy modding!

Tips

  1. If you haven't already you should join the BTA modding discord! https://discord.gg/FTUNJhswBT
  2. You can set your username when launching the client run configuration by setting --username <username> in your program arguments.
  3. Set online-mode to false inside of run/server.properties in order to be able to join your server!
  4. When launching the server run configuration you may want to remove the nogui program argument in order to see the regular server GUI.
  5. In Intellij you can double press shift or press ctrl+N to search class files, change the search from the default Project Files to All Places you can easily explore the classes for you dependencies and even BTA itself.
  6. In Intellij if ctrl+left click on a field or method you can quickly get information on when and where that field or method is assign or used.

bta-sleepless-additions's People

Contributors

sammysemicolon avatar mlekpi 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.