-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating drop logic from blocks and crops, Adding multiple effects fo…
…r foods and adding isWolfFood propertie to food
- Loading branch information
Otho
committed
Dec 5, 2014
1 parent
7d93a3d
commit 7096fbb
Showing
9 changed files
with
177 additions
and
137 deletions.
There are no files selected for viewing
108 changes: 108 additions & 0 deletions
108
src/main/java/com/Otho/customItems/configuration/Cfg_PotionEffect.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
package com.Otho.customItems.configuration; | ||
|
||
public class Cfg_PotionEffect { | ||
public String effect = "moveSpeed"; | ||
public int potionDuration = 30; | ||
public int potionAmplifier = 0; | ||
public float potionEffectProbability = 1; | ||
|
||
public static int potionEffectId (String effect) | ||
{ | ||
if(effect.equals("moveSpeed")) | ||
{ | ||
return 1; | ||
} | ||
else if(effect.equals("moveSlowdown")) | ||
{ | ||
return 2; | ||
} | ||
else if(effect.equals("digSpeed")) | ||
{ | ||
return 3; | ||
} | ||
else if(effect.equals("digSlowdown")) | ||
{ | ||
return 4; | ||
} | ||
else if(effect.equals("damageBoost")) | ||
{ | ||
return 5; | ||
} | ||
else if(effect.equals("heal")) | ||
{ | ||
return 6; | ||
} | ||
else if(effect.equals("harm")) | ||
{ | ||
return 7; | ||
} | ||
else if(effect.equals("jump")) | ||
{ | ||
return 8; | ||
} | ||
else if(effect.equals("confusion")) | ||
{ | ||
return 9; | ||
} | ||
else if(effect.equals("regeneration")) | ||
{ | ||
return 10; | ||
} | ||
else if(effect.equals("resistance")) | ||
{ | ||
return 11; | ||
} | ||
else if(effect.equals("fireResistance")) | ||
{ | ||
return 12; | ||
} | ||
else if(effect.equals("waterBreathing")) | ||
{ | ||
return 13; | ||
} | ||
else if(effect.equals("invisibility")) | ||
{ | ||
return 14; | ||
} | ||
else if(effect.equals("blindness")) | ||
{ | ||
return 15; | ||
} | ||
else if(effect .equals("nightVision")) | ||
{ | ||
return 16; | ||
} | ||
else if(effect.equals("hunger")) | ||
{ | ||
return 17; | ||
} | ||
else if(effect.equals("weakness")) | ||
{ | ||
return 18; | ||
} | ||
else if(effect.equals("poison")) | ||
{ | ||
return 19; | ||
} | ||
else if(effect.equals("wither")) | ||
{ | ||
return 20; | ||
} | ||
else if(effect.equals("healthBoost")) | ||
{ | ||
return 21; | ||
} | ||
else if(effect.equals("healthBoost")) | ||
{ | ||
return 22; | ||
} | ||
else if(effect.equals("healthBoost")) | ||
{ | ||
return 23; | ||
} | ||
else | ||
{ | ||
return 6; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...stomItems/configuration/SideTextures.java → ...Items/configuration/Cfg_sideTextures.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.