Skip to content

Instantly share code, notes, and snippets.

@Tenyar97
Created December 5, 2013 23:24
Show Gist options
  • Save Tenyar97/df61df8d2708072c1236 to your computer and use it in GitHub Desktop.
Save Tenyar97/df61df8d2708072c1236 to your computer and use it in GitHub Desktop.
Aminecraftable reproduction
@Override
public void onUpdate()
{
tickExisted++;
if(tickExisted < 6000)
{
if (this.rand.nextInt(50000) == 0)
{
EntityBabyWalker entitybabywalker = new EntityBabyWalker(this.worldObj);
entitybabywalker.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, 0.0F);
this.worldObj.spawnEntityInWorld(entitybabywalker);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment