Loading...
Beta Modpages Unclaimed

Better Model Properties

Adds different model properties for texture artists and modders alike to use in their item models.

0 Likes
172 Downloads
Created by MaxNeedsSnacks

Description

Better Model Properties or BMP is a mod that adds various different kinds of properties to items that can be used with model files to dynamically change an item's texture.

 

Some of these properties include:

  • count (absolute stack size)
  • size (relative to max stack size)
  • storage (how many slots are not empty in a container)
  • storage_primary (fill ratio of the first slot in a container)
  • storage_full (how many slots are 100% full in a container)
  • fluid (how many tanks are not empty in a fluid container)
  • fluid_primary (fill ratio of the first tank in a fluid container)
  • fluid_full (how many tanks are 100% full in a fluid container)
  • energy (how full is a battery compared to its max storage)

 

These properties can then be used inside predicates within an item's model file (see the Minecraft Wiki or my example Resource Pack on GitHub for better examples on how to set this up) to override the item's default texture when certain conditions are met. For instance, if you wanted to use a different texture for eggs based on whether you had a single one, more than 4 ones or a full stack of them, you would create a model file called egg.json in assets/minecraft/models/item that looks somewhat like this:

{
  "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"
  }
  ]
  }

 

which would result in the following:
- By default, the item texture "egg_0" will be used.

- If the stack is more than or equal to 0% of the maximum stack size (which... is always), it will use the model file egg_0.json instead

- If it's >= 25% the max stack size (which, for eggs, is >= 4 items), it will use egg_25.json instead and finally

- If it's = 100% the max stack size (which is a full stack of 16 eggs), it will use egg_100.json.

 

If you then set these respective model files to use their own textures, you would get something like this (minus my amazing artistic prowess, of course):

 

Since this may be a bit hard to follow, again, I recommend visiting the example resource pack on my GitHub where you can see both the gorgeous textures
made for this demo as well as the model files used to achieve the above effect.

 

Icons and illustrations in this mod are courtesy of Lorc from game-icons.net and are registered under a CC-BY-3.0 license.


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

Mouse Tweaks

Enhances inventory management by adding various functions to the mouse buttons.

Bookshelf

An open source library for other mods!

BetterFps

Performance Improvements

Comforts (Fabric/Forge/Quilt)

Adds sleeping bags and hammocks for, respectively, portability and turning day to night, without setting new spawns. Comes in 16 different colors!

RandomPatches (Forge)

A bunch of miscellaneous patches for Minecraft, including configurable connection timeouts, player speed limits and other bug fixes and improvements.

Supplementaries

Vanilla+ additions: Jars, signposts, faucets, weather vanes spring launchers, sconces, planters, lights, decoration and automation

Phosphor (Forge)

Performance improvements for Minecraft's lighting engine

FancyMenu [Forge]

Minecraft menus, but much more fancy! Customize menu screens with animations & more!

Snad

Finally, sand that actually makes sugarcane grow faster.