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

code:

package com.BetterArmourAndTools.blocksitems;

import java.util.Random;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.world.IBlockAccess;

public class ClearGlass extends Block {
            public ClearGlass(int id, Material mat){
		super(mat);
		this.setCreativeTab(BetterArmourAndTools.rubyTab);
		this.setHarvestLevel("pickaxe", 2);
	}	

		public void registerBlockIcons(IIconRegister reg)

		{
			this.blockIcon = reg.registerIcon("BetterArmourAndTools:Glass");
	}

		@Override
		public boolean isOpaqueCube() {
		    return true;
		}
		    public int quantityDropped(Random p_149745_1_)
		    {
		        return 0;
		    }

		    /**
		     * Returns which pass should this block be rendered on. 0 for solids and 1 for alpha
		     */
		    @SideOnly(Side.CLIENT)
		    public int getRenderBlockPass()
		    {
		        return 0;
		    }

		    /**
		     * If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
		     */
		    public boolean renderAsNormalBlock()
		    {
		        return false;
		    }

		    /**
		     * Return true if a player with Silk Touch can harvest this block directly, and not its normal drops.
		     */
		    protected boolean canSilkHarvest()
		    {
		        return true;
		    }

}

 

and why this happen: http://gyazo.com/38fe529f481962834cfd1fe38df4b335

 

NEWB! in java im sorry :/

Jesus fucking christ... did you not already have a thread about this? Seriously -.-

 

So I'm not crazy!  For a few minutes there (as I can not find the other thread) I thought I was pre-cog'ing1 again.

 

1I don't have precognition, just a lot of events that make me go "did I dream that?"

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Guest
This topic is now closed to further replies.

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.