Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. package net.minecraft.src;
  2. import net.minecraft.client.Minecraft;
  3.  
  4.  
  5. public class mod_Faithplate extends BaseMod
  6. {
  7. public static final Block Faithplate;
  8.  
  9. static
  10. {
  11.  
  12. Faithplate = (new Block(100, ModLoader.addOverride("/terrain.png",
  13. "/LokiDarkfire/faithplate.png"),
  14. Material.rock)).setHardness(0.5F).setStepSound(soundGravelFootstep).setLightOpacity(3).setLightValue(1.0F).setBlockName("Faithplate");
  15. }
  16.  
  17. public mod_Faithplate()
  18. {
  19. Modloader.AddName (Faithplate, "Faithplate");
  20.  
  21. ModLoader.RegisterBlock(Faithplate);
  22.  
  23. ModLoader.AddRecipe(new ItemStack(Faithplate, 5), new Object[] {
  24. "x", Character.valueOf('x'), Block.dirt
  25. });
  26. }
  27.  
  28. public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
  29. {
  30. float f = 0.125F;
  31. return AxisAlignedBB.getBoundingBoxFromPool(i, j, k, i + 1, (float)(j + 1) - f, k + 1);
  32. }
  33. public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
  34. {
  35. entity.motionX *= 0.0D;
  36. entity.motionZ *= 10.0D;
  37. entity.motionY = 1.40000000000000002D;
  38. entity.motionZ = 10.0D;
  39. entity.fallDistance = -20F;
  40. }
  41.  
  42.  
  43.  
  44. public String Version()
  45. {
  46. return "1.5_01";
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement