Skip to content

Commit

Permalink
import block resistance nerfs from TecTech (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
boubou19 authored Sep 17, 2024
1 parent 5d91033 commit 4bdd2c1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
7 changes: 6 additions & 1 deletion src/main/java/twilightforest/block/BlockTFDeadrock.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;

import cpw.mods.fml.common.Loader;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import twilightforest.TwilightForestMod;
Expand All @@ -23,7 +24,11 @@ public class BlockTFDeadrock extends Block {
protected BlockTFDeadrock() {
super(Material.rock);
this.setHardness(100F);
this.setResistance(6000000.0F);
if (Loader.isModLoaded("dreamcraft")) {
this.setResistance(5.0F);
} else {
this.setResistance(6000000.0F);
}
this.setStepSound(soundTypePiston);
this.disableStats();
this.setCreativeTab(TFItems.creativeTab);
Expand Down
9 changes: 7 additions & 2 deletions src/main/java/twilightforest/block/BlockTFShield.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import net.minecraft.util.Vec3;
import net.minecraft.world.World;

import cpw.mods.fml.common.Loader;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import twilightforest.TwilightForestMod;
Expand All @@ -32,8 +33,12 @@ public class BlockTFShield extends Block {
public BlockTFShield() {
super(Material.rock);
this.setBlockUnbreakable();
// this.setResistance(2000.0F);
this.setResistance(6000000.0F);
if (Loader.isModLoaded("dreamcraft")) {
this.setResistance(30.0F);
} else {
this.setResistance(6000000.0F);
}

this.setStepSound(Block.soundTypeMetal);
this.setCreativeTab(TFItems.creativeTab);
}
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/twilightforest/block/BlockTFThorns.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;

import cpw.mods.fml.common.Loader;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import twilightforest.TwilightForestMod;
Expand All @@ -38,7 +39,11 @@ protected BlockTFThorns() {
this.setNames(new String[] { "brown", "green" });

this.setHardness(50.0F);
this.setResistance(2000.0F);
if (Loader.isModLoaded("dreamcraft")) {
this.setResistance(10.0F);
} else {
this.setResistance(2000.0F);
}
this.setStepSound(soundTypeWood);
this.setCreativeTab(TFItems.creativeTab);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;

import cpw.mods.fml.common.Loader;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import twilightforest.TwilightForestMod;
Expand All @@ -41,9 +42,12 @@ public class BlockTFTowerTranslucent extends Block {
public BlockTFTowerTranslucent() {
super(Material.glass);
this.setHardness(50.0F);
this.setResistance(2000.0F);
if (Loader.isModLoaded("dreamcraft")) {
this.setResistance(30.0F);
} else {
this.setResistance(2000.0F);
}
this.setStepSound(Block.soundTypeMetal);
// this.setCreativeTab(TFItems.creativeTab);
}

/**
Expand Down

0 comments on commit 4bdd2c1

Please sign in to comment.