Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hey guys, so I got someone asking me to update a mod that I made in 1.5.2 when textures were so much easier to sort out, and never updated because I could never work out how to do textures...

 

My MOD_ID is: Everything_and_More_Mod

The folder structure for the textures is: assets\Everything_and_More_Mod\textures\blocks\Basalt.png (this is for the block I am starting with)

Then this is the code I have in Basalt's class:

 

 

package assests.jordsta95;

 

import java.util.Random;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.client.renderer.texture.IconRegister;

 

public class Basalt extends Block{

 

public Basalt(int par1, String string) {

super(par1, Material.rock);

setCreativeTab(Everything_and_More_Mod.EEMTab);

}

public int idDropped(int par1, Random par2Random, int par3)

{

return Everything_and_More_Mod.Basalt.blockID;

}

public int quantityDropped(Random random)

{

return 1;

}

 

@Override

public void registerIcons(IconRegister iconRegister){

this.blockIcon = iconRegister.registerIcon(Resources.MOD_ID + ":" + this.getUnlocalizedName().substring(5));

}

 

 

 

}

 

 

And this is the stuff about it in the main file:

 

 

Basalt = new Basalt(2197, "Basalt").setUnlocalizedName("Basalt").setHardness(0.5F).setStepSound(Block.soundStoneFootstep).setResistance(10000.0F);

GameRegistry.registerBlock(Basalt, "Basalt");

MinecraftForge.setBlockHarvestLevel(Basalt, "pickaxe", 0);

 

 

 

I really don't know what to do. Sorry to be a bother, but all the tutorials/fixes I have seen have either been too complex for me to understand or simply didn't work.

 

Why bother?

setTextureName

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Huh? do that where now?

 

Oh probably anywhere you're using any other set...() commands.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.