Loading...
Beta Modpages Unclaimed

ManaTweaks

Botania/CraftTweaker add-on allowing inventory mana manipulation

0 Likes
213159 Downloads
Created by nihiltres

Description

ManaTweaks adds a handful of methods allowing CraftTweaker scripts to manipulate mana in player inventories: providing it, consuming it, repairing durability with it, or discounting its use with armour. The mod does nothing unless CraftTweaker scripts make use of it. You must install Botania, CraftTweaker, and MTLib to use this mod.

I've created an example use of the mod in the form of Botania Materials, which implements materials for Tinker's Construct and Construct's Armory in CraftTweaker/ContentTweaker.

In case it's not obvious from the license: you may freely use this mod in modpacks.

The full documentation is in the "Pages" section, but as a quick overview, see this list of method signatures:

  • ManaHandler module:
    • ManaHandler.requestMana(IItemStack, IEntity, int, bool) : int
    • ManaHandler.requestMana(IEntity, int, bool) : int
    • ManaHandler.requestManaExact(IItemStack, IEntity, int, bool) : bool
    • ManaHandler.requestManaExact(IEntity, int, bool) : bool
    • ManaHandler.requestManaForTool(IItemStack, IEntity, int, bool) : int
    • ManaHandler.requestManaForTool(IEntity, int, bool) : int
    • ManaHandler.requestManaExactForTool(IItemStack, IEntity, int, bool) : bool
    • ManaHandler.requestManaExactForTool(IEntity, int, bool) : bool
    • ManaHandler.dispatchMana(IItemStack, IEntity, int, bool) : int
    • ManaHandler.dispatchMana(IEntity, int, bool) : int
    • ManaHandler.dispatchManaExact(IItemStack, IEntity, int, bool) : bool
    • ManaHandler.dispatchManaExact(IEntity, int, bool) : bool
    • ManaHandler.manaRepairEntitySlot(IEntity, IEntityEquipmentSlot, int, int) : bool
    • ManaHandler.manaRepairEntitySlot(IEntity, int, int, int) : bool
    • (player as IEntity).manaRepairSlot(IEntityEquipmentSlot, int, int) : bool
    • (player as IEntity).manaRepairSlot(int, int, int) : bool
    • ManaHandler.manaRepairStack(IItemStack, IEntity, int, int) : bool
    • (stack as IItemStack).manaRepair(IEntity, int, int) : bool
  • ManaDiscounter module:
    • ManaDiscounter.addDiscount(IItemStack, ManaDiscountFunction) : bool
    • ManaDiscounter.removeDiscount(IItemStack) : bool
  • PixieHandler module:
    • PixieHandler.spawnPixie(double, double, double, IEntity, IEntity, float, IPotionEffect...) : void
    • PixieHandler.spawnPixie(IBlockPos, IEntity, IEntity, float, IPotionEffect...) : void
    • PixieHandler.spawnPixie(double, double, double, IEntity, IEntity, @Optional float) : void
    • PixieHandler.spawnPixie(IBlockPos, IEntity, IEntity, @Optional float) : void
    • PixieHandler.spawnPixie(IEntity, IEntity) : void
  • DamageHelper module:
    • DamageHelper.isSafeDamageModification(IItemStack, int) : bool
    • DamageHelper.damage(IItemStack, int) : bool
    • DamageHelper.repair(IItemStack, int) : bool
    • (stack as IItemStack).canRepair(@Optional int) : bool
    • (stack as IItemStack).canDamage(@Optional int) : bool
    • (entityLivingBase as IEntity).canRepairSlot(IEntityEquipmentSlot, @Optional int) : bool
    • (entityLivingBase as IEntity).repairSlot(IEntityEquipmentSlot, @Optional int) : bool
    • (entityLivingBase as IEntity).canDamageSlot(IEntityEquipmentSlot, @Optional int) : bool
    • (entityLivingBase as IEntity).damageSlot(IEntityEquipmentSlot, @Optional int) : bool
    • (player as IEntity).canRepairSlot(int, @Optional int) : bool
    • (player as IEntity).repairSlot(int, @Optional int) : bool
    • (player as IEntity).canDamageSlot(int, @Optional int) : bool
    • (player as IEntity).damageSlot(int, @Optional int) : bool


AD Become Premium to remove Ads!

What means Verified?

  • Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
  • Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
  • Security: The mod should not contain any malicious code or attempts to steal personal information.
  • Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
  • Originality: The mod should be original and not a copy of someone else's work.
  • Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
  • Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
  • License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
  • Documentation: The mod should come with clear and detailed documentation on how to install and use it.

AD Become Premium to remove Ads!

How to Install

1

Download Forge & Java

Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.

2

Prepare

Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.

3

Add Mods

Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder

4

Enjoy

You are now Ready. Re-start your Game and start Playing.

More Mods like this

ModTweaker

ModTweaker is an addon for CraftTweaker, a recipe manipulator utility for Minecraft. It allows you to modify the recipes of other mods that add their own crafting mechanics

JEITweaker

Adds CraftTweaker support to Just Enough Items

LootTweaker

A CraftTweaker addon that allows loot tables to be tweaked

Recipe Stages

Allows for Crafting table recipes to be locked behind stages.

Initial Inventory

Allows you to set an Initial Inventory for a player using ZenScript

Item Stages

Allows items to be restricted to a stage.

Dimension Stages

Allows access to dimensions to be restricted based on stages.

LootTableTweaker

LootTable support for CraftTweaker / MineTweaker3

Waila Stages

Allows access to Waila HUD and specific tool tip info to be restricted based on stages,