From 51275f99b349f79c14ed8d603188a7dee1ffa533 Mon Sep 17 00:00:00 2001 From: WayofTime Date: Fri, 19 Aug 2016 20:45:50 -0400 Subject: [PATCH] Added recipe for the Mimic block and updated the changelog for release. Also minor update to the particles that spawn from the specter when it heals. --- changelog.txt | 2 ++ .../entity/mob/EntitySentientSpecter.java | 14 ++++++++++---- .../WayofTime/bloodmagic/registry/ModRecipes.java | 2 ++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index 2e81b097..21cab003 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,8 @@ Version 2.0.4-55 ------------------------------------------------------ - Made Guide-API a required mod. - Fixed a funky issue where the Sound of the Cleansing Soul did not reset the upgrade points internally. +- Added Sentient Specters, which are essentially tamable companions. Drop a sentient tool if you have more than 1024 Will of a given type to summon one (at the cost of 100 Will). +- Added Mimic Blocks! ------------------------------------------------------ Version 2.0.3-54 diff --git a/src/main/java/WayofTime/bloodmagic/entity/mob/EntitySentientSpecter.java b/src/main/java/WayofTime/bloodmagic/entity/mob/EntitySentientSpecter.java index be781873..f1b39dd7 100644 --- a/src/main/java/WayofTime/bloodmagic/entity/mob/EntitySentientSpecter.java +++ b/src/main/java/WayofTime/bloodmagic/entity/mob/EntitySentientSpecter.java @@ -52,6 +52,7 @@ import net.minecraft.util.math.MathHelper; import net.minecraft.world.EnumDifficulty; import net.minecraft.world.Explosion; import net.minecraft.world.World; +import net.minecraft.world.WorldServer; import WayofTime.bloodmagic.api.Constants; import WayofTime.bloodmagic.api.soul.EnumDemonWillType; import WayofTime.bloodmagic.demonAura.WorldDemonWillHandler; @@ -471,10 +472,15 @@ public class EntitySentientSpecter extends EntityCreature implements IEntityOwna { this.heal((float) toHeal); - double d0 = this.rand.nextGaussian() * 0.02D; - double d1 = this.rand.nextGaussian() * 0.02D; - double d2 = this.rand.nextGaussian() * 0.02D; - this.worldObj.spawnParticle(EnumParticleTypes.HEART, this.posX + (double) (this.rand.nextFloat() * this.width * 2.0F) - (double) this.width, this.posY + 0.5D + (double) (this.rand.nextFloat() * this.height), this.posZ + (double) (this.rand.nextFloat() * this.width * 2.0F) - (double) this.width, d0, d1, d2, new int[0]); +// double d0 = this.rand.nextGaussian() * 0.02D; +// double d1 = this.rand.nextGaussian() * 0.02D; +// double d2 = this.rand.nextGaussian() * 0.02D; + if (worldObj instanceof WorldServer) + { + WorldServer server = (WorldServer) worldObj; + server.spawnParticle(EnumParticleTypes.HEART, this.posX + (double) (this.rand.nextFloat() * this.width * 2.0F) - (double) this.width, this.posY + 0.5D + (double) (this.rand.nextFloat() * this.height), this.posZ + (double) (this.rand.nextFloat() * this.width * 2.0F) - (double) this.width, 7, 0.2, 0.2, 0.2, 0, new int[0]); + } +// this.worldObj.spawnParticle(EnumParticleTypes.HEART, this.posX + (double) (this.rand.nextFloat() * this.width * 2.0F) - (double) this.width, this.posY + 0.5D + (double) (this.rand.nextFloat() * this.height), this.posZ + (double) (this.rand.nextFloat() * this.width * 2.0F) - (double) this.width, d0, d1, d2, new int[0]); } /** diff --git a/src/main/java/WayofTime/bloodmagic/registry/ModRecipes.java b/src/main/java/WayofTime/bloodmagic/registry/ModRecipes.java index 8a5a1360..b769cd3b 100644 --- a/src/main/java/WayofTime/bloodmagic/registry/ModRecipes.java +++ b/src/main/java/WayofTime/bloodmagic/registry/ModRecipes.java @@ -158,6 +158,8 @@ public class ModRecipes GameRegistry.addShapelessRecipe(newGemStack, baseGemStack, crystalStack); } } + + GameRegistry.addRecipe(new ShapedBloodOrbRecipe(new ItemStack(ModBlocks.mimic, 4, 0), "b b", " r ", "bob", 'b', new ItemStack(ModBlocks.bloodStoneBrick), 'r', new ItemStack(ModBlocks.bloodRune), 'o', OrbRegistry.getOrbStack(ModItems.orbMagician))); } public static void addAltarRecipes()