Скачать Modularity — Minecraft Моды — ModStock

Modularity

Активный

Установок

0

Последнее обновление

6 месяцев назад

Версии

1.21
Клиент и сервер
Fabric
Библиотеки

A Modularity (API) with useful code features.

This library adds some fast-writing snippets to use when lazy to make something,all content of this mod is divided into each module that has its specific features.

Main features of this mod (since 1.0.0-ALPHA-1.21)

  • ScreenShake - (currently only available through the ModularityAPI module and in-game command.

  • PrettyLogging - Creates a beautifull frame in the log section for easier finding info your mod provides. This code below demostrates the setup message using this api

(Modularity) *========================================================*
(Modularity) || Total Loaded Addons: 8                               ||
(Modularity) ||    |>- Modularity V1.0 BETA Loader: Setup            ||
(Modularity) ||    |>- ModularityLogging V1.0 BETA Loader: Setup     ||
(Modularity) ||    |>- ModularityLoader V1.0 BETA Loader: Setup      ||
(Modularity) ||    |>- ModularityAPI V1.0 BETA Loader: Setup         ||
(Modularity) ||    |>- ModularityUtils V1.0 BETA Loader: Setup       ||
(Modularity) ||    |>- ModularityRegistry V1.0 BETA Loader: Setup    ||
(Modularity) ||    |>- ModularityNetworking V1.0 BETA Loader: Setup  ||
(Modularity) ||    |>- ModularityScreenShake V1.0 BETA Loader: Setup ||
(Modularity) || Minecraft: 1.21                                      ||
(Modularity) || Mixin: 0.8.7                                         ||
(Modularity) || OS: Windows 10 10.0 (amd64)                          ||
(Modularity) || Java: 21.0.3 (Oracle Corporation)                    ||
(Modularity) || Authors:                                             ||
(Modularity) ||    |>- Kofeychi                                      ||
(Modularity) || UwU                                                  ||
(Modularity) *========================================================*
  • Its own addon loading system (pretty buggy,please dont use it anywhere because it uses pretty unstable java reflection).

Example is in this github file: AddonTemplate.java

How to add Modularity to your project:

In build.gradle add this block of code:

repositories {
exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        filter {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies {
    modImplementation "maven.modrinth:modularity:${modularity}" // If you want to just leave it to be there and not include as jar-jar
    modImplementation include("maven.modrinth:modularity:${modularity}") // If you want to add it like jar-jar
}

In gradle.properties add this block of code:

modularity=(version)

Example:

modularity=1.0.1-ALPHA-1.21

(Version IDS can be found in versions tab and descriptions.) Then just rebuld your gradle project!

This API includes the following Modules:

  1. ModularityLoader
  2. ModularityAPI
  3. ModularityBase
  4. ModularityScreenShake
  5. ModularityNetworking
  6. ModularityPrettyLogging
  7. ModularityUtil
  8. Modularity

NOTE: if you are posting in the issues,include the startup message after loading and the crash report.

Участники проекта
kofeychi

kofeychi

Разработчик