From 3a864ba7ca83256a2e2fff112c2c8986e930142b Mon Sep 17 00:00:00 2001 From: darthvader45 Date: Sun, 3 Aug 2014 16:23:24 -0400 Subject: [PATCH] Update ShipWreckGenerator.java Shipwrecks now can spawn with the Bones mob in them. More danger in shipwrecks! --- src/main/java/mods/fossil/gens/ShipWreckGenerator.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/mods/fossil/gens/ShipWreckGenerator.java b/src/main/java/mods/fossil/gens/ShipWreckGenerator.java index 9039afd..0f03300 100644 --- a/src/main/java/mods/fossil/gens/ShipWreckGenerator.java +++ b/src/main/java/mods/fossil/gens/ShipWreckGenerator.java @@ -37,6 +37,10 @@ public void generate(Random random, int chunkX, int chunkZ, World world, } } +EntityBones entitybones = new EntityBones(world); +entitybones.setLocationAndAngles((double)i, j, (double)k, 0.0F, 0.0F); +world.spawnEntityInWorld(entitybones); + private final void generateStructure(World world, Random rand, int chunkX, int chunkZ) { // Need to create a new instance each time or the generate() methods may overlap themselves and cause a crash