Перейти к содержимому
Mineforgian

RadiusToolLib

Lib for creating radius tools

Загрузки
372
Подписчики
2
Обновлён
29 апреля 2023 г.
Лицензия
MIT

Опубликован 28 апреля 2023 г.

RadiusToolLib

Lib for creating radius tools

Adding the dependency

repositories {
    maven {
        url = "https://api.modrinth.com/maven"
    }
}

dependencies {
    // Option 1: Include Ducky Updater to project for it available within your own jar (additional ~20kb)
    include(modImplementation("maven.modrinth:rt-lib:<mod-version>"))
    
    // Option 2: Depend on Ducky Updater, but require that users install it manually
    modImplementation("maven.modrinth:rt-lib:<mod-version>")
}
"depends": {
    "fabricloader": "*",
    ...
    "rt-lib": "*"
},

Usage

public class ModName implements ModInitializer {
                                                                          //Material           //Damage&Speed                   //Radius
    public static final RadiusPickaxe RADIUS_PICKAXE = new RadiusPickaxe(ToolMaterials.NETHERITE, 4, 1.0f, new FabricItemSettings(), 1);
    // For the tool to dig 3x3 - range: 1, 5x5 - range: 2; And so on...
    @Override
    public void onInitialize() {
        Registry.register(Registries.ITEM, new Identifier("your_mod_id", "radius_pickaxe"), RADIUS_PICKAXE);
    }
}

Ченджлог

0.3Бета1.19.4 · 29 апреля 2023 г.
  • Bugs Fixed

  • Optimization Added

0.2Бета1.19.4 · 29 апреля 2023 г.
  • Bug Fixed

    • Ax did not break blocks
  • Added Radius Shovel

0.1Бета1.19.4 · 28 апреля 2023 г.
  • Added all tools except shovel

Комментарии

Загружаем…