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.

hayhaycrusher

Members
  • Joined

  • Last visited

Everything posted by hayhaycrusher

  1. I dont know What To do Any Help? (i have made my own texture and put it in the right place) package net.minecraft.src; import Hayhay.generic.CommonProxy; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.SidedProxy; 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; /* * Basic needed forge stuff */ @Mod(modid="Hayhaycrusher",name="Haymods",version="1.0.0") @NetworkMod(clientSideRequired=true,serverSideRequired=false) public class mod_haymods { //Telling forge that we are creating these public static Block GreenBrickBlock; public static Item RodItem; @SidedProxy(clientSide="Hayhay.generic.client.ClientProxy", serverSide="Hayhay.generic.CommonProxy") public static CommonProxy proxy; //Declaring Init @Init public void load(FMLInitializationEvent event){ //declaring these GreenBrickBlock = new BlockGreenBrick(3360,1).setBlockName("GreenBrickblock").setHardness(1F).setResistance(5F); RodItem = new ItemRod(3361).setItemName("RodItem").setIconIndex(1); //Registering Block GameRegistry.registerBlock(GreenBrickBlock); //Adding ItemName LanguageRegistry.addName(GreenBrickBlock, "GreenBrick"); LanguageRegistry.addName(RodItem, "Rod"); proxy.registerRenderers(); } } package net.minecraft.src; public class BlockGreenBrick extends Block{ public BlockGreenBrick(int par1, int par2){ super(par1, par2, Material.rock); this.setCreativeTab(CreativeTabs.tabBlock); } public String getTextureFile(){ return "/Blocks.png"; } } package Hayhay.generic; public class CommonProxy { public static String ITEMS_PNG = "/Hayhay/mod/items.png"; public static String BLOCK_PNG = "/Hayhay/mod/Blocks.png"; // Client stuff public void registerRenderers () { } } package Hayhay.generic.client; import net.minecraftforge.client.MinecraftForgeClient; import Hayhay.generic.CommonProxy; public class ClientProxy extends CommonProxy { public void registerRenderers () { MinecraftForgeClient.preloadTexture(ITEMS_PNG); MinecraftForgeClient.preloadTexture(BLOCK_PNG); } }

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.