Download ManaTweaks — Minecraft Mods — MetaMods

ManaTweaks

Active

Downloads

2

Last update

6 years ago
Client
Libraries
Addons

ManaTweaks

What is this modification?

ManaTweaks is a special extension that opens up new possibilities for working with mana from the Botania mod through the CraftTweaker system. This library provides developers with a set of tools for programming interactions with magical energy in player inventories.

Main Features

With ManaTweaks, you get access to several functional modules:

Mana Management

  • Extracting mana from items and entities
  • Transferring mana to items and entities
  • Precise control over mana amounts
  • Working with tools that require mana

Mana-based Repair

The system allows restoring the durability of equipment and items using magical energy. You can configure the repair process for individual slots or specific items.

Discount System

Create special conditions for mana usage when wearing certain armor or using specific items by setting individual cost coefficients.

Pixie Summoning

Module for creating and managing pixies from Botania with the ability to customize their characteristics and effects.

Damage Management

Tools for safely modifying item durability with operation feasibility checks.

Technical Requirements

Required dependencies: Botania, CraftTweaker, and MTLib. Without these dependencies, the modification does not function.

Usage Features

It's important to understand that ManaTweaks itself doesn't add any changes to the game. All its capabilities are activated only through custom CraftTweaker scripts. The mod serves as a bridge between Botania and the CraftTweaker customization system.

Examples of method usage:

// Mana extraction
ManaHandler.requestMana(IItemStack, IEntity, int, bool) : int

// Item repair
ManaHandler.manaRepairStack(IItemStack, IEntity, int, int) : bool

// Creating discounts
ManaDiscounter.addDiscount(IItemStack, ManaDiscountFunction) : bool

// Pixie summoning
PixieHandler.spawnPixie(double, double, double, IEntity, IEntity, float, IPotionEffect...) : void

// Durability management
DamageHelper.damage(IItemStack, int) : bool
Project members
nihiltres

nihiltres

Created: 24 Mar 2019

ID: 36606