Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- public class BlockJump extends Block
- {
- public BlockJump(int blockID)
- {
- // Call our inherited's class telling it
- // we want to use the jukebox texture and
- // have wood like properties
- super(blockID, 74, Material.wood);
- this.setResistance(2.0F).setHardness(10F).setStepSound(soundClothFootstep);
- // Need to create the item that will be dropped
- Item.itemsList[blockID] = new ItemBlock(blockID-256);
- // Sets the recipe be two planks horizontal to each other
- CraftingManager.getInstance().addRecipe(new ItemStack(blockID, 1), new Object[] {
- "##", Character.valueOf('#'), Block.planks
- });
- }
- public int getBlockTextureFromSide(int side)
- {
- if(1==side)
- {
- // Workshop top
- return 43;
- }
- return blockIndexInTexture;
- }
- public void onEntityWalking(World world, int x, int y, int z, Entity entity)
- {
- // Add to the entities upward velocity to send them up into the air
- entity.motionY += 2.0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement