Download Better Model Properties — Minecraft Mods — MetaMods

Better Model Properties

Active

Downloads

0

Last update

5 years ago
Client
Decor
Libraries
Utils

Better Model Properties

Better Model Properties (BMP) is a modification that expands texture handling capabilities for items in Minecraft. It adds special properties that allow dynamic changes to item appearances based on various conditions.

Key Features

The mod provides a set of useful properties for working with item models:

  • count — current number of items in the stack
  • size — relative stack fill level (from 0 to 1)
  • storage — number of filled slots in a container
  • storage_primary — fill level of the first container slot
  • storage_full — number of completely filled slots
  • fluid — number of non-empty tanks in a fluid container
  • fluid_primary — fill level of the first tank
  • fluid_full — number of completely filled tanks
  • energy — battery charge level relative to maximum capacity

How It Works

These properties can be used in item model file predicates to replace default textures when certain conditions are met. For example, you can configure different textures for eggs depending on their quantity in the stack.

Here's an example model for eggs:

{
    "parent": "item/generated",
    "textures": {
        "layer0": "minecraft:item/egg_0"
    },
    "overrides": [
        {
            "predicate": {
                "bmp:size": 0
            },
            "model": "minecraft:item/egg_0"
        },
        {
            "predicate": {
                "bmp:size": 0.25
            },
            "model": "minecraft:item/egg_25"
        },
        {
            "predicate": {
                "bmp:size": 1
            },
            "model": "minecraft:item/egg_100"
        }
    ]
}

This configuration provides:

  • "egg_0" texture by default
  • "egg_25" texture when stack is 25% or more filled (for eggs — 4+ items)
  • "egg_100" texture when stack is completely filled (16 eggs)

Mod example

Practical Applications

The mod opens up wide possibilities for creating visually appealing interfaces. You can implement:

  • Container fill indicators
  • Liquid level visualization in tanks
  • Energy device charge displays
  • Dynamic textures based on item quantities

Icons and illustrations in the mod are created by Lorc from game-icons.net and are distributed under CC-BY-3.0 license.

Project members
MaxNeedsSnacks

MaxNeedsSnacks

Created: 11 Sep 2020

ID: 35329