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

I am new to modding, i already have mcp and eclipse set up and i have a simple block

so my question is how do i make / use a custom texture and how do i set custom things like hardness and drops?

 

my code

 

test.common

 

package test.common;


import cpw.mods.fml.common.Mod;
import net.minecraft.src.Block;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

@Mod(modid = "Dus998_TestMod" , name = "Test" , version ="0.1")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class Test
{

public static Block TestBlock;
    
   
@Init
public void load(FMLInitializationEvent event)
 {
          TestBlock = new blockTestBlock(250, 0).setBlockName("TestBlock");
          
          
          GameRegistry.registerBlock(TestBlock);
          
          LanguageRegistry.addName(TestBlock, "Test Block");
 }



}

the block

package test.common;

import net.minecraft.src.Block;
import net.minecraft.src.CreativeTabs;
import net.minecraft.src.Material;

public class blockTestBlock extends Block 
{

public blockTestBlock(int id, int texture)
    {


	super(id, texture, Material.cloth);
    	this.setCreativeTab(CreativeTabs.tabBlock);
        
    
    }






}

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.