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.

Stanly

Members
  • Joined

  • Last visited

  1. What should i use in steam of IIcons? should i just remove it from the code?
  2. I am trying to create my own fluid in Minecraft 1.8.7 and I have encountered a few problems. I am using the code from this tutorial http://www.minecraftforge.net/wiki/Create_a_Fluid The problems started occurring when i started to code the BlockYourFluid class public class BlockYourFluid extends BlockFluidClassic { @SideOnly(Side.CLIENT) protected IIcon stillIcon; @SideOnly(Side.CLIENT) protected IIcon flowingIcon; public BlockYourFluid(Fluid fluid, Material material) { super(fluid, material); setCreativeTab(CreativeTabs.tabMisc); } @Override public IIcon getIcon(int side, int meta) { return (side == 0 || side == 1)? stillIcon : flowingIcon; } @SideOnly(Side.CLIENT) @Override public void registerBlockIcons(IIconRegister register) { stillIcon = register.registerIcon("modid:fluidStill"); flowingIcon = register.registerIcon("modid:fluidFlowing"); } @Override public boolean canDisplace(IBlockAccess world, int x, int y, int z) { if (world.getBlock(x, y, z).getMaterial().isLiquid()) return false; return super.canDisplace(world, x, y, z); } @Override public boolean displaceIfPossible(World world, int x, int y, int z) { if (world.getBlock(x, y, z).getMaterial().isLiquid()) return false; return super.displaceIfPossible(world, x, y, z); } } the problems where the following: the methods canDisplace and dsplaceIfPossible has been changed (Override annotation needs to be changed) IIcon can no longer be resolved as a type Anyway, if any of you have any suggestions on how to fix this it would be greatly appreciated. Thanks for reading!
  3. If you are looking for a simple mod i would suggest my mod i know it's a little narcissistic, but it is the first mod i have made and it is really simple. all it does is add new ores, items and tools. if you want to take a look at it you can find it here http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2461929-life-s-more-ores#c3

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.