Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[1.5.1]Run-Mod [PLEASE Help with Modloader]


  • Please log in to reply
123 replies to this topic

#1

gerbon
    gerbon

    Coal Miner

  • Members
  • 107 posts

Posted 13 March 2011 - 04:17 PM

Hey Guys,
have you ever wanted to run in Minecraft , because you are so slow?
You think its nasty because you can be so slow?

Then i have something small for you :
The Run Mod:
When you press "C" you can run.
Your speed will increase from 1.0 to 1.5 for a limited time!

Video:
NVhtDRYbQsQ
1.2:
kb0xTXs87j8
1.3:
cIg-lrPEhxY
1.3.1:
LC6ypkcoHcU


Warning it will overwrite:
ch.class
fm.class
qv.class
Gui Folder


It required nothing so far (Sorry for that >.<).

Installation Instructions:
Copy the files into your minecraft.jar and delete Meta-Inf.

Download And History:
1.0 Run 1.25 RunFly and Extrem IceRun

Quote

http://www.multiupload.com/SFTMBIIAZM

1.1 Only 1 File more Speed and the Bugs are fixed.
http://www.multiupload.com/YNMAN3UCKV

1.2 Your run is now Slower and you Jump Smaller (1 Block instand of 2)
http://www.multiupload.com/OBOTML4UHO

1.3 You have now a Stamina Bar , that mean you can only run a certain time. With a Drink you can restore your Energy.
When you close Minecraft your Stamina will be restore to full!
http://www.multiupload.com/7BL78ID1OC


1.3.1 Stamina regenerate and new Stamina Bar Place(over Armor)
http://www.multiupload.com/XDUFT3264W

1.4 : Update to 1.4 NO ITEMS MORE FORE EXTRA REGENERATION!!
http://www.multiupload.com/5AEIYTAYCF

1.4.1 . Update to 1.4.1
http://www.multiupload.com/CP4IYKAZVF

1.5 Version:
What does it have?
- 2 Block high Jump
- x 1.5 Speed
http://www.multiupload.com/A54CA5DM0N
I didn't add the API because it is a bit buggy and I will wait for the ML Version
1.5.1 Will have:
- API
- Lose Stamina when you hurt
OR
- ML

Quote

(HD-)Texture Pack Compability
by Scearcrovv

Currently supported:
    [*:xq3eq2l6]Misa's HD
    [*:xq3eq2l6]Bordercraft 128x128
    [*:xq3eq2l6]Mixcraft 16x16
    [*:xq3eq2l6]LB Photo Realism 64x64
    [*:xq3eq2l6]Smooth Design Pack

Installation:
    [*:xq3eq2l6]Open minecraft.jar (for example with WinRAR)[*:xq3eq2l6]navigate to the 'gui' folder and open it[*:xq3eq2l6]drag the modified icons.png into the window and press ok OR press ADD and select the modified icons.png and press ok[*:xq3eq2l6]run minecraft

dl: MediaFire

More only on request with PM to Scearcrovv
NEED HELP WITH MODLOADER VERSION

Please Comment and give your opinion, and post some Ideas like depletion when the player runs too fast.
My Channel:
http://www.youtube.c...ig?feature=mhum
Modding Tutorials and Game making Tutorials

Register or log in to remove.

#2

Coupon22
    Coupon22

    Obsidian Miner

  • Members
  • 1478 posts
  • Location: USA
  • Minecraft: Coupon22

Posted 13 March 2011 - 04:18 PM

Great mod, 3 wishes:
1. Modloader Compatibility
2. Fix the bugs
3. Add a stama bar where you can only run for a short while, and have to either wait, eat, or drink a special potion to run agian.
Posted Image

#3

gerbon
    gerbon

    Coal Miner

  • Members
  • 107 posts

Posted 13 March 2011 - 04:22 PM

Thanks^^
1.Okay
2.The Problem is that the bugs are no bugs ...
3. I ´ ll do this at first^^
My Channel:
http://www.youtube.c...ig?feature=mhum
Modding Tutorials and Game making Tutorials

#4

Coupon22
    Coupon22

    Obsidian Miner

  • Members
  • 1478 posts
  • Location: USA
  • Minecraft: Coupon22

Posted 13 March 2011 - 04:32 PM

gerbon said:

Thanks^^
1.Okay
2.The Problem is that the bugs are no bugs ...
3. I ´ ll do this at first^^
The run-jumping and ice running. Those.

They aren't bugs with this, just with the game. I know that. Just see if you can fix the game.

