Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
Handle ores.
Browse files Browse the repository at this point in the history
- move just as fast as stone
- very low chance of degrading into stone
  • Loading branch information
ahkok committed Dec 2, 2013
1 parent 7b73e2b commit 3ef0195
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/org/foo_projects/sofar/Sedimentology/Sedimentology.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,17 @@ public void sed(sedWorld sedworld) {
hardness = 0.01;
resistance = 0.01;
break;
/* ores don't break down much at all, but they are displaced as easy stone */
case COAL_ORE:
case IRON_ORE:
case LAPIS_ORE:
case EMERALD_ORE:
case GOLD_ORE:
case DIAMOND_ORE:
case REDSTONE_ORE:
hardness = 0.0001;
resistance = 0.01;
break;
default:
stat_ignored_type++;
return;
Expand Down Expand Up @@ -446,6 +457,13 @@ else if (underwater)
break;
case COBBLESTONE:
case STONE:
case COAL_ORE:
case IRON_ORE:
case LAPIS_ORE:
case EMERALD_ORE:
case GOLD_ORE:
case DIAMOND_ORE:
case REDSTONE_ORE:
snd = Sound.DIG_STONE;
break;
default:
Expand Down Expand Up @@ -530,6 +548,15 @@ else if (underwater)
case STONE:
b.setType(Material.COBBLESTONE);
break;
case COAL_ORE:
case IRON_ORE:
case LAPIS_ORE:
case EMERALD_ORE:
case GOLD_ORE:
case DIAMOND_ORE:
case REDSTONE_ORE:
b.setType(Material.STONE);
break;
default:
stat_errors++;
return;
Expand Down

0 comments on commit 3ef0195

Please sign in to comment.