Giter Site home page Giter Site logo

rpimod's Introduction

RPI Mod

This is a tutorial Minecraft mod for the Modding Basics workshop. All of the files are commented with descriptions and other helpful notes. Many directories also have a README describing their contents, with most of the helpful info in common, just to avoid redundancy.

It was generated using https://generate.architectury.dev/. I recommend using that for generating your own project.

How to use

You can either clone the repo or just download the zip. Or you could just view the code here on Github, whichever you prefer.

Make sure you have Java 17 installed

You should generate Minecraft's source code if you'd like to be able to poke around at it.

You can use these commands depending on what you want to do:

Mac/Linux:

In the command line:

  • Run fabric test client: ./gradlew fabric:runclient
  • Run fabric test server: ./gradlew fabric:runserver
  • Generate Minecraft source code for viewing in IDE: ./gradlew gensources
  • Build fabric jar: ./gradlew fabric:build
    • you can then find the jar in fabric/build/libs/

For forge, same as above but replace fabric with forge.

Wndows:

Same as above but using gradlew.bat instead of ./gradlew

Project structure

├── .gitignore :
├── build.gradle : project build file
├── common/ : common subproject
│   ├── build.gradle : common subproject build file
│   └── src/ :
│       └── main/ : all your common stuff goes here
│           ├── java/com/quatalog/rpimod/ : code goes here
│           │   ├── client/ : client code here
│           │   │   └── RPIModClient.java : common client setup
│           │   └── RPIMod.java : common setup
│           └── resources/ : assets and data go here
│               ├── assets/ : client resources (assets) go here
│               ├── data/ : server resources (data) go here
│               └── rpimod.mixins.json : define common mixins here
├── fabric/ : fabric subproject
│   ├── build.gradle : fabric subproject build file
│   └── src/ :
│       └── main/ :
│           ├── java/com/quatalog/rpimod/fabric/ : fabric specific code goes here
│           │   ├── RPIModFabric.java : fabric setup & entrypoint
│           │   └── client/ : fabric client code goes here
│           │       └── RPIModFabricClient.java : fabric client setup & entrypoint
│           └── resources/ : fabric specific resources, not usually used much
│               └── fabric.mod.json : metadata-ish about your mod for fabric
├── forge/ : forge subproject
│   ├── build.gradle : forge subproject build file
│   ├── gradle.properties :
│   └── src/ :
│       └── main/ :
│           ├── java/com/quatalog/rpimod/forge/ : forge specific code goes here
│           │   ├── client/ : client code here
│           │   │   └── RPIModForgeClient.java : forge client setup & entrypoint-ish
│           │   └── RPIModForge.java : forge setup & entrypoint
│           └── resources/ : forge specific resources, again, not used much
│               ├── META-INF/ :
│               │   └── mods.toml : metadata-ish about your mod for forge
│               └── pack.mcmeta :
├── gradle/wrapper/ : makes gradle exist
│   ├── gradle-wrapper.jar :
│   └── gradle-wrapper.properties :
├── gradle.properties : properties that the gradle build files use
├── gradlew : for running gradle on linux/mac
├── gradlew.bat : for running gradle on windows
└── settings.gradle :

rpimod's People

Contributors

samsthenerd 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.