diff --git a/src/main/java/mod/emt/harkenscythe/block/HSBlockAltar.java b/src/main/java/mod/emt/harkenscythe/block/HSBlockAltar.java index 1797a9c..5b55b53 100644 --- a/src/main/java/mod/emt/harkenscythe/block/HSBlockAltar.java +++ b/src/main/java/mod/emt/harkenscythe/block/HSBlockAltar.java @@ -11,6 +11,7 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.*; import net.minecraft.util.math.BlockPos; +import net.minecraft.util.text.TextComponentTranslation; import net.minecraft.world.World; import mod.emt.harkenscythe.init.HSAdvancements; @@ -68,6 +69,10 @@ public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, En handleRecipe(world, altar, altarStack, player, altarX, altarY, altarZ); return true; } + else + { + player.sendStatusMessage(new TextComponentTranslation("message.harkenscythe.altar.invalid_recipe"), true); + } } else if (!heldStack.isEmpty()) { @@ -90,9 +95,9 @@ else if (altarStack.getMaxStackSize() > altarStack.getCount() && ItemStack.areIt ItemStack itemStack = altar.getInputStack(); if (!itemStack.isEmpty()) { + altar.setInputStack(ItemStack.EMPTY); player.addItemStackToInventory(itemStack); player.world.playSound(altarX, altarY, altarZ, getSoundEventFail(), SoundCategory.BLOCKS, 1.0F, 1.5F / (altar.getWorld().rand.nextFloat() * 0.4F + 1.2F), false); - altar.setInputStack(ItemStack.EMPTY); return true; } } diff --git a/src/main/resources/assets/harkenscythe/lang/de_de.lang b/src/main/resources/assets/harkenscythe/lang/de_de.lang index a240c7e..dcd741d 100644 --- a/src/main/resources/assets/harkenscythe/lang/de_de.lang +++ b/src/main/resources/assets/harkenscythe/lang/de_de.lang @@ -152,6 +152,7 @@ effect.harkenscythe.purifying=Spektrale Reinigung effect.harkenscythe.water=Spektrales Wasser # MESSAGES +message.harkenscythe.altar.invalid_recipe=Dies ist kein gültiges Rezept für ein Altarritual! message.harkenscythe.dimensional_mirror.blacklist=Eine magische Kraft verhindert, dass der Spiegel in dieser Dimension funktioniert! message.harkenscythe.dimensional_mirror.no_souls=Der Spiegel muss mit Seelen aufgeladen werden, damit er funktioniert! message.harkenscythe.dimensional_mirror.no_spawn=Es ist kein Spawnpunkt festgelegt, damit der Spiegel funktioniert! diff --git a/src/main/resources/assets/harkenscythe/lang/en_us.lang b/src/main/resources/assets/harkenscythe/lang/en_us.lang index 0457332..e3037e8 100644 --- a/src/main/resources/assets/harkenscythe/lang/en_us.lang +++ b/src/main/resources/assets/harkenscythe/lang/en_us.lang @@ -152,6 +152,7 @@ effect.harkenscythe.purifying=Spectral Purifying effect.harkenscythe.water=Spectral Water # MESSAGES +message.harkenscythe.altar.invalid_recipe=This is not a valid altar ritual recipe! message.harkenscythe.dimensional_mirror.blacklist=A magical force prevents the mirror from working in this dimension! message.harkenscythe.dimensional_mirror.no_souls=The mirror needs to be recharged with souls to work! message.harkenscythe.dimensional_mirror.no_spawn=No spawn point is set for the mirror to work!