forked from TAIGA/TAIGA
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:
@@ -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!"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user