Skip to content

Instantly share code, notes, and snippets.

@BlockAfterBlock
Created May 19, 2011 01:47
Show Gist options
  • Save BlockAfterBlock/980003 to your computer and use it in GitHub Desktop.
Save BlockAfterBlock/980003 to your computer and use it in GitHub Desktop.
Awesome
package net.minecraft.src;
import java.util.List;
public class LMHNative1 extends LMHEntityBase
{
public LMHNative1(World world)
{
super(world);
health = 26; //13 Hearts
texture = "/LMH/Native1.png";
wayofattack = "bow";
getMaxSpawnedInChunk = 3;
// Note: Texture from sioux-six-four, improved by Evader
}
protected void dropFewItems()
{
int i = rand.nextInt(2);
for(int j = 0; j < i; j++){dropItem(Item.porkRaw.shiftedIndex, 1);}
i = rand.nextInt(3);
for(int k = 0; k < i; k++){dropItem(Item.bone.shiftedIndex, 1);}
i = rand.nextInt(3);
for(int r = 0; r < i; r++){dropItem(Item.arrow.shiftedIndex, 1);}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment