Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manual merge of master branch changes up to commit 1387bc6
- Loading branch information
Showing
23 changed files
with
309 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+957 Bytes
(510%)
resources/assets/tinker/textures/blocks/compressed_alubrass.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+766 Bytes
(280%)
resources/assets/tinker/textures/blocks/compressed_alumite.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+827 Bytes
(330%)
resources/assets/tinker/textures/blocks/compressed_ardite.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+729 Bytes
(260%)
resources/assets/tinker/textures/blocks/compressed_cobalt.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+363 Bytes
(160%)
resources/assets/tinker/textures/blocks/compressed_ender.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+764 Bytes
(270%)
resources/assets/tinker/textures/blocks/compressed_manyullyn.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package tconstruct.blocks; | ||
|
||
import net.minecraft.block.material.Material; | ||
import net.minecraft.entity.Entity; | ||
import net.minecraft.entity.EntityLivingBase; | ||
import net.minecraft.potion.Potion; | ||
import net.minecraft.potion.PotionEffect; | ||
import net.minecraft.world.World; | ||
import net.minecraftforge.fluids.Fluid; | ||
|
||
public class BloodBlock extends TConstructFluid | ||
{ | ||
|
||
public BloodBlock(int id, Fluid fluid, Material material, String texture) | ||
{ | ||
super(id, fluid, material, texture); | ||
} | ||
|
||
public void onEntityCollidedWithBlock (World world, int x, int y, int z, Entity entity) | ||
{ | ||
if (entity instanceof EntityLivingBase) | ||
{ | ||
((EntityLivingBase) entity).addPotionEffect(new PotionEffect(Potion.field_76434_w.id, 200, 0)); | ||
((EntityLivingBase) entity).addPotionEffect(new PotionEffect(Potion.poison.id, 20*10, 4)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package tconstruct.blocks; | ||
|
||
import net.minecraft.block.Block; | ||
import net.minecraft.block.material.Material; | ||
import net.minecraft.entity.Entity; | ||
import net.minecraft.entity.EntityLivingBase; | ||
import net.minecraft.potion.Potion; | ||
import net.minecraft.potion.PotionEffect; | ||
import net.minecraft.util.AxisAlignedBB; | ||
import net.minecraft.world.World; | ||
|
||
public class GlueBlock extends TConstructBlock { | ||
|
||
public GlueBlock(int id) | ||
{ | ||
super(id, Material.ground, 4.0f, new String[]{"glue"}); | ||
} | ||
|
||
@Override | ||
public void onEntityCollidedWithBlock (World world, int x, int y, int z, Entity entity) | ||
{ | ||
entity.motionX *= 0.1; | ||
entity.motionZ *= 0.1; | ||
|
||
if (entity instanceof EntityLivingBase) { | ||
EntityLivingBase lvb = (EntityLivingBase)entity; | ||
// Well you'd feel ill too standing on glue... | ||
if (lvb.isPotionActive(Potion.hunger)) { | ||
lvb.getActivePotionEffect(Potion.hunger).duration = 20; | ||
} else { | ||
lvb.addPotionEffect(new PotionEffect(Potion.hunger.getId(), 20, 4)); | ||
} | ||
|
||
// Glue is sticky stuff | ||
if (lvb.isPotionActive(Potion.moveSlowdown)) { | ||
lvb.getActivePotionEffect(Potion.moveSlowdown).duration = 30; | ||
} else { | ||
lvb.addPotionEffect(new PotionEffect(Potion.moveSlowdown.getId(), 30, 4)); | ||
} | ||
} | ||
} | ||
|
||
public AxisAlignedBB getCollisionBoundingBoxFromPool (World world, int x, int y, int z) | ||
{ | ||
return Block.slowSand.getCollisionBoundingBoxFromPool(world, x, y, z); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.