Results 1 to 4 of 4
Thread: Need A Code Fix
- 03-29-2012, 12:44 AM #1
Member
- Join Date
- Mar 2012
- Posts
- 2
- Rep Power
- 0
Need A Code Fix
I made a java code and I need help fixing it.
It is for Minecraft 1.2.4
Java Code:public static Item porkRaw = (new ItemFood(63, 3, 0.3F, true)).setPotionEffect(Potion.regeneration.id, 10, 300, 1.0F).setPotionEffect(Potion.damageBoost.id, 100, 300, 1.0F).setPotionEffect(Potion.jump.id, 20, 300, 1.0F).setPotionEffect(Potion.heal.id, 20, 300, 1.0F).setPotionEffect(Potion.fireResistance.id, 20, 300, 1.0F).setPotionEffect(Potion.moveSpeed.id, 20, 300, 1.0F).setIconCoord(7, 5).setItemName("porkchopRaw");
I am stuck on fixing this, and the error is that it only makes me run faster and it glitches alot, can someone tell me how to fix this? :PLast edited by Norm; 03-29-2012 at 01:45 AM. Reason: added code tags
- 03-29-2012, 01:44 AM #2
Re: Need A Code Fix
Please explain the problem. If you are getting errors, please post the full text of the error message.
The first thing I'd do what that compound method call is break it up into single method calls.Last edited by Norm; 03-29-2012 at 01:47 AM.
If you don't understand my response, don't ignore it, ask a question.
- 03-29-2012, 01:48 AM #3
Member
- Join Date
- Mar 2012
- Posts
- 2
- Rep Power
- 0
Re: Need A Code Fix
There is no error message, it just is screwed up in game
Idk how to break it up into single method calls. :P I am new here/
- 03-29-2012, 02:39 AM #4
Similar Threads
-
I want the source code of DUK's Bank , the example code in Java EE 5 Tutorial 2010
By zahra in forum New To JavaReplies: 16Last Post: 01-31-2012, 08:36 PM -
My code was not executed properly.It will jumping to exception handling.my code is
By vinay4051 in forum EclipseReplies: 3Last Post: 08-10-2011, 09:17 AM -
servlet include method copying sorce code and executing source code as output how to
By shamkuma2k in forum Advanced JavaReplies: 0Last Post: 08-07-2011, 08:32 PM -
C server code - Java CLient Code _ TCP Connection Problem
By rmd22 in forum NetworkingReplies: 0Last Post: 02-21-2011, 11:50 AM -
Generating Code Automatically Using Custom code Template In Eclipse
By JavaForums in forum EclipseReplies: 1Last Post: 04-26-2007, 03:52 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks