Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import java.util.ArrayList;
- import org.lwjgl.opengl.GL11;
- import net.minecraft.client.Minecraft;
- public class mod_sampleLiquid extends BaseMod
- {
- public static final Block waterMovingSample = (new BlockFlowingSample(223, LAPI.getUniqueBlockTextureID(0), Material.water)).setHardness(100.0F).setLightOpacity(3).setBlockName("waterr").disableStats().setRequiresSelfNotify();
- public static final Block waterStillSample = (new BlockStationarySample(224, LAPI.getUniqueBlockTextureID(0), Material.water)).setHardness(100.0F).setLightOpacity(3).setBlockName("waterrr").disableStats().setRequiresSelfNotify();
- public static Item bucketSample = (new ItemBucket(14000, waterMovingSample.blockID)).setIconCoord(11, 4).setItemName("bucketSampleWater").setContainerItem(Item.bucketEmpty);
- public static final Block waterMovingSample2 = (new BlockFlowingSample(225, LAPI.getUniqueBlockTextureID(1), Material.water)).setHardness(100.0F).setLightOpacity(3).setBlockName("awaterrrrr").disableStats().setRequiresSelfNotify();
- public static final Block waterStillSample2 = (new BlockStationarySample(226, LAPI.getUniqueBlockTextureID(1), Material.water)).setHardness(100.0F).setLightOpacity(3).setBlockName("awaterrrr").disableStats().setRequiresSelfNotify();
- public mod_sampleLiquid()
- {
- Minecraft mc = ModLoader.getMinecraftInstance();
- ModLoader.RegisterBlock(waterMovingSample);
- ModLoader.RegisterBlock(waterStillSample);
- ModLoader.RegisterBlock(waterMovingSample2);
- ModLoader.RegisterBlock(waterStillSample2);
- ModLoader.AddName(waterMovingSample, "Moving Tropics water");
- ModLoader.AddName(waterStillSample, "Still Tropics water");
- ModLoader.AddName(waterMovingSample2, "Moving Tropics water2");
- ModLoader.AddName(waterStillSample2, "Still Tropics water2");
- ModLoader.AddName(bucketSample, "Sample Bucket");
- bucketSample.iconIndex = ModLoader.addOverride("/gui/items.png", "/sample/samplebucket.png");
- TextureSampleWaterFlowFX tswffx = new TextureSampleWaterFlowFX();
- TextureSampleWaterFX tswfx = new TextureSampleWaterFX();
- TextureSampleWaterFlowFX2 tswffx2 = new TextureSampleWaterFlowFX2();
- TextureSampleWaterFX2 tswfx2 = new TextureSampleWaterFX2();
- LAPI.addLiquidBlock(waterMovingSample, tswffx); //registers block in LAPI and calls the texture renderers for it
- LAPI.addLiquidBlock(waterStillSample, tswfx); //registers block in LAPI and calls the texture renderers for it
- LAPI.addLiquidBlock(waterMovingSample2, tswffx2); //registers block in LAPI and calls the texture renderers for it
- LAPI.addLiquidBlock(waterStillSample2, tswfx2); //registers block in LAPI and calls the texture renderers for it
- LAPI.setColorValues(0, 50, 20, 180, 0);
- LAPI.setColorValues(1, 150, 30, 50, 0);
- LAPI.RegisterBucket(waterStillSample, waterMovingSample, bucketSample); //registers the bucket and both states of the liquid block
- ModLoader.AddRecipe(new ItemStack(waterMovingSample,20), new Object[] {
- "X", Character.valueOf('X'), Block.dirt //these recipes are purely for testing the liquid
- });
- ModLoader.AddRecipe(new ItemStack(waterMovingSample2, 20), new Object[] {
- "X", Character.valueOf('X'), Block.sand
- });
- ModLoader.AddRecipe(new ItemStack(waterStillSample2, 20), new Object[] {
- "XX", Character.valueOf('X'), Block.sand
- });
- ModLoader.AddRecipe(new ItemStack(waterStillSample,20), new Object[] {
- "XX", Character.valueOf('X'), Block.dirt
- });
- }
- public String Version()
- {
- return "Alpha v1";
- }
- }
Add Comment
Please, Sign In to add comment