Ok guys, Beta 1.3_01 renamed the class files AGAIN, so I'm going to go through and find it again. Once I do I will add a normal healing version (1.5 hearts per use) and the full healing version.
After an hour of log in, try again, log in, try again, repeat, etc. I was finally able to download 1.3_01 and update the mod. It is now version 2.0 because it includes a normal healing version and a full healing version as requested. I am now working on multiplayer support.
-EDIT- Now has multiplayer support so you can NOMNOMNOM with all of your friends.
I love the mod, great idea and it has many uses.
But i have a request:
Can you make the cake also be configureable to just last 2X as long, and maybe 3X as long...or configureably to X number of uses???
I'm trying to make a version where cake lasts 2x as long, and so I used a while statement to only update the metadata every two times you eat the cake. The problem is, this relies on a variable that is reset every time you close the game. This allows you to eat once, close the game, and open it back up and eat again without the cake being depleted. I declared a variable at the top of the class file (I think this may be the issue) and changed the healing code of the cake to look like this:
*method name for cake block healing*(*parameters*)
{
*check for player health being under 20*
{
*heal the player 1.5 hearts*
countcake = (countcake+1);
*declare variable l as block metadata + 1*
*check if l is greater than or equal to six (cake uses)*
{
*get rid of the cake because its used*
} else
{
while (countcake >= 2) {
*set the cake metadata to show it's been eaten*
*update the cake*
countcake = 0;
}
}
}
}
(As you can see I replaced the obfuscated stuff with a (hopefully) more clear definition of what it does so it would be easier to read)
I'm a bit of a noob at modding so my code is very messy, and I'm stumped as to any other way I can make the cake last 2x as long. Any suggestions or help is appreciated.
NOW I CAN BE A SOLDIER AGAIN! no more worrying about my sword back firing and stabbing my heart, or dropping on my foot...or flying out of my hand, around the world, and into the back of my head...or, well, i think you get the point
You got it to work for 1.4 so fast? Without Modloader? How?
Mods only use ModLoader to ensure no compatibility issues will occur when placed with other mods. This mod only requires a small change in the cake block's functions, and edits only the cake block's class.
-EDIT- Now has multiplayer support so you can NOMNOMNOM with all of your friends.
But i have a request:
Can you make the cake also be configureable to just last 2X as long, and maybe 3X as long...or configureably to X number of uses???
how do i use it? insert like regular mod? and then in game what do i do?
Just eat the cake after you install it. just like any other mod.
Member of the official ctm pillar club
(As you can see I replaced the obfuscated stuff with a (hopefully) more clear definition of what it does so it would be easier to read)
I'm a bit of a noob at modding so my code is very messy, and I'm stumped as to any other way I can make the cake last 2x as long. Any suggestions or help is appreciated.
[sigh] i think i'm cursed, not accident prone
EDIT: Just to clarify, I updated the SSP version ONLY. MP version coming soon.
It's not raceist, Im americian xD
Show your support for the best mod ever!
You'd figure, with you being 'americian', you'd be able to spell 'America' properly. :-/
OT: Good job updating this so fast, OP.
Mods only use ModLoader to ensure no compatibility issues will occur when placed with other mods. This mod only requires a small change in the cake block's functions, and edits only the cake block's class.
-.-
Updated Multiplayer Version to Minecraft Server 1.4
Really good modders with real experience dont even need to use modloader.
But yes this is suspicious.
.-.
As it is the first.
It was the first for 1.3 too.