The Best Resource for Minecraft
The Best Resource for Minecraft

MoreVanillaLib Mod Wiki

MoreVanillaLib is a foundational library mod for Minecraft that provides shared code, material tiers, and specialized mechanics for MelanX's mod suite, including MoreVanillaTools and MoreVanillaArmor.

5 sections · 517 words

Overview#

MoreVanillaLib is a core dependency mod required for the operation of various mods created by MelanX. While it does not add a vast array of standalone blocks or mobs to the game world, it serves as the engine that defines the properties, behaviors, and statistics for a wide range of materials used in its child mods.

By centralizing the logic for material tiers, durability, and special effects, MoreVanillaLib ensures a consistent experience across different modules. It is primarily utilized by mods like MoreVanillaTools, MoreVanillaArmor, and UtilitiX to implement balanced and thematic equipment based on vanilla resources that previously lacked utility.

Core Mechanics and Material Tiers#

The primary function of MoreVanillaLib is the definition of custom ToolMaterial and ArmorMaterial sets. These tiers are used to calculate how effective a tool is at mining, how much damage it deals, and how long it lasts.

A showcase of various material tiers managed by the library

Material Statistics Table

The following table outlines the base statistics defined within the library for use across supported mods:

Material Durability Mining Speed Attack Damage Enchantability
Paper 13 1.8 0.0 17
Slime 121 3.0 0.5 22
Coal 145 2.5 0.5 17
Lapis 173 6.0 1.0 32
Glowstone 173 5.0 1.5 35
Redstone 173 6.5 1.5 20
Bone 176 4.0 1.0 10
Copper 185 4.5 1.5 12
Prismarine 225 6.0 2.5 15
Quartz 137 8.0 2.0 20
Fiery 750 7.0 2.5 15
Emerald 1054 9.0 3.5 25
Obsidian 1337 4.7 3.0 10
Ender 1845 10.0 4.0 15
Nether 1880 11.0 4.5 20

Special Material Effects#

MoreVanillaLib includes a specialized "Feature" system that grants unique abilities to items made from specific materials. These effects are handled globally by the library:

  • Fiery Effect: Tools made from Fiery materials (often involving Blaze rods or powder) have an inherent Auto-Smelt ability. Mining ores will drop the smelted ingot version, and attacking mobs will set them on fire.
  • Glowstone Effect: Items provide a light source or grant the player Night Vision when held or worn, depending on the specific child mod's implementation.
  • Ender Effect: Provides a chance to teleport away from danger or increases the drop rate of Ender Pearls. Ender tools often have a longer reach.
  • Slime Effect: Adds significant knockback to weapons, allowing players to keep enemies at a distance.
  • Obsidian Effect: Grants extreme durability and resistance to fire/lava damage, making the equipment ideal for Nether exploration.

Configuration#

The mod generates a central configuration file that allows players and server administrators to fine-tune the balance of all materials managed by the library.

Configurable Parameters

  1. Durability Multipliers: Global modifiers to increase or decrease the lifespan of all custom tools and armor.
  2. Mining Levels: Ability to change which blocks can be mined by which material (e.g., making Copper equivalent to Iron or Stone).
  3. Feature Toggles: Individual switches to enable or disable special effects like Auto-Smelt or Night Vision if they are deemed too powerful for a specific modpack.
  4. Enchantability Scales: Adjust how likely it is to receive high-level enchantments at the Enchanting Table for each material tier.

Technical Integration#

For modpack developers, MoreVanillaLib utilizes the standard Minecraft Tag system. It looks for specific item tags to determine what counts as a "repair ingredient" for the various tiers.

  • #c:ingots/copper or #forge:ingots/copper is used for Copper tools.
  • #c:gems/quartz or #forge:gems/quartz is used for Quartz tools.
  • #c:obsidian or #forge:obsidian is used for Obsidian tools.

This tagging system ensures that MoreVanillaLib is compatible with other resource-adding mods, allowing materials from different mods to be used interchangeably in crafting and repairing.