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.

Christofmeg

Members
  • Joined

  • Last visited

Everything posted by Christofmeg

  1. Okay I'm trying to create a block. When I'm running the mod in eclipse everything works fine, but the mod is crashing when I'm testing it with the vanilla minecraft launcher. The numbers on the side is the line numers. Here is a part of the main class nationalscience: 67 @EventHandler 68 public void PreInitialize(FMLPreInitializationEvent event) 69 { 70 NSBlocks.init(); 71 } Here is a part of the NSBlocks class: 21 public final class NSBlocks 22 { 23 public static Block CompressedCobble; 24 25 public static void init() 26 { 27 CompressedCobble = new BlockCompressedCobble().setBlockName("compressedcobble"); 28 GameRegistry.registerBlock(CompressedCobble, ItemCompressedCobble.class, CompressedCobble.getUnlocalizedName().substring(5)); 29 } 30 } Here is a part of the BlockCompressedCobble class: 22 public class BlockCompressedCobble extends Block 23 { 24 public BlockCompressedCobble() 25 { 26 super(Material.rock); 27 this.setHardness(3.0F); 28 this.setResistance(5.0F); 29 this.setCreativeTab(CreativeTabs.tabBlock); 30 } 31 } Here is the crashreport:
  2. Okay I can see that you have a problem with the dropping of blocks in 1.7.2 so I have some examples for you that could help you out: [Notice] You must replace the <> //If the block's drop is an item. public Item getItemDropped1(int metadata, Random random, int fortune) { return YOURMOD.YOURMOD; } //If the block's drop is a block. public Item getItemDropped(int metadata, Random random, int fortune) { return Item.getItemFromBlock(YOURMOD.TESTBLOCK); } //If the block's drop is a vanilla item. public Item getItemDropped(int metadata, Random random, int fortune) { return Item.getItemById(<ItemID>); } //If the block's drop is a vanilla block. public Item getItemDropped(int metadata, Random random, int fortune) { return Item.getItemFromBlock(Block.getBlockById(<BlockID>)); }

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.