Hmmmm We could Make this more interesting, that ends up making it look like flying and you would Be able to go up mid fall...
var maxVerticalSpeed = 10;//this might not be the best value
var currentHeight;
var startHeight;
var maxJumpHeight;
var longJumpHeight;
var shortJumpHeight;
var midJumpHeight;
var fallSpeed = Player.fallRate;
var jetPower = maxVerticalSpeed;
var jetShortPowerLoss = 2;
var jetMidPowerLoss = 4;
var jetLongPowerLoss = 6;
var jetMaxPowerLoss = 8;
bool isOutOfGas = false;
bool falling = false;
if(keyPress == vk.space){
currentHeight = Player.height-startHeight;
if(!isOutOfGas){
if(fallSpeed>=0){
falling = false;
fallSpeed = 0;
}
if(currentHeight<shortJumpHeight){
//start going up verry fast
Player.height+=(jetPower-fallSpeed);
if(falling){
fallSpeed-=jetPower;
)
}else if(currentHeight>=shortJumpHeight&¤tHeight<midJumpHeight){
//continue at mid power
Player.height+=(jetPower-fallSpeed-jetShortPowerLoss);
if(falling){
fallSpeed-=jetPower;
)
}else if(currentHeight>=midJumpHeight&¤tHeight<longJumpHeight){
//start going up verry fast
Player.height+=(jetPower-fallSpeed-jetMidPowerLoss);
if(falling){
fallSpeed-=jetPower;
)
}else if(currentHeight>=longJumpHeight&¤tHeight<maxJumpHeight){
//start going up verry fast
Player.height+=(jetPower-fallSpeed-jetLongPowerLoss);
if(falling){
fallSpeed-=jetPower;
)
}else if(currentHeight==maxJumpHeight){
isOutOfGas = true;
}
}else{
//player falls at a rate of jetMaxPowerLoss as long as space is held.
Player.height-= jetMaxPowerLoss;
}
if(Player.isGrounded){
isOutOfGas = false;
}
}
This is all Just Psudo Code, I don't actually know how the player physics and such are stored but if Notch can add a Jetpack Item Id be pumped!
"Because I like you" "I like you" "I like you" "I like youuuuu" "and like can lead to like like, and like like can lead to loveee!.... Sure as the stars above Id really like to screw you!... Ohh!..."
I approve of this mod, it might be fun. Although things like this would be nice if they could be done on a save by save basis, or turned on/off in the options.
I'm assuming this is the address for something important in this when Minecraft is running, I don't really know how to use that to find the relevant part in the source code though. So how would i do that? Should i install for example Eclipse and run Minecraft in debug mode? I'm sorry if this is a stupid question but i haven't done any mods before.
If i manage to do this and it's something worth releasing, i was thinking of making the jetpack a two part thing. The main part would go to an armor slot and would let you float when holding the jump button, the controls would be a selectable object with which you could use mouse1 to ascend and mouse2 to descend (in a more controllable manner than releasing the jump button).
Fuel would probably need to be implemented too so that the mobs remain a threat. A placeable fuel block that would let you fly around relatively cheaply in a certain radius around it might work to let you use it to build stuff in peace.
Oh, I'm sorry. I was being a smartass. Inspiration here. Hope you didn't spend too much time trying to find what lives there...
I like the armor and controls idea, I like the fuel idea, and I really like the fuel block idea. Good luck on this, I wish I knew Java so I could help, but I'm a C person.
EDIT: Lava would work as a fuel, it makes sense if you don't think about it, it already can be placed, it's common enough so you can find a bit of it, but rare enough that you can't abuse it. Or lava could be an ingredient in fuel...
Low gravity mod? Whaaat?
Press spacebar. Hold Spacebar. Height++.
Doable.
I keep trying to right click for jets in MC. :sad.gif:
Obligatory screenshots:
My T2 Creeper:
What it does:
I'd settle for a hang-glider/shrike. ;o
Hmmmm We could Make this more interesting, that ends up making it look like flying and you would Be able to go up mid fall...
This is all Just Psudo Code, I don't actually know how the player physics and such are stored but if Notch can add a Jetpack Item Id be pumped!
[leather] [iron] [none]
[leather] [coal][iron]
[leather] [iron] [none]
0x3A28213A
I approve of this mod, it might be fun. Although things like this would be nice if they could be done on a save by save basis, or turned on/off in the options.
I do stuff.
Oh, I'm sorry. I was being a smartass. Inspiration here. Hope you didn't spend too much time trying to find what lives there...
I like the armor and controls idea, I like the fuel idea, and I really like the fuel block idea. Good luck on this, I wish I knew Java so I could help, but I'm a C person.
EDIT: Lava would work as a fuel, it makes sense if you don't think about it, it already can be placed, it's common enough so you can find a bit of it, but rare enough that you can't abuse it. Or lava could be an ingredient in fuel...
I do stuff.
If that is possible.
Zombie Wearing Helmet and Chestplate!!! Herobrine wearing SUNGLASSES!!!