Add Creative Spawn egg (very difficult)

This commit is contained in:
dan bornside 2016-02-21 17:13:38 -05:00
parent 0d33410041
commit 8ee383308d
2 changed files with 3 additions and 1 deletions

View File

@ -2347,6 +2347,8 @@ public class EntityFairy extends EntityAnimal {
if (!worldObj.isRemote
&& ( ridingEntity == null || ridingEntity == player || ridingEntity instanceof EntityMinecart )) {
ItemStack stack = player.inventory.getCurrentItem();
// TODO: spawn eggs aren't producing queens. Add a EntityAgeable style interaction
// to get them, the way you can spawn baby cows...
if (isRuler(player)) {
if (stack != null && getHealth() < getMaxHealth()

View File

@ -36,7 +36,7 @@ public class CommonProxy {
}
public void initEntities() {
EntityRegistry.registerGlobalEntityID( EntityFairy.class, "Fairy", EntityRegistry.findGlobalUniqueEntityId() );
EntityRegistry.registerGlobalEntityID( EntityFairy.class, "Fairy", EntityRegistry.findGlobalUniqueEntityId(), 0xea8fde, 0x8658bf );
EntityRegistry.registerModEntity( FairyEntityFishHook.class, "FairyFishhook", EntityRegistry.findGlobalUniqueEntityId(), FairyFactions.INSTANCE, 64, 4, true );
}