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.

fastmailsend

Members
  • Joined

  • Last visited

Everything posted by fastmailsend

  1. Hi guys, check this for mistakes. BlockClass: public class CraftClass extends Block { public CraftClass() { super(Material.IRON); this.setUnlocalizedName("Craft"); this.setRegistryName("Craft"); this.setCreativeTab(CreativeTabs.REDSTONE); } @Override public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, @Nullable ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { BlockPos bp = new BlockPos(pos.getX(), pos.getY() + 1, pos.getZ()); Block b = world.getBlockState(bp).getBlock(); if(b == Blocks.DRAGON_EGG) { playerIn.addExperience(131231); } return super.onBlockActivated(world, pos, state, playerIn, hand, heldItem, side, hitX, hitY, hitZ); } mainClass: @Mod(modid = settings.MODID, version = settings.VERSION, name = settings.NAME) public class multistructs { public Main instance = new Main(); public static Block craft = new CraftClass(); @EventHandler public void init(FMLInitializationEvent event) { } @EventHandler public void preinit(FMLPreInitializationEvent event) { GameRegistry.register(craft); } @EventHandler public void postinit(FMLPostInitializationEvent event) { } } Why when i start game i saw no my block in RedstoneTab?

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.