sp614x / optifine

1.81k stars 418 forks source link

Per Biome Custom Item Textures #1313

Open ignamiranda opened 6 years ago

ignamiranda commented 6 years ago

In my resource pack, I use CTM to make crafting tables in the Overworld green and the ones in the Nether red.

The only problem with this is that in the Nether, the item texture always stays default so it's kind of weird when you right click with a green crafting table and see it become red. https://imgur.com/a/vQYfU

It'd be great if Custom Item Textures had the same property that CTM has for defining biomes.

JackDotJS commented 6 years ago

I feel like this would be REALLY weird in other cases. Like moving between biomes in the Overworld, and finding that your [X] item has magically, and instantly, transformed into something else.

Maybe if there were some kind of configurable transition period, it could work.

sp614x commented 6 years ago

The can be added, but items (handheld, hotbar) would switch when moving between different biomes. This may look strange.

ignamiranda commented 6 years ago

This would be great! Even though it would be strange in many situations

RaulH22 commented 6 years ago

How do I do for example to change the block placed, but instead of changing the biome by changing the name ??

ignamiranda commented 6 years ago

@RaulH22 It's not possible as blocks don't have any NBT data. If you name a block item, place it, break it and pick it back up, the name is gone.

xLastt commented 6 years ago

This is optifine, that is posible with improevements for han example: Furnances and Chests had Name propieties, that supports colours you can make an custom model/texture with the correct code

ignamiranda commented 6 years ago

It is optifine. A mod that adds purely cosmetic/performance changes and doesn't add anything that would go into your save data.

Chests and furnaces are block entities, which most blocks are not. But if you think it's possible you should probably make a separate thread to have it seen.

xLastt commented 6 years ago

Exactly, for an example: image

sp614x commented 6 years ago

Furnaces, chest and all other containers with GUI do not receive their name until the GUI is opened. When the chunks is loaded only the tile entity type is sent to the client, without name.