mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
23 lines
455 B
Java
23 lines
455 B
Java
package tconstruct.blocks.traps;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.entity.Entity;
|
|
import net.minecraft.world.World;
|
|
|
|
public class Punji extends Block
|
|
{
|
|
|
|
public Punji(int id)
|
|
{
|
|
super(id, Material.circuits);
|
|
}
|
|
|
|
@Override
|
|
public void onEntityCollidedWithBlock (World world, int x, int y, int z, Entity entity)
|
|
{
|
|
entity.fallDistance *= 2.0F;
|
|
}
|
|
|
|
}
|