Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import net.minecraft.client.Minecraft;
- public class mod_Faithplate extends BaseMod
- {
- public static final Block Faithplate;
- static
- {
- Faithplate = (new Block(100, ModLoader.addOverride("/terrain.png",
- "/LokiDarkfire/faithplate.png"),
- Material.rock)).setHardness(0.5F).setStepSound(soundGravelFootstep).setLightOpacity(3).setLightValue(1.0F).setBlockName("Faithplate");
- }
- public mod_Faithplate()
- {
- Modloader.AddName (Faithplate, "Faithplate");
- ModLoader.RegisterBlock(Faithplate);
- ModLoader.AddRecipe(new ItemStack(Faithplate, 5), new Object[] {
- "x", Character.valueOf('x'), Block.dirt
- });
- }
- public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
- {
- float f = 0.125F;
- return AxisAlignedBB.getBoundingBoxFromPool(i, j, k, i + 1, (float)(j + 1) - f, k + 1);
- }
- public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
- {
- entity.motionX *= 0.0D;
- entity.motionZ *= 10.0D;
- entity.motionY = 1.40000000000000002D;
- entity.motionZ = 10.0D;
- entity.fallDistance = -20F;
- }
- public String Version()
- {
- return "1.5_01";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement