Minecraft Forge 1.8 - Loading Block Textures
NickName:MrStank Ask DateTime:2015-01-24T08:58:01

Minecraft Forge 1.8 - Loading Block Textures

I have just started learning Java while modding Minecraft. I have watched a tutorial on adding the blocks into the game using the Minecraft Forge API, but I have a problem. There is no longer the ".setBlockTextureName ()" method, so I don't know what to do. I have a simple block added into my game, but it has no texture and I want to add a texture to it. How would I do this for Minecraft 1.8?

P.S.: If this is a duplicate, I am sorry, I only saw questions about Minecraft mobs, not textures for 1.8 (keep that in mind, the Forge API for 1.8 is different than every other version), so I decided to ask myself.

If I need to clarify anything, please, let me know!

Copyright Notice:Content Author:「MrStank」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/28121137/minecraft-forge-1-8-loading-block-textures

Answers
ArtOfCode 2015-03-17T21:03:43

Texturing is very different in 1.8. Here are some tutorials:\n\nUpdating Blocks;\nUpdating Items.\n\nFor both of the above:\n\n\nRemove any GameRegistry.registerBlock from the main mod class. These should now be in the block/item's constructor.\nAdd a private final name field and create a getter for it.\n\n\nFor blocks:\n\n\nIn src/main/resources/assets/{MODID}/models/block you will need 2 JSON files.\nThe first should be called {BLOCKNAME}.json and contain this:\n\n{\n \"parent\": \"block/cube_all\",\n \"textures\": {\n \"all\": \"{MODID}:blocks/{BLOCKNAME}\"\n }\n}\n\n\nThe second has the same name, goes in src/main/resources/assets/{MODID}/models/item, and has this code:\n\n{\n \"parent\": \"{MODID}:block/{BLOCKNAME}\",\n \"display\": {\n \"thirdperson\": {\n \"rotation\": [ 10, -45, 170 ],\n \"translation\": [ 0, 1.5, -2.75 ],\n \"scale\": [ 0.375, 0.375, 0.375 ]\n }\n }\n}\n\nNow in src/main/resources/assets/{MODID}/blockstates, you need 1 more JSON file. With the same name, it should hold this code:\n\n{\n \"variants\": {\n \"normal\": { \"model\": \"{MODID}:{BLOCKNAME}\" }\n }\n}\n\n\n\nYou should replace {MODID} and {BLOCKNAME} with your mod's ID and block's name, respectively.",


More about “Minecraft Forge 1.8 - Loading Block Textures” related questions

Minecraft Forge 1.8 - Loading Block Textures

I have just started learning Java while modding Minecraft. I have watched a tutorial on adding the blocks into the game using the Minecraft Forge API, but I have a problem. There is no longer the ".

Show Detail

MC Forge 1.8 Texturing Items

I read the question titled "Minecraft Forge 1.8 - Loading Block Textures", but the links giving in that question longer exist (error 404). So, I was curious, how do I load an item's texture in Mine...

Show Detail

Minecraft Item Texture Not Loading - Forge 1.8

I am getting into Minecraft modding, and when I try to load a texture for my item (refined_iron) it just shows up as a black and purple square. What I notice in the log is this [Client thread/ERR...

Show Detail

Block textures and block names not loading minecraft forge

I am making a mod for minecraft but I can't get the textures to load: Also the names dont show up correctly (tile.Yarrite Ore.Name instead of Yarrite Ore): here is the code I used to Create the b...

Show Detail

Minecraft forge not loading textures

I'm trying to teach myself java syntax and using minecraft as a platform for diving in. I'm having a problem though because none of my textures are being loaded. For that matter neither are my

Show Detail

Minecraft Forge 1.8 - ServerProxy not working on SinglePlayer

I'm writing a mod in Forge 1.8 and I'm making use of the SidedProxy system. I added some items/blocks for testing, but my mod mostly needs to control logic on the server side of things/write and read

Show Detail

Minecraft Forge: My armor textures are not showing up on armor

The game works fine, it just won't load the textures. package theDwainFilms19.SuperSmashBrosMod.item; import scala.tools.nsc.MainClass; import theDwainFilms19.SuperSmashBrosMod.SuperSmashBrosMod;

Show Detail

forge mod block textures 1.12

I am creating a new block in minecraft but in 1.12 it puts me a new error loading the texture [12:00:20] [main/ERROR] [FML]: Exception loading model for variant chestadd:chestone#facing=west for

Show Detail

Model renderer not working in Minecraft Forge

I'm attempting to create a Minecraft mod with Minecraft Forge for Minecraft 1.8 (recommended version), but the model renderer isn't working. CustomItem is rendering as a classic purple and black b...

Show Detail

Forge modding - Error: Unable to load definition cc:range_block#normal

I'm currently following Mr. Crayfish'es tutorials on how to make a Minecraft mod for Minecraft 1.8 with Forge. I've followed what he is doing, but Forge is: Unable to load definition cc:range_block#

Show Detail