daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Jun 20th, 2018 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package net.minecraft.src;
  2.  
  3. import java.util.ArrayList;
  4.  
  5. import org.lwjgl.opengl.GL11;
  6.  
  7. import net.minecraft.client.Minecraft;
  8.  
  9. public class mod_sampleLiquid extends BaseMod
  10. {  
  11.     public static final Block waterMovingSample = (new BlockFlowingSample(223, LAPI.getUniqueBlockTextureID(0), Material.water)).setHardness(100.0F).setLightOpacity(3).setBlockName("waterr").disableStats().setRequiresSelfNotify();
  12.     public static final Block waterStillSample = (new BlockStationarySample(224, LAPI.getUniqueBlockTextureID(0), Material.water)).setHardness(100.0F).setLightOpacity(3).setBlockName("waterrr").disableStats().setRequiresSelfNotify();
  13.     public static Item bucketSample = (new ItemBucket(14000, waterMovingSample.blockID)).setIconCoord(11, 4).setItemName("bucketSampleWater").setContainerItem(Item.bucketEmpty);
  14.     public static final Block waterMovingSample2 = (new BlockFlowingSample(225, LAPI.getUniqueBlockTextureID(1), Material.water)).setHardness(100.0F).setLightOpacity(3).setBlockName("awaterrrrr").disableStats().setRequiresSelfNotify();
  15.     public static final Block waterStillSample2 = (new BlockStationarySample(226, LAPI.getUniqueBlockTextureID(1), Material.water)).setHardness(100.0F).setLightOpacity(3).setBlockName("awaterrrr").disableStats().setRequiresSelfNotify();
  16.    
  17.     public mod_sampleLiquid()
  18.     {      
  19.         Minecraft mc = ModLoader.getMinecraftInstance();
  20.  
  21.         ModLoader.RegisterBlock(waterMovingSample);
  22.         ModLoader.RegisterBlock(waterStillSample);
  23.        
  24.         ModLoader.RegisterBlock(waterMovingSample2);
  25.         ModLoader.RegisterBlock(waterStillSample2);
  26.        
  27.         ModLoader.AddName(waterMovingSample, "Moving Tropics water");
  28.         ModLoader.AddName(waterStillSample, "Still Tropics water");
  29.        
  30.         ModLoader.AddName(waterMovingSample2, "Moving Tropics water2");
  31.         ModLoader.AddName(waterStillSample2, "Still Tropics water2");
  32.        
  33.         ModLoader.AddName(bucketSample, "Sample Bucket");
  34.  
  35.         bucketSample.iconIndex = ModLoader.addOverride("/gui/items.png", "/sample/samplebucket.png");
  36.        
  37.         TextureSampleWaterFlowFX tswffx = new TextureSampleWaterFlowFX();
  38.         TextureSampleWaterFX tswfx = new TextureSampleWaterFX();
  39.        
  40.         TextureSampleWaterFlowFX2 tswffx2 = new TextureSampleWaterFlowFX2();
  41.         TextureSampleWaterFX2 tswfx2 = new TextureSampleWaterFX2();
  42.        
  43.         LAPI.addLiquidBlock(waterMovingSample, tswffx);     //registers block in LAPI and calls the texture renderers for it
  44.         LAPI.addLiquidBlock(waterStillSample, tswfx);           //registers block in LAPI and calls the texture renderers for it
  45.        
  46.         LAPI.addLiquidBlock(waterMovingSample2, tswffx2);       //registers block in LAPI and calls the texture renderers for it
  47.         LAPI.addLiquidBlock(waterStillSample2, tswfx2);         //registers block in LAPI and calls the texture renderers for it
  48.        
  49.         LAPI.setColorValues(0, 50, 20, 180, 0);
  50.         LAPI.setColorValues(1, 150, 30, 50, 0);
  51.                
  52.         LAPI.RegisterBucket(waterStillSample, waterMovingSample, bucketSample);         //registers the bucket and both states of the liquid block
  53.        
  54.         ModLoader.AddRecipe(new ItemStack(waterMovingSample,20), new Object[] {
  55.             "X", Character.valueOf('X'), Block.dirt                                     //these recipes are purely for testing the liquid
  56.         });
  57.        
  58.         ModLoader.AddRecipe(new ItemStack(waterMovingSample2, 20), new Object[] {
  59.             "X", Character.valueOf('X'), Block.sand
  60.         });
  61.        
  62.         ModLoader.AddRecipe(new ItemStack(waterStillSample2, 20), new Object[] {
  63.             "XX", Character.valueOf('X'), Block.sand
  64.         });
  65.  
  66.         ModLoader.AddRecipe(new ItemStack(waterStillSample,20), new Object[] {
  67.             "XX", Character.valueOf('X'), Block.dirt
  68.         });
  69.        
  70.        
  71.     }
  72.  
  73.     public String Version()
  74.     {
  75.         return "Alpha v1";
  76.     }
  77. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top