Comments (4)
That's true. No override of texture source in TFC/Items/ItemOreSmall inherited from TFC/Items/ItemOre. This is easy to implement feature, but will cause copy of all ores (or create small texture from scratch) in existing texture packs, or requires mechanism with fallback into using normal texture of that ore type if small missing.
from tfcraft.
There is no need to do someting "in case the texture pack do not include the small texture" as all the small texture exist in the TFC texture (ok, it's the same as the big one, but the files exist).
If you don't have the small texture in your pack, minecraft will use the default TFC texture.
from tfcraft.
The easiest and pretty looking way to implement is to change directory to subfolder like this (but requires moving of textures)
public ItemOreSmall(int i)
{
super(i);
setFolder("ore/small/");
}
Other way is to override registerIcons like this (will work out of the box)
@Override
public void updateIcons(IconRegister registerer)
{
for(int i = 0; i < MetaNames.length-3; i++)
icons[i] = registerer.registerIcon(textureFolder+MetaNames[i]+" Small Ore");
}
Both way will not work, until strange override of getIconFromDamage present (it should be removed)
@Override
public Icon getIconFromDamage(int meta)
{
return TFCItems.OreChunk.getIconFromDamage(meta);
}
from tfcraft.
Fix pull 52
from tfcraft.
Related Issues (20)
- Enabling debug for a client, you get "cheat" info even though the server has it turned off. HOT 1
- [0.79.22] Food dupe in craft inventory using SHIFT + Click HOT 1
- Exception while updating neighbours HOT 1
- Worldgen creates vanilla doubletall plants with imvalid metadata HOT 10
- All biomes are "Lake" HOT 2
- Cannot disable food decay HOT 1
- Allow Salad bowl break rate to 0% HOT 4
- [Suggestion] More food from calamari HOT 2
- TFC Stone Declared as replaceable? HOT 12
- [BUG] [CRASH] Crashes when pressing 'U' in NEI on some fruits, can't make cider and etc. HOT 4
- Animals born in walls HOT 2
- Compatwork request/question? HOT 1
- Suggestion; Finite fluid system or at least addon HOT 2
- Ticking memory connection HOT 2
- Crash on EntityPlayerMP HOT 12
- Tooltip Localization
- CommandSetPlayerStats never sets the FoodStatsTFC data to the EntityPlayer
- Chunk corruption?
- gtPlusPlus.core.world.darkworld.biome.Biome_DarkWorld$BiomeGenDarkWorld cannot be cast to com.bioxx.tfc.WorldGen.TFCBiome
- Forging don't obtain the product yet display the recipes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tfcraft.