Skip to content
Matias Bjarland edited this page Dec 6, 2017 · 2 revisions

Resources: Adding Textures

Requirements

  • A mod.
  • Something to add a texture to.
  • A texture.

Instructions

  • First of all, you should make sure that you have a texture. The size of the texture is usually a multiple of 16 that is the same on both sides (16x16, 32x32, 64x64, and that's usually the highest). So long as this is the case, you should have no problem loading the texture into the game. If you just need something simple for this tutorial, just create a white 16x16 square for this purpose.

  • Before you start though, you first need to place this texture in the right location. For blocks, it needs to be placed in resources/assets//textures/blocks, and for items it needs to be placed in resources/assets//textures/items. If any of these folders don't exist, create them so that this path exists.

  • Now that you've done that, you need to tell Minecraft the name of the texture an item or block should use. For blocks, add :block-texture-name "<modid>:<texturename>" (the mod id should be the same as the mod name for now). The texture name in this case should not contain any spaces, and an extension is not required (so don't put .png and such at the end of it).

  • If this is an item, simply add :texture-name "<modid>:<texturename>".

  • Assuming the texture is in the correct folder, and you specified the name correctly, Minecraft should run now. Run Minecraft, and go to your block or item, and see if it has the texture instead of those ugly black/purple squares. If it does, congratulations, it worked!

  • Next, we'll look at how to add a different texture on each side of a block!

Clone this wiki locally