Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
- // Jad home page: http://www.kpdus.com/jad.html
- // Decompiler options: packimports(3) braces deadcode
- import net.minecraft.client.Minecraft;
- import org.lwjgl.input.*;
- public class mod_Ankle extends BaseMod
- {
- public mod_Ankle()
- {
- ModLoader.SetInGameHook(this, true, false);
- }
- public boolean OnTickInGame(float tick, Minecraft minecraft)
- {
- world = minecraft.theWorld;
- EntityPlayerSP entityplayersp = minecraft.thePlayer;
- if (entityplayersp == null)
- {
- return false;
- }
- if (world == null)
- {
- return false;
- }
- timeA = world.getWorldTime();
- //CHECK FALL HIGHT WITH AN IF
- if (!timeSet)
- {
- timeB = world.getWorldTime() + 10L;//12000 = one day
- timeSet = !timeSet;
- }
- if (timeA >= timeB && timeSet)
- {
- entityplayersp.motionX = 1.0D;
- entityplayersp.motionZ = 1.0D;
- timeSet = !timeSet;
- }else
- {
- entityplayersp.motionX *= 0.8;
- entityplayersp.motionZ *= 0.8;
- }
- return true;
- }
- public String Version()
- {
- return "1.8.1";
- }
- public boolean timeSet = false;
- public long timeA = 1L;
- public long timeB = 2L;
- protected World world;
- static
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement