Skip to content

Commit

Permalink
Converted old slime to new custom mob head: horse (Thanks Glompalici0us)
Browse files Browse the repository at this point in the history
  • Loading branch information
meiskam committed May 3, 2013
1 parent b79b7f9 commit 14b198a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# spiderdroprate: 0.002 [0.0 -> 1.0] Chance that a mob trophy will drop when a spider dies (1 is 100%, 0 is never)
# endermandroprate: 0.002 [0.0 -> 1.0] Chance that a mob trophy will drop when an enderman dies (1 is 100%, 0 is never)
# blazedroprate: 0.002 [0.0 -> 1.0] Chance that a mob trophy will drop when a blaze dies (1 is 100%, 0 is never)
# horsedroprate: 0.001 [0.0 -> 1.0] Chance that a mob trophy will drop when a horse dies (1 is 100%, 0 is never)
# squiddroprate: 0.002 [0.0 -> 1.0] Chance that a mob trophy will drop when a squid dies (1 is 100%, 0 is never)
# silverfishdroprate: 0.01 [0.0 -> 1.0] Chance that a mob trophy will drop when a silverfish dies (1 is 100%, 0 is never)
# enderdragondroprate: 0.05 [0.0 -> 1.0] Chance that a mob trophy will drop when an ender dragon dies (1 is 100%, 0 is never)
Expand All @@ -36,6 +37,7 @@ witherdroprate: 0.025
spiderdroprate: 0.002
endermandroprate: 0.002
blazedroprate: 0.002
horsedroprate: 0.001
squiddroprate: 0.002
silverfishdroprate: 0.01
enderdragondroprate: 0.05
Expand Down
2 changes: 2 additions & 0 deletions src/lang.properties
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ HEAD_CREEPER=Creeper Head
HEAD_ENDER_DRAGON=Ender Dragon Head
HEAD_ENDERMAN=Enderman Head
HEAD_GHAST=Ghast Head
HEAD_HORSE=Horse Head
HEAD_IRON_GOLEM=Iron Golem Head
HEAD_MUSHROOM_COW=Mushroom Cow Head
HEAD_SILVERFISH=Silverfish Head
Expand All @@ -51,6 +52,7 @@ HEAD_SPAWN_CREEPER=#creeper
HEAD_SPAWN_ENDER_DRAGON=#enderdragon
HEAD_SPAWN_ENDERMAN=#enderman
HEAD_SPAWN_GHAST=#ghast
HEAD_SPAWN_HORSE=#horse
HEAD_SPAWN_IRON_GOLEM=#irongolem
HEAD_SPAWN_MUSHROOM_COW=#mushroomcow
HEAD_SPAWN_SILVERFISH=#silverfish
Expand Down
2 changes: 1 addition & 1 deletion src/org/shininet/bukkit/playerheads/CustomSkullType.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public enum CustomSkullType {
SPIDER("Kelevra_V", PlayerHeads.format(Lang.HEAD_SPIDER), Lang.HEAD_SPAWN_SPIDER), // Thanks SethBling
ENDERMAN("Violit", PlayerHeads.format(Lang.HEAD_ENDERMAN), Lang.HEAD_SPAWN_ENDERMAN), // Thanks SethBling
BLAZE("Blaze_Head", PlayerHeads.format(Lang.HEAD_BLAZE), Lang.HEAD_SPAWN_BLAZE), // Thanks SethBling
// TEMP("gavertoso", PlayerHeads.format(Lang.HEAD_), Lang.HEAD_SPAWN_), // Thanks Glompalici0us //TODO
HORSE("gavertoso", PlayerHeads.format(Lang.HEAD_HORSE), Lang.HEAD_SPAWN_HORSE), // Thanks Glompalici0us
SQUID("squidette8", PlayerHeads.format(Lang.HEAD_SQUID), Lang.HEAD_SPAWN_SQUID), // Thanks SethBling
SILVERFISH("AlexVMiner", PlayerHeads.format(Lang.HEAD_SILVERFISH), Lang.HEAD_SPAWN_SILVERFISH), // Thanks SethBling
ENDER_DRAGON("KingEndermen", PlayerHeads.format(Lang.HEAD_ENDER_DRAGON), Lang.HEAD_SPAWN_ENDER_DRAGON), // Thanks SethBling
Expand Down
2 changes: 2 additions & 0 deletions src/org/shininet/bukkit/playerheads/Lang.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class Lang {
public static String HEAD_ENDER_DRAGON;
public static String HEAD_ENDERMAN;
public static String HEAD_GHAST;
public static String HEAD_HORSE;
public static String HEAD_IRON_GOLEM;
public static String HEAD_MUSHROOM_COW;
public static String HEAD_SILVERFISH;
Expand All @@ -70,6 +71,7 @@ public class Lang {
public static String HEAD_SPAWN_ENDER_DRAGON;
public static String HEAD_SPAWN_ENDERMAN;
public static String HEAD_SPAWN_GHAST;
public static String HEAD_SPAWN_HORSE;
public static String HEAD_SPAWN_IRON_GOLEM;
public static String HEAD_SPAWN_MUSHROOM_COW;
public static String HEAD_SPAWN_SILVERFISH;
Expand Down
3 changes: 2 additions & 1 deletion src/org/shininet/bukkit/playerheads/PlayerHeads.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ public static enum configType {DOUBLE, BOOLEAN};
put("spiderdroprate", configType.DOUBLE);
put("endermandroprate", configType.DOUBLE);
put("blazedroprate", configType.DOUBLE);
put("horsedroprate", configType.DOUBLE);
put("squiddroprate", configType.DOUBLE);
put("silverfishdroprate", configType.DOUBLE);
put("enderdragondroprate", configType.DOUBLE);
put("slimedroprate", configType.DOUBLE);
put("irongolemdroprate", configType.DOUBLE);
put("mushroomcowdroprate", configType.DOUBLE);
put("batdroprate", configType.DOUBLE);
put("batdroprate", configType.DOUBLE);
put("fixcase", configType.BOOLEAN);
put("updatecheck", configType.BOOLEAN);
put("broadcast", configType.BOOLEAN);
Expand Down
7 changes: 3 additions & 4 deletions src/org/shininet/bukkit/playerheads/PlayerHeadsListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ public void onEntityDeath(EntityDeathEvent event) {
case BLAZE:
EntityDeathHelper(event, CustomSkullType.BLAZE, plugin.configFile.getDouble("blazedroprate")*lootingrate);
break;
// case ____: //TODO
// EntityDeathHelper(event, CustomSkullType.____, plugin.configFile.getDouble("____droprate")*lootingrate);
// break;
case HORSE:
EntityDeathHelper(event, CustomSkullType.HORSE, plugin.configFile.getDouble("horsedroprate")*lootingrate);
break;
case SQUID:
EntityDeathHelper(event, CustomSkullType.SQUID, plugin.configFile.getDouble("squiddroprate")*lootingrate);
break;
Expand All @@ -145,7 +145,6 @@ public void onEntityDeath(EntityDeathEvent event) {
case BAT:
EntityDeathHelper(event, CustomSkullType.BAT, plugin.configFile.getDouble("batdroprate")*lootingrate);
break;

}
}

Expand Down
2 changes: 1 addition & 1 deletion src/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: PlayerHeads
version: 3.1.0091
version: 3.1.0092
description: Drops a player's head when s/he dies, also mob heads
authors: [meiskam, zand]

Expand Down

0 comments on commit 14b198a

Please sign in to comment.