Proply will be hard. (That's what she said)
Posted Image

#5

DigitalPrince

Posted 13 March 2011 - 04:36 PM

:Water: Downloading :Diamond:

#6

tacodell
    tacodell

    The Meaning of Life, the Universe, and Everything...

  • Members
  • 42 posts
  • Location: Why do you wanna know? (FREAK)

Posted 13 March 2011 - 04:37 PM

looks... BEST!
u no like cola? i slap your face.
Posted Image

Posted Image


#7

gerbon
    gerbon

    Coal Miner

  • Members
  • 107 posts

Posted 13 March 2011 - 04:39 PM

Thanks^^
Yeah it would be hard to "fix the bugs"
My Channel:
http://www.youtube.c...ig?feature=mhum
Modding Tutorials and Game making Tutorials

#8

MeltingData

Posted 13 March 2011 - 06:42 PM

When you add the stamina bar, you should probably keep a version that doesn't have a stamina bar updated, so people can have all the unbalanced superjumping they need. You got my download, and nice mod.

#9

trunksbomb
    trunksbomb

    Glowstone Miner

  • Retired Staff
  • 3065 posts
  • Location: Under the bridge

Posted 13 March 2011 - 06:46 PM

If you want to minimize conflicts, you only need to modify cc.class (EntityPlayerSP) for this to work. As is, SPC includes this feature with a user-chosen speed multiplier. Good work, though.

#10

gerbon
    gerbon

    Coal Miner

  • Members
  • 107 posts

Posted 13 March 2011 - 07:05 PM

SPC?(Single Player Commands=? )
I will add 2 DL links without and with.
My Channel:
http://www.youtube.c...ig?feature=mhum
Modding Tutorials and Game making Tutorials

#11

firstEncounter

Posted 13 March 2011 - 07:17 PM

An easier, bug-free way to do this would be to override moveEntity() in EntityPlayer.class, check if KEY_C is held down, and if so call the superclass moveEntity() with the modified arguments.

For example, here's a single-class version that lets you run in both SSP and SMP: http://www.mediafire...q9an82dbx1hu2nz

What I did was (assuming you're using the Minecraft Coder's Pack, even though this is just as easily possible without it) create a moveEntity override in EntityPlayer.java like so:

public void moveEntity(double d, double d1, double d2) {}

To understand what this does, take a look at the beginning of EntityPlayer.java:

public abstract class EntityPlayer extends EntityLiving

The "extends EntityLiving" says "EntityPlayer.java is a continuation of EntityLiving.java and inherits all functions from it unless overridden". If you look in EntityLiving.java, you'll see it extends Entity.java. So EntityPlayer inherits EntityLiving's functions, which inherits Entity's functions. Now in Entity.java, we see the function we want to override: moveEntity. moveEntity() doesn't exist in EntityLiving, so we can safely say that EntityPlayer inherits the original moveEntity() function in Entity.java.

By putting a moveEntity() function in EntityPlayer.java, we're overriding Entity's moveEntity() function. So whenever moveEntity() is called on the EntityPlayer, it's going to the function we just put in EntityPlayer. Right now that function does nothing. Let's fix that.

public void moveEntity(double d, double d1, double d2)
	{
		super.moveEntity(d,d1,d2);	
	}

What the super.moveEntity() does is calls the original function that we're overriding. Which, of course, is the moveEntity() in Entity.java. This makes it so we don't have to recreate everything the original function does.

public void moveEntity(double d, double d1, double d2)
	{
		if(Keyboard.isKeyDown(Keyboard.KEY_C)) {
			super.moveEntity(d*2,d1*2,d2*2);
		} else super.moveEntity(d,d1,d2);	
	}

Now what our function does is checks if KEY_C is down and if so, calls the original moveEntity() function with the movements doubled. And if it isn't down, it just calls the original moveEntity() with the arguments untouched.

This way we've modified one class with very few lines of added code and it's much cleaner. This also works in both SMP and SSP because we're modifying EntityPlayer, which both EntityPlayerSP and the EntityPlayerMP classes extend from.

NOTE: You need to add "import org.lwjgl.input.Keyboard;" to EntityPlayer.java in order to get the Keyboard.isKeyDown() function.

#12

DeadVengeance

Posted 13 March 2011 - 07:26 PM

For some reason I get a black screen when i open up minecraft with this mod... i did everything that i needed to do yet it still doesnt wrk... :/



#13

DeadVengeance

Posted 13 March 2011 - 07:28 PM

soz i cant get it to wrk.... i did everything i needed to

#14

Cromizoid

Posted 13 March 2011 - 07:28 PM

This is pretty good, it doesn't break the "feel" of minecraft, the only things I saw wrong (while nitpicking) weren't game breaking, you should make it so you can't accelerate while in the air, just like real life, and you should try to add support for the GUI API, so we can change the run key. But I've wanted running forever, really glad to see it made.

#15

Starman Junior
  • Location: Space

Posted 13 March 2011 - 07:35 PM

gerbon said:

Thanks^^
1.Okay
2.The Problem is that the bugs are no bugs ...
3. I ´ ll do this at first^^

And add a feature that lets us disable the bar thing if we don't want it.
__̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡

#16

gerbon
    gerbon

    Coal Miner

  • Members
  • 107 posts

Posted 14 March 2011 - 12:34 PM

firstEncounter said:

An easier, bug-free way to do this would be to override moveEntity() in EntityPlayer.class, check if KEY_C is held down, and if so call the superclass moveEntity() with the modified arguments.

For example, here's a single-class version that lets you run in both SSP and SMP: http://www.mediafire...q9an82dbx1hu2nz

What I did was (assuming you're using the Minecraft Coder's Pack, even though this is just as easily possible without it) create a moveEntity override in EntityPlayer.java like so:

public void moveEntity(double d, double d1, double d2) {}

To understand what this does, take a look at the beginning of EntityPlayer.java:

public abstract class EntityPlayer extends EntityLiving

The "extends EntityLiving" says "EntityPlayer.java is a continuation of EntityLiving.java and inherits all functions from it unless overridden". If you look in EntityLiving.java, you'll see it extends Entity.java. So EntityPlayer inherits EntityLiving's functions, which inherits Entity's functions. Now in Entity.java, we see the function we want to override: moveEntity. moveEntity() doesn't exist in EntityLiving, so we can safely say that EntityPlayer inherits the original moveEntity() function in Entity.java.

By putting a moveEntity() function in EntityPlayer.java, we're overriding Entity's moveEntity() function. So whenever moveEntity() is called on the EntityPlayer, it's going to the function we just put in EntityPlayer. Right now that function does nothing. Let's fix that.

public void moveEntity(double d, double d1, double d2)
	{
		super.moveEntity(d,d1,d2);	
	}

What the super.moveEntity() does is calls the original function that we're overriding. Which, of course, is the moveEntity() in Entity.java. This makes it so we don't have to recreate everything the original function does.

public void moveEntity(double d, double d1, double d2)
	{
		if(Keyboard.isKeyDown(Keyboard.KEY_C)) {
			super.moveEntity(d*2,d1*2,d2*2);
		} else super.moveEntity(d,d1,d2);	
	}

Now what our function does is checks if KEY_C is down and if so, calls the original moveEntity() function with the movements doubled. And if it isn't down, it just calls the original moveEntity() with the arguments untouched.

This way we've modified one class with very few lines of added code and it's much cleaner. This also works in both SMP and SSP because we're modifying EntityPlayer, which both EntityPlayerSP and the EntityPlayerMP classes extend from.

NOTE: You need to add "import org.lwjgl.input.Keyboard;" to EntityPlayer.java in order to get the Keyboard.isKeyDown() function.
why did you make this? I make a other method and i dont change it...
Why now People need my mod when you post how to do it ?
Thanks that you want to help me but i dont understand why u dont pm me
Thanks i had make it now so ^^
My Channel:
http://www.youtube.c...ig?feature=mhum
Modding Tutorials and Game making Tutorials

#17

gerbon
    gerbon

    Coal Miner

  • Members
  • 107 posts

Posted 14 March 2011 - 12:38 PM

DeadVengeance said:

soz i cant get it to wrk.... i did everything i needed to
Did you have other mods install
My Channel:
http://www.youtube.c...ig?feature=mhum
Modding Tutorials and Game making Tutorials

#18

gerbon
    gerbon

    Coal Miner

  • Members
  • 107 posts

Posted 14 March 2011 - 04:49 PM

Version 1.2 is now Out .
The Bugs are now Fixed^^
1.3 Brings: ModLoader or the stamina bar .
Maybe somebody can help me how to make it with ModLoader.
My Channel:
http://www.youtube.c...ig?feature=mhum
Modding Tutorials and Game making Tutorials

#19

gerbon
    gerbon

    Coal Miner

  • Members
  • 107 posts

Posted 15 March 2011 - 06:19 PM

I startet to make it with ModLoader. So when somebody would help me i like him ^^
My Channel:
http://www.youtube.c...ig?feature=mhum
Modding Tutorials and Game making Tutorials

#20

Wolverine360
  • Location: Stalker!
  • Minecraft: Wolverine360

Posted 16 March 2011 - 02:08 AM

Single player commands does this.... no offense
You wouldn't know it if you didn't know it!