Guest User

mod_ForgeTutBuckets

a guest
Dec 14th, 2011
224
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package net.minecraft.src;
  2.  
  3. import net.minecraft.src.forge.*;
  4.  
  5. public class mod_ForgeTutBuckets extends BaseMod {
  6.     public DirtBucket dirtBucket;
  7.     public static String itemsPng = "/ForgeTutorials/Buckets/items.png";
  8.     public static String terrainPng = "/ForgeTutorials/Buckets/terrain.png";
  9.  
  10.     public mod_ForgeTutBuckets() {
  11.     }
  12.  
  13.     @Override
  14.     public String getVersion() {
  15.         return "1.0";
  16.     }
  17.  
  18.     @Override
  19.     public void load() {
  20.         MinecraftForgeClient.preloadTexture(itemsPng);
  21.         MinecraftForgeClient.preloadTexture(terrainPng);
  22.         dirtBucket = (DirtBucket) new DirtBucket(1337, Block.dirt.blockID, 0).setItemName("dirtBucket");
  23.         ModLoader.AddName(dirtBucket, "Dirt Bucket");
  24.         MinecraftForge.registerCustomBucketHandler(dirtBucket);
  25.     }
  26. }
RAW Paste Data