New Traits + Balancing.

Cascade: Random breaking of blocks around initial block.
Fracture: Random breaking of max. 9 blocks in direction.
Dark: Heals tool, but gives weak- and darkness.
Glimmer: Gives a chance of night vision effect.
Analysing: ++More EXP, less drops!
This commit is contained in:
Robert Sosnitzka
2016-06-20 01:01:07 +02:00
parent 30dba5a0c4
commit 0506ec6dbf
10 changed files with 137 additions and 23 deletions

View File

@@ -2,7 +2,6 @@ package com.sosnitzka.ztic_addon.traits;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.TextComponentString;
import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.common.MinecraftForge;
import slimeknights.tconstruct.library.traits.AbstractTrait;
@@ -20,9 +19,8 @@ public class TraitResonance extends AbstractTrait {
@Override
public void afterHit(ItemStack tool, EntityLivingBase player, EntityLivingBase target, float damage, boolean wasCritical, boolean wasHit) {
if (random.nextBoolean() && random.nextBoolean()) {
if (random.nextFloat() <= .33) {
target.knockBack(target, random.nextFloat() * random.nextFloat() * 10, player.posX - target.posX, player.posZ - target.posZ);
if (random.nextBoolean()) player.addChatMessage(new TextComponentString("Boinggg!"));
}
}