|
|
|
@ -12,6 +12,7 @@ import net.minecraft.entity.LivingEntity;
|
|
|
|
|
import net.minecraft.entity.damage.DamageSource;
|
|
|
|
|
import net.minecraft.entity.mob.CreeperEntity;
|
|
|
|
|
import net.minecraft.entity.player.PlayerEntity;
|
|
|
|
|
import net.minecraft.entity.projectile.SmallFireballEntity;
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
import net.minecraft.item.Items;
|
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
@ -50,10 +51,7 @@ public class IndustrialLaserBlock extends AbstractFieldBlock {
|
|
|
|
|
((CreeperEntity) entity).ignite();
|
|
|
|
|
} else if (entity instanceof LivingEntity) {
|
|
|
|
|
if (!entity.isFireImmune()) {
|
|
|
|
|
entity.setFireTicks(entity.getFireTicks() + 1);
|
|
|
|
|
if (entity.getFireTicks() == 0) {
|
|
|
|
|
entity.setOnFireFor(8);
|
|
|
|
|
}
|
|
|
|
|
entity.setOnFireFor(8);
|
|
|
|
|
|
|
|
|
|
entity.damage(DAMAGE_SOURCE, HardcodedConfig.INDUSTRIAL_LASER_BEAM_DAMAGE);
|
|
|
|
|
}
|
|
|
|
|