Texture System - TinyModularThings/IC2Classic GitHub Wiki
IC2 Classic uses Sprite sheets to load its textures. This is only do to how IC2Classic generates all it's data.
So how that system works is very simple: It loads the sheet when mc loads the textures and then cuts it appart in game. This makes the system just simulate Sprite sheets while actually using normal sprite icons. It also reduces loading time for the whole reason that there is overall less to load.
But this unique system allows to have sheets and also single sprites.
IC2C has a Sprite Replacement system that allows you to load single sprites into a Sheet.
When a Sprite is getting loaded you need to define a location/identifier for it in Minecraft and this identifier is actually allowing to add replacements.
So this is how the identifier is being generated:
"assets/modID/replacements/spriteSheetID/spriteSheetIDx5y5.png"
breakdown of this is very simple: in the folder "assets/modID/replacements" you put a folder of the sprite sheet you want to replace with its id. Then you create a file that just is named the name of the id of the sprite sheet and the position in the sheet itself. x5y5 mean that it is at horizontal position 5 and vertical position 5. (Starting at 0)
Here is a list of the sprite sheets and their IDs: SpriteID = SpriteFile
- b0 = block_0.png
- bc = crops_0.png
- bgen = block_generator.png
- bgenComp = block_generator_compact.png
- bmach_lv = block_machine_LV.png
- bmach_lv_2 = block_machine_LV_2.png
- bmach_mv = block_machine_MV.png
- bmach_hv = block_machine_HV.png
- bpersonal = block_personal.png
- bpersonalE = block_personal_Energy.png
- bcable = block_cable.png
- belec = block_electric.png
- i0 = item_0.png
- i1 = item_1.png
- i2 = item_2.png
- i3 = item_3.png
- batBox = Batbox.png
- mfe = MFE.png
- mfsu = MFSU.png
- bBox = BatteryStation.png
- CPad = block_pads.png
- Gui = GuiIcons.png
- pesu = PESU.png
- bcable2 = block_cable_2.png
- slots = slot_icons.png
When using the replacement system all the vanilla rules of sprites apply. Animations etc can be injected too.
If there is questions about it open an issue and it will be answered.