// +1: Look at the top five cards of your library. You may reveal an artifact card from among them and put it into your hand. Put the rest on the bottom of your library in any order.
this.addAbility(new LoyaltyAbility(new LookLibraryAndPickControllerEffect(5, 1, filter, true), 1));
// -1: Target artifact becomes an artifact creature with base power and toughness 5/5.
Effect effect = new AddCardTypeTargetEffect(CardType.CREATURE, Duration.EndOfGame);
effect.setText("");
LoyaltyAbility ability1 = new LoyaltyAbility(effect, -1);
effect = new SetPowerToughnessTargetEffect(5,5, Duration.EndOfGame);
effect.setText("Target artifact becomes an artifact creature with base power and toughness 5/5");
ability1.addEffect(effect);
ability1.addTarget(new TargetArtifactPermanent());
this.addAbility(ability1);
// -4: Target player loses X life and you gain X life, where X is twice the number of artifacts you control